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 : 2126769 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 (2814684) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2814684) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847849 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2814684'] with mtr_portfolio_ids : ['22847849'] and first list_photo_ids : [] new path : /proc/2126769/ Name: python3 Umask: 0002 State: R (running) Tgid: 2126769 Ngid: 0 Pid: 2126769 PPid: 2126768 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2126769 NSpid: 2126769 NSpgid: 2125040 NSsid: 2125040 VmPeak: 1107216 kB VmSize: 1107216 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98344 kB VmRSS: 98344 kB RssAnon: 60196 kB RssFile: 38148 kB RssShmem: 0 kB VmData: 865964 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 46 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2126769', 'Ngid': '0', 'Pid': '2126769', 'PPid': '2126768', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2126769', 'NSpid': '2126769', 'NSpgid': '2125040', 'NSsid': '2125040', 'VmPeak': '1107216 kB', 'VmSize': '1107216 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98344 kB', 'VmRSS': '98344 kB', 'RssAnon': '60196 kB', 'RssFile': '38148 kB', 'RssShmem': '0 kB', 'VmData': '865964 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '46', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '2126769', '1107216', '0', '1107216', '865964', '98344', b'', 'marlene', '2814684') 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 (22847849) 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 (2814684 ) ) 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 (22847849) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357308439, 'portfolio_id': 22847849}, {'photo_id': 1357308437, 'portfolio_id': 22847849}, {'photo_id': 1357308435, 'portfolio_id': 22847849}, {'photo_id': 1357308433, 'portfolio_id': 22847849}, {'photo_id': 1357308432, 'portfolio_id': 22847849}, {'photo_id': 1357308387, 'portfolio_id': 22847849}, {'photo_id': 1357308385, 'portfolio_id': 22847849}, {'photo_id': 1357308378, 'portfolio_id': 22847849}, {'photo_id': 1357308360, 'portfolio_id': 22847849}, {'photo_id': 1357307609, 'portfolio_id': 22847849}, {'photo_id': 1357307607, 'portfolio_id': 22847849}, {'photo_id': 1357307568, 'portfolio_id': 22847849}, {'photo_id': 1357307566, 'portfolio_id': 22847849}, {'photo_id': 1357307562, 'portfolio_id': 22847849}, {'photo_id': 1357307559, 'portfolio_id': 22847849}, {'photo_id': 1357307556, 'portfolio_id': 22847849}, {'photo_id': 1357307548, 'portfolio_id': 22847849}, {'photo_id': 1357307516, 'portfolio_id': 22847849}, {'photo_id': 1357307513, 'portfolio_id': 22847849}, {'photo_id': 1357307509, 'portfolio_id': 22847849}, {'photo_id': 1357307506, 'portfolio_id': 22847849}, {'photo_id': 1357307503, 'portfolio_id': 22847849}, {'photo_id': 1357307437, 'portfolio_id': 22847849}, {'photo_id': 1357307416, 'portfolio_id': 22847849}, {'photo_id': 1357307151, 'portfolio_id': 22847849}, {'photo_id': 1357307148, 'portfolio_id': 22847849}, {'photo_id': 1357307146, 'portfolio_id': 22847849}] map_portfolio_id_photo_id: {22847849: [1357308439, 1357308437, 1357308435, 1357308433, 1357308432, 1357308387, 1357308385, 1357308378, 1357308360, 1357307609, 1357307607, 1357307568, 1357307566, 1357307562, 1357307559, 1357307556, 1357307548, 1357307516, 1357307513, 1357307509, 1357307506, 1357307503, 1357307437, 1357307416, 1357307151, 1357307148, 1357307146]} ##### 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.014649391174316406 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri May 9 23:38:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22847849) 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 : 22847849 get user id for portfolio 22847849 get sub ptf for main ptf 22847849, type 3726 and hashtags ['metal', 'Carton_brun', 'papier', 'Carton_gris', 'flou', 'mal_croppe', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique', 'autre_refus', 'environnement', 'kraft'] 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`=22847849 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Carton_gris','flou','mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','autre_refus','environnement','kraft')) 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`=22847849 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Carton_gris','flou','mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','autre_refus','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22847849, 'sub_port_id': 22847852, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249085, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'mal_croppe': {'main_port_id': 22847849, 'sub_port_id': 22847853, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249086, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'plastique': {'main_port_id': 22847849, 'sub_port_id': 22847854, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249087, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'autre_refus': {'main_port_id': 22847849, 'sub_port_id': 22847855, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249088, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'environnement': {'main_port_id': 22847849, 'sub_port_id': 22847856, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249089, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'kraft': {'main_port_id': 22847849, 'sub_port_id': 22847857, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249090, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'papier': {'main_port_id': 22847849, 'sub_port_id': 22847858, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249091, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'flou': {'main_port_id': 22847849, 'sub_port_id': 22847859, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249092, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'cartonnette': {'main_port_id': 22847849, 'sub_port_id': 22847860, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249093, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'metal': {'main_port_id': 22847849, 'sub_port_id': 22847861, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249094, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'Carton_gris': {'main_port_id': 22847849, 'sub_port_id': 22847862, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249095, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}, 'Carton_brun': {'main_port_id': 22847849, 'sub_port_id': 22847863, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249096, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847852 , 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=22847849 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 (22847852) result : ((1357307530,), (1357307531,), (1357308275,), (1357308418,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847853 , 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=22847849 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 (22847853) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847854 , 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=22847849 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 (22847854) result : ((1357308331,), (1357308332,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847855 , 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=22847849 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 (22847855) result : ((1357308305,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847856 , 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=22847849 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 (22847856) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847857 , 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=22847849 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 (22847857) result : ((1357308334,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847858 , 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=22847849 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 (22847858) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847859 , 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=22847849 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 (22847859) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847860 , 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=22847849 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 (22847860) result : ((1357308330,), (1357308419,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847861 , 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=22847849 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 (22847861) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847862 , 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=22847849 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 (22847862) result : ((1357307532,), (1357308328,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22847863 , 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=22847849 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 (22847863) result : ((1357307534,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22847849) result : ((1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22847849 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Carton_gris','flou','mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','autre_refus','environnement','kraft')) 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`=22847849 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Carton_gris','flou','mal_croppe','Teint_Dans_La_Masse','cartonnette','plastique','autre_refus','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22847849, 'sub_port_id': 22847864, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249097, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'mal_croppe': {'main_port_id': 22847849, 'sub_port_id': 22847865, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249098, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'plastique': {'main_port_id': 22847849, 'sub_port_id': 22847866, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249099, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'autre_refus': {'main_port_id': 22847849, 'sub_port_id': 22847867, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249100, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'environnement': {'main_port_id': 22847849, 'sub_port_id': 22847868, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249101, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'kraft': {'main_port_id': 22847849, 'sub_port_id': 22847869, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249102, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'papier': {'main_port_id': 22847849, 'sub_port_id': 22847870, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249103, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'flou': {'main_port_id': 22847849, 'sub_port_id': 22847871, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249104, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'cartonnette': {'main_port_id': 22847849, 'sub_port_id': 22847872, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249105, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'metal': {'main_port_id': 22847849, 'sub_port_id': 22847873, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249106, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'Carton_gris': {'main_port_id': 22847849, 'sub_port_id': 22847874, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249107, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 35, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}, 'Carton_brun': {'main_port_id': 22847849, 'sub_port_id': 22847875, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15249108, 'last_updated_at': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 23, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 23, 35, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847856 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847857 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847858 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847859 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847872,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847860 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847873,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847861 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847874,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847862 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22847875,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22847863 lien utilise dans velours : https://www.fotonower.com/velours/22847864,22847865,22847866,22847867,22847868,22847869,22847870,22847871,22847872,22847873,22847874,22847875?tags=Teint_Dans_La_Masse,mal_croppe,plastique,autre_refus,environnement,kraft,papier,flou,cartonnette,metal,Carton_gris,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22847849]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] map_info['map_portfolio_photo'] : {22847849: [1357308439, 1357308437, 1357308435, 1357308433, 1357308432, 1357308387, 1357308385, 1357308378, 1357308360, 1357307609, 1357307607, 1357307568, 1357307566, 1357307562, 1357307559, 1357307556, 1357307548, 1357307516, 1357307513, 1357307509, 1357307506, 1357307503, 1357307437, 1357307416, 1357307151, 1357307148, 1357307146]} final : False mtd_id 4302 list_pids : [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] Looping around the photos to save general results len do output : 1 /22847849. 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, '2814684') ('4302', '22847849', '1357308439', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308437', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308435', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308433', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308432', None, None, None, None, None, '2814684') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '22847849', "{'Teint_Dans_La_Masse': 22847852, 'mal_croppe': 22847853, 'plastique': 22847854, 'autre_refus': 22847855, 'environnement': 22847856, 'kraft': 22847857, 'papier': 22847858, 'flou': 22847859, 'cartonnette': 22847860, 'metal': 22847861, 'Carton_gris': 22847862, 'Carton_brun': 22847863}", None, None, None, None, '2814684'), ('4302', '22847849', '1357308439', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308437', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308435', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308433', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308432', None, None, None, None, None, '2814684')] time used for this insertion : 0.012907981872558594 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4078669548034668 time spend to save output : 0.013153791427612305 total time spend for step 1 : 1.421020746231079 step2:final Fri May 9 23:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22847849) 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 22847849 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357307151,1357307148,1357307146,1357307437,1357307416,1357307516,1357307513,1357307509,1357307506,1357307503,1357307568,1357307566,1357307562,1357307559,1357307556,1357307548,1357307609,1357307607,1357308387,1357308385,1357308378,1357308360,1357308439,1357308437,1357308435,1357308433,1357308432); 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([22847849]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} new output for save of step final : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] map_info['map_portfolio_photo'] : {22847849: [1357308439, 1357308437, 1357308435, 1357308433, 1357308432, 1357308387, 1357308385, 1357308378, 1357308360, 1357307609, 1357307607, 1357307568, 1357307566, 1357307562, 1357307559, 1357307556, 1357307548, 1357307516, 1357307513, 1357307509, 1357307506, 1357307503, 1357307437, 1357307416, 1357307151, 1357307148, 1357307146]} final : False mtd_id 4302 list_pids : [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] Looping around the photos to save general results len do output : 5 /1357308439.Didn't retrieve data . /1357308437.Didn't retrieve data . /1357308435.Didn't retrieve data . /1357308433.Didn't retrieve data . /1357308432.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, '2814684') ('4302', '22847849', '1357308439', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308437', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308435', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308433', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308432', None, None, None, None, None, '2814684') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22847849', '1357308439', '0.05274499367360063', None, None, None, None, '2814684'), ('4302', '22847849', '1357308437', '0.05274499367360063', None, None, None, None, '2814684'), ('4302', '22847849', '1357308435', '0.05274499367360063', None, None, None, None, '2814684'), ('4302', '22847849', '1357308433', '0.05274499367360063', None, None, None, None, '2814684'), ('4302', '22847849', '1357308432', '0.05274499367360063', None, None, None, None, '2814684')] time used for this insertion : 0.01350855827331543 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06116819381713867 time spend to save output : 0.013917207717895508 total time spend for step 2 : 0.07508540153503418 step3:velours_tree Fri May 9 23:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22847849: [{'Teint_Dans_La_Masse': 22847852, 'mal_croppe': 22847853, 'plastique': 22847854, 'autre_refus': 22847855, 'environnement': 22847856, 'kraft': 22847857, 'papier': 22847858, 'flou': 22847859, 'cartonnette': 22847860, 'metal': 22847861, 'Carton_gris': 22847862, 'Carton_brun': 22847863}]} input_args_next_step : {22847849: ()} output_args : {22847849: [{'Teint_Dans_La_Masse': 22847852, 'mal_croppe': 22847853, 'plastique': 22847854, 'autre_refus': 22847855, 'environnement': 22847856, 'kraft': 22847857, 'papier': 22847858, 'flou': 22847859, 'cartonnette': 22847860, 'metal': 22847861, 'Carton_gris': 22847862, 'Carton_brun': 22847863}]} args : 22847849 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 : ({'Teint_Dans_La_Masse': 22847852, 'mal_croppe': 22847853, 'plastique': 22847854, 'autre_refus': 22847855, 'environnement': 22847856, 'kraft': 22847857, 'papier': 22847858, 'flou': 22847859, 'cartonnette': 22847860, 'metal': 22847861, 'Carton_gris': 22847862, 'Carton_brun': 22847863},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22847849) 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([22847849]) 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.30633091926574707 time spend to save output : 6.008148193359375e-05 total time spend for step 3 : 0.30639100074768066 step4:send_mail_cod Fri May 9 23:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} input_args_next_step : {1357308439: ()} output_args : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} args : 1357308439 depend.output_id : 0 input_args_next_step : {1357308439: ('0.05274499367360063',), 1357308437: ()} output_args : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} args : 1357308437 depend.output_id : 0 input_args_next_step : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ()} output_args : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} args : 1357308435 depend.output_id : 0 input_args_next_step : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ()} output_args : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} args : 1357308433 depend.output_id : 0 input_args_next_step : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ()} output_args : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',)} args : 1357308432 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 : {22847849: [{'Teint_Dans_La_Masse': 22847852, 'mal_croppe': 22847853, 'plastique': 22847854, 'autre_refus': 22847855, 'environnement': 22847856, 'kraft': 22847857, 'papier': 22847858, 'flou': 22847859, 'cartonnette': 22847860, 'metal': 22847861, 'Carton_gris': 22847862, 'Carton_brun': 22847863}]} input_args_next_step : {1357308439: ('0.05274499367360063',), 1357308437: ('0.05274499367360063',), 1357308435: ('0.05274499367360063',), 1357308433: ('0.05274499367360063',), 1357308432: ('0.05274499367360063',), 22847849: ()} output_args : {22847849: [{'Teint_Dans_La_Masse': 22847852, 'mal_croppe': 22847853, 'plastique': 22847854, 'autre_refus': 22847855, 'environnement': 22847856, 'kraft': 22847857, 'papier': 22847858, 'flou': 22847859, 'cartonnette': 22847860, 'metal': 22847861, 'Carton_gris': 22847862, 'Carton_brun': 22847863}]} args : 22847849 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 :6, first value : ('0.05274499367360063',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22847849) 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 (1357308439,1357308437,1357308435,1357308433,1357308432) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357308432 begin to download photo : 1357308435 begin to download photo : 1357308439 download finish for photo 1357308439 download finish for photo 1357308432 begin to download photo : 1357308433 download finish for photo 1357308435 begin to download photo : 1357308437 download finish for photo 1357308437 download finish for photo 1357308433 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette228478531746826738/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22847849_09-05-2025_23_38_58.pdf 22847853 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=22847853 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228478531746826738 22847854 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=22847854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357308331: '1746826511_533641_1357307509_3f077bbe13f07592a7982552dedc02dc_rle_crop_3792213600_0.png', 1357308332: '1746826511_533641_1357307503_98c9392f5567310e586fddea9e2feaeb_rle_crop_3792213631_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c85a920fbe776509a2e2230114329e95_91471014.png change filename to text .imagette228478541746826738/ imagette228478541746826738/1746826511_533641_1357307509_3f077bbe13f07592a7982552dedc02dc_rle_crop_3792213600_0.png.png imagette228478541746826738/1746826511_533641_1357307503_98c9392f5567310e586fddea9e2feaeb_rle_crop_3792213631_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/98f7be8e761edc618229e656332bff45_16853577.png imagette228478541746826738 22847855 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=22847855 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357308305: '1746826511_533641_1357307513_2578cdbd5c28bc7d6c2a36cebb73ca35_rle_crop_3792213578_0.png'} change filename to text .imagette228478551746826738/ imagette228478551746826738/1746826511_533641_1357307513_2578cdbd5c28bc7d6c2a36cebb73ca35_rle_crop_3792213578_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/97e0152fd6bd4ea4e99fc054a840ec78_48382382.png imagette228478551746826738 22847857 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=22847857 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357308334: '1746826511_533641_1357307506_3ed100ea5695e77b672f2ad00dd2198b_rle_crop_3792213611_0.png'} change filename to text .imagette228478571746826738/ imagette228478571746826738/1746826511_533641_1357307506_3ed100ea5695e77b672f2ad00dd2198b_rle_crop_3792213611_0.png.png imagette228478591746826738/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2241f1860eb7974eb2f041956106a625_77407080.png imagette228478571746826738 22847859 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=22847859 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228478591746826738 22847860 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=22847860 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357308330: '1746826511_533641_1357307503_98c9392f5567310e586fddea9e2feaeb_rle_crop_3792213629_0.png', 1357308419: '1746826573_534206_1357307516_e6e42ed33fb59c7002aa843ef9c76000_rle_crop_3792213732_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7ab210bf6c48e056fb6fe8587874816d_63939170.png change filename to text .imagette228478601746826738/ imagette228478601746826738/1746826573_534206_1357307516_e6e42ed33fb59c7002aa843ef9c76000_rle_crop_3792213732_0.png.png imagette228478601746826738/1746826511_533641_1357307503_98c9392f5567310e586fddea9e2feaeb_rle_crop_3792213629_0.png.png imagette228478611746826739/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4c556b720e3a1590f9840cfafbc4da2d_16665143.png imagette228478601746826738 22847861 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=22847861 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228478611746826739 22847852 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=22847852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357307530: '1746826381_532395_1357307148_e626e8fe93c95284ea98f6a5905681b3_rle_crop_3792209735_0.png', 1357307531: '1746826381_532395_1357307148_e626e8fe93c95284ea98f6a5905681b3_rle_crop_3792209728_0.png', 1357308275: '1746826511_533641_1357307506_3ed100ea5695e77b672f2ad00dd2198b_rle_crop_3792213610_0.png', 1357308418: '1746826573_534206_1357307416_6ab8c70fa79d78a0a0146f599fd5d740_rle_crop_3792213744_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/37dee0b5f2723d48405cc3ed33334506_36274423.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b203c3de5cc92beb318956cf2185d9af_65595046.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e38273f01a56d08de5bb25b59293dfa1_99261163.png change filename to text .imagette228478521746826739/ imagette228478521746826739/1746826511_533641_1357307506_3ed100ea5695e77b672f2ad00dd2198b_rle_crop_3792213610_0.png.png imagette228478521746826739/1746826381_532395_1357307148_e626e8fe93c95284ea98f6a5905681b3_rle_crop_3792209735_0.png.png imagette228478521746826739/1746826381_532395_1357307148_e626e8fe93c95284ea98f6a5905681b3_rle_crop_3792209728_0.png.png imagette228478521746826739/1746826573_534206_1357307416_6ab8c70fa79d78a0a0146f599fd5d740_rle_crop_3792213744_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4474d6dec1a8f29dc5d27f5fcac9357c_54284298.png imagette228478521746826739 22847862 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=22847862 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357307532: '1746826381_532395_1357307146_6729b04916ea74123d04cc9502a05a0f_rle_crop_3792209738_0.png', 1357308328: '1746826511_533641_1357307506_3ed100ea5695e77b672f2ad00dd2198b_rle_crop_3792213612_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c4b516a1fad39fe6b1be05a44d72540d_19341274.png change filename to text .imagette228478621746826739/ imagette228478621746826739/1746826511_533641_1357307506_3ed100ea5695e77b672f2ad00dd2198b_rle_crop_3792213612_0.png.png imagette228478621746826739/1746826381_532395_1357307146_6729b04916ea74123d04cc9502a05a0f_rle_crop_3792209738_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/39ed6af2deb4cd452f6b353d2f4c3c14_42669600.png imagette228478621746826739 22847863 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=22847863 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357307534: '1746826381_532395_1357307146_6729b04916ea74123d04cc9502a05a0f_rle_crop_3792209747_0.png'} change filename to text .imagette228478631746826739/ imagette228478631746826739/1746826381_532395_1357307146_6729b04916ea74123d04cc9502a05a0f_rle_crop_3792209747_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7d051f496f98fe6bef4c6c023532b7f9_64464303.png imagette228478631746826739 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22847849 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22847864,22847865,22847866,22847867,22847868,22847869,22847870,22847871,22847872,22847873,22847874,22847875?tags=Teint_Dans_La_Masse,mal_croppe,plastique,autre_refus,environnement,kraft,papier,flou,cartonnette,metal,Carton_gris,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1357308439] : ('0.05274499367360063',) no score found for photo 1357308439 We are sending mail with results at report@fotonower.com args[1357308437] : ('0.05274499367360063',) no score found for photo 1357308437 We are sending mail with results at report@fotonower.com args[1357308435] : ('0.05274499367360063',) no score found for photo 1357308435 We are sending mail with results at report@fotonower.com args[1357308433] : ('0.05274499367360063',) no score found for photo 1357308433 We are sending mail with results at report@fotonower.com args[1357308432] : ('0.05274499367360063',) no score found for photo 1357308432 We are sending mail with results at report@fotonower.com refus_total : 0.05274499367360063 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=22847849 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_P22847849_09-05-2025_23_38_58.pdf results_Auto_P22847849_09-05-2025_23_38_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22847849_09-05-2025_23_38_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22847849','results_Auto_P22847849_09-05-2025_23_38_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22847849_09-05-2025_23_38_58.pdf','pdf','','0.11','0.05274499367360063') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22847849]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] map_info['map_portfolio_photo'] : {22847849: [1357308439, 1357308437, 1357308435, 1357308433, 1357308432, 1357308387, 1357308385, 1357308378, 1357308360, 1357307609, 1357307607, 1357307568, 1357307566, 1357307562, 1357307559, 1357307556, 1357307548, 1357307516, 1357307513, 1357307509, 1357307506, 1357307503, 1357307437, 1357307416, 1357307151, 1357307148, 1357307146]} final : False mtd_id 4302 list_pids : [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] 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, '2814684') ('4302', '22847849', '1357308439', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308437', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308435', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308433', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308432', None, None, None, None, None, '2814684') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '22847849', '1357308439', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308437', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308435', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308433', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308432', None, None, None, None, None, '2814684')] time used for this insertion : 0.012725353240966797 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0583903789520264 time spend to save output : 0.012898921966552734 total time spend for step 4 : 2.071289300918579 step5:split_time_score Fri May 9 23:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22847849'] 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 : [('22847849',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22847849) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357308439: {'path': 'temp/1746826738_2126769_1357308439_2fe603d3f457d4559b1c6682fc2cf100.jpg', 'extension': 'jpg'}, 1357308435: {'path': 'temp/1746826738_2126769_1357308435_1d31ce02583eb68b629e0eda6e1ae885.jpg', 'extension': 'jpg'}, 1357308437: {'path': 'temp/1746826738_2126769_1357308437_e9aa4335c8fdb0190da401f23fb8a7b8.jpg', 'extension': 'jpg'}, 1357308432: {'path': 'temp/1746826738_2126769_1357308432_2db1ff5905dd6a9f9b6791d798e023dc.jpg', 'extension': 'jpg'}, 1357308433: {'path': 'temp/1746826738_2126769_1357308433_7fdb815ef48a3b23f78164f857f6f732.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 = 22847849; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22847849 group by h (('23', 27),) 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=22847849 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 (22847849) 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 (22847849) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09052025 22847849 Nombre de photos uploadées : 27 / 23040 (0%) 09052025 22847849 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 09052025 22847849 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1357307151, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/bed2f3fdf1dd127c52c1e20b97d9439a.jpg', 'username': None, 'uploaded_at': 1746826267, 'text': 'image_09052025_23_30_03_010142m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1357307148, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e626e8fe93c95284ea98f6a5905681b3.jpg', 'username': None, 'uploaded_at': 1746826267, 'text': 'image_09052025_23_30_13_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357307146, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6729b04916ea74123d04cc9502a05a0f.jpg', 'username': None, 'uploaded_at': 1746826267, 'text': 'image_09052025_23_30_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357307437, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/bb4b01b941f536727ebe60506b428614.jpg', 'username': None, 'uploaded_at': 1746826328, 'text': 'image_09052025_23_30_34_010132m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 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.0013082027435302734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22847849, '2025-05-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1789478,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02452993392944336 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1789478 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22808280, 'dashboard_result_id': 10461046, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22808548, 'dashboard_result_id': 10461047, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22808912, 'dashboard_result_id': 10461048, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22809471, 'dashboard_result_id': 10461049, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22809829, 'dashboard_result_id': 10461050, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22810325, 'dashboard_result_id': 10461051, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22810785, 'dashboard_result_id': 10461052, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22811272, 'dashboard_result_id': 10461053, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22811687, 'dashboard_result_id': 10461054, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22812382, 'dashboard_result_id': 10461055, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22812747, 'dashboard_result_id': 10461056, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22813158, 'dashboard_result_id': 10461057, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22813765, 'dashboard_result_id': 10461058, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22814401, 'dashboard_result_id': 10461059, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22814870, 'dashboard_result_id': 10461060, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22815465, 'dashboard_result_id': 10461061, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22816849, 'dashboard_result_id': 10461062, '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_P22816849_09-05-2025_09_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816888, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22817262, 'dashboard_result_id': 10461063, '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_P22817262_09-05-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22817274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817281, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22817892, 'dashboard_result_id': 10461064, '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_P22817892_09-05-2025_10_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22817896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817907, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22818499, 'dashboard_result_id': 10461065, '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_P22818499_09-05-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22818531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22818532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22818533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22818534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22818535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22818536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22818537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22818538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22818539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22818540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22818541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22818542, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22818948, 'dashboard_result_id': 10461066, '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_P22818948_09-05-2025_10_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22818956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22818957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22818958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22818959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22818960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22818961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22818962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22818963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22818964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22818965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22818966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22818967, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22819621, 'dashboard_result_id': 10461067, '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_P22819621_09-05-2025_11_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22819627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22819628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22819629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22819630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22819631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22819632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22819633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22819634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22819635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22819636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22819637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22819638, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22820055, 'dashboard_result_id': 10461068, '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_P22820055_09-05-2025_11_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22820059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22820060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22820061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22820062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22820063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22820064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22820065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22820066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22820067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22820068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22820069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22820070, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22820724, 'dashboard_result_id': 10461069, '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_P22820724_09-05-2025_11_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22820752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22820753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22820754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22820755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22820756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22820757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22820758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22820759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22820760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22820761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22820762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22820763, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22821162, 'dashboard_result_id': 10461070, '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_P22821162_09-05-2025_11_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22821168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22821169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22821170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22821171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22821172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22821173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22821174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22821175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22821176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22821177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22821178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22821179, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22821669, 'dashboard_result_id': 10461071, '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_P22821669_09-05-2025_12_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22821676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22821677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22821678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22821679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22821680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22821681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22821682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22821683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22821684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22821685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22821686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22821687, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22822254, 'dashboard_result_id': 10461072, '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_P22822254_09-05-2025_12_56_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22822283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22822284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22822285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22822286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22822287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22822288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22822289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22822290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22822291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22822292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22822293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22822294, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22824276, 'dashboard_result_id': 10461073, '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_P22824276_09-05-2025_13_49_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22824277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22824278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22824279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22824280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22824281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22824282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22824283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22824284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22824285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22824286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22824287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22824288, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22824519, 'dashboard_result_id': 10461074, '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_P22824519_09-05-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22824523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22824524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22824525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22824526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22824527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22824528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22824529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22824530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22824531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22824532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22824533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22824534, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22825011, 'dashboard_result_id': 10461075, '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_P22825011_09-05-2025_14_21_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22825060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22825061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22825062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22825063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22825064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22825065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22825066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22825067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22825068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22825069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22825070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22825071, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22825811, 'dashboard_result_id': 10461076, '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_P22825811_09-05-2025_14_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22825833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22825834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22825835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22825836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22825837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22825838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22825839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22825840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22825841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22825842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22825843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22825844, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22826693, 'dashboard_result_id': 10461077, '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_P22826693_09-05-2025_14_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22826723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22826724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22826725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22826726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22826727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22826728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22826729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22826730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22826731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22826732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22826733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22826734, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22827648, 'dashboard_result_id': 10461078, '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_P22827648_09-05-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22827678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22827679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22827681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22827682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22827683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22827685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22827686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22827687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22827688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22827689, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22828478, 'dashboard_result_id': 10461079, '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_P22828478_09-05-2025_15_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22828554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22828555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22828556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22828557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22828558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22828559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22828560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22828561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22828562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22828563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22828565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22828566, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22829434, 'dashboard_result_id': 10461080, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22829434_09-05-2025_15_36_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22829435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22829436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22829437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22829438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22829439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22829440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22829441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22829442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22829443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22829444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22829445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22829446, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22830600, 'dashboard_result_id': 10461081, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22830600_09-05-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22830665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22830666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22830667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22830668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22830669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22830670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22830671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22830672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22830673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22830674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22830675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22830676, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22831086, 'dashboard_result_id': 10461082, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831086_09-05-2025_16_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831127, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22831604, 'dashboard_result_id': 10461083, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831648, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22832346, 'dashboard_result_id': 10461084, '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_P22832346_09-05-2025_16_32_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832361, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22832727, 'dashboard_result_id': 10461085, '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_P22832727_09-05-2025_16_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832765, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22833211, 'dashboard_result_id': 10461086, '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_P22833211_09-05-2025_17_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833228, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22833758, 'dashboard_result_id': 10461087, '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_P22833758_09-05-2025_17_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833821, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22834699, 'dashboard_result_id': 10461088, '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_P22834699_09-05-2025_17_42_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22834832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22834833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22834834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22834835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22834836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22834837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22834838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22834839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22834840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22834841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22834842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22834843, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22835951, 'dashboard_result_id': 10461089, '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_P22835951_09-05-2025_18_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22836007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836018, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22836557, 'dashboard_result_id': 10461090, '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_P22836557_09-05-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22836609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836612, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22837268, 'dashboard_result_id': 10461091, '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_P22837268_09-05-2025_18_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22837269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22837270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22837271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22837272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22837273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22837274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22837275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22837276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22837277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22837278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22837279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22837280, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22838029, 'dashboard_result_id': 10461092, '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_P22838029_09-05-2025_19_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22838059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22838060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22838061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22838062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22838063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22838064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22838065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22838066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22838067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22838068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22838069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22838070, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22838999, 'dashboard_result_id': 10461093, '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_P22838999_09-05-2025_19_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22839062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22839063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22839064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22839065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22839066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22839067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22839068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22839069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22839070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22839071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22839072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22839073, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22839586, 'dashboard_result_id': 10461094, '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_P22839586_09-05-2025_19_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22839640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22839641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22839642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22839643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22839644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22839645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22839646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22839647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22839648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22839649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22839650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22839651, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22840072, 'dashboard_result_id': 10461095, '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_P22840072_09-05-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22840104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22840105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22840106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22840108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22840109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22840110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22840111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22840112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22840113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22840114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22840115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22840116, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22840559, 'dashboard_result_id': 10461096, '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_P22840559_09-05-2025_20_09_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22840586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22840587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22840588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22840589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22840590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22840591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22840592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22840593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22840594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22840595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22840596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22840597, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22841278, 'dashboard_result_id': 10461097, '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_P22841278_09-05-2025_21_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22841279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22841280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22841281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22841282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22841283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22841284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22841285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22841286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22841287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22841288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22841289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22841290, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22841701, 'dashboard_result_id': 10461098, '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_P22841701_09-05-2025_21_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22841702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22841703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22841704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22841705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22841706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22841707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22841708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22841709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22841710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22841711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22841712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22841713, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22842204, 'dashboard_result_id': 10461099, '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_P22842204_09-05-2025_21_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22842264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22842265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22842266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22842267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22842268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22842269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22842270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22842271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22842272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22842273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22842274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22842275, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22842610, 'dashboard_result_id': 10461100, '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_P22842610_09-05-2025_21_50_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22842646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22842647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22842648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22842649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22842650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22842651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22842652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22842653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22842654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22842655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22842656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22842657, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22843182, 'dashboard_result_id': 10461101, '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_P22843182_09-05-2025_22_05_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22843212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22843213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22843214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22843215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22843216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22843217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22843218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22843219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22843220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22843221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22843222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22843223, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22843812, 'dashboard_result_id': 10461102, '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_P22843812_09-05-2025_22_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22843816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22843817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22843818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22843819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22843820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22843821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22843822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22843823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22843824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22843825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22843826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22843827, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22844460, 'dashboard_result_id': 10461103, '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_P22844460_09-05-2025_22_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22844493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22844496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22844497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22844498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22844499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22844500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22844501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22844503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22844509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22844514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22844517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22844518, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22845147, 'dashboard_result_id': 10461104, '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_P22845147_09-05-2025_22_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22845184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22845185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22845186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22845187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22845188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22845189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22845190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22845191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22845192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22845193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22845194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22845195, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22845951, 'dashboard_result_id': 10461105, '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_P22845951_09-05-2025_23_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22845965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22845966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22845967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22845968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22845969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22845970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22845971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22845972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22845973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22845974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22845975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22845976, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22846634, 'dashboard_result_id': 10461106, '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_P22846634_09-05-2025_23_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22846639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22846640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22846641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22846642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22846643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22846644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22846645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22846646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22846647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22846648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22846649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22846650, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22847335, 'dashboard_result_id': 10461107, '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_P22847335_09-05-2025_23_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22847339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22847340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22847341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22847342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22847343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22847344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22847345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22847346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22847347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22847348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22847349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22847350, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1801010, 'mtr_portfolio_id': 22847849, 'dashboard_result_id': 10461108, '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_P22847849_09-05-2025_23_36_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22847852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22847853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22847854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22847855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22847856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22847857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22847858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22847859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22847860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22847861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22847862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22847863, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22808280 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810138, 'mtr_portfolio_id': 22808280, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 30), 'result': '0.06913327302407037', 'result_long': None, 'result_double': None}] Qualite : 0.06913327302407037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808280 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}" where mtr_portfolio_id = 22808280 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22808280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461046, 0.06913327302407037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22808548 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810139, 'mtr_portfolio_id': 22808548, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 58), 'result': '0.03951571250957044', 'result_long': None, 'result_double': None}] Qualite : 0.03951571250957044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808548 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}" where mtr_portfolio_id = 22808548 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22808548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461047, 0.03951571250957044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22808912 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810132, 'mtr_portfolio_id': 22808912, 'created_at': datetime.datetime(2025, 5, 9, 5, 50, 57), 'result': '0.03307885640778427', 'result_long': None, 'result_double': None}] Qualite : 0.03307885640778427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808912 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}" where mtr_portfolio_id = 22808912 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22808912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461048, 0.03307885640778427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22809471 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810189, 'mtr_portfolio_id': 22809471, 'created_at': datetime.datetime(2025, 5, 9, 6, 2, 59), 'result': '0.04790586201526422', 'result_long': None, 'result_double': None}] Qualite : 0.04790586201526422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809471 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}" where mtr_portfolio_id = 22809471 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22809471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461049, 0.04790586201526422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22809829 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810234, 'mtr_portfolio_id': 22809829, 'created_at': datetime.datetime(2025, 5, 9, 6, 18, 59), 'result': '0.056862605077740415', 'result_long': None, 'result_double': None}] Qualite : 0.056862605077740415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809829 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}" where mtr_portfolio_id = 22809829 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22809829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461050, 0.056862605077740415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22810325 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810278, 'mtr_portfolio_id': 22810325, 'created_at': datetime.datetime(2025, 5, 9, 6, 32, 57), 'result': '0.05784554719434019', 'result_long': None, 'result_double': None}] Qualite : 0.05784554719434019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810325 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}" where mtr_portfolio_id = 22810325 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22810325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461051, 0.05784554719434019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22810785 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810321, 'mtr_portfolio_id': 22810785, 'created_at': datetime.datetime(2025, 5, 9, 6, 48, 59), 'result': '0.04238890891936698', 'result_long': None, 'result_double': None}] Qualite : 0.04238890891936698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810785 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}" where mtr_portfolio_id = 22810785 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22810785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461052, 0.04238890891936698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22811272 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810366, 'mtr_portfolio_id': 22811272, 'created_at': datetime.datetime(2025, 5, 9, 7, 2, 58), 'result': '0.03954195196305571', 'result_long': None, 'result_double': None}] Qualite : 0.03954195196305571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}" where mtr_portfolio_id = 22811272 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22811272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461053, 0.03954195196305571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22811687 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810419, 'mtr_portfolio_id': 22811687, 'created_at': datetime.datetime(2025, 5, 9, 7, 21, 1), 'result': '0.040710775610379564', 'result_long': None, 'result_double': None}] Qualite : 0.040710775610379564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811687 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}" where mtr_portfolio_id = 22811687 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22811687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461054, 0.040710775610379564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22812382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810497, 'mtr_portfolio_id': 22812382, 'created_at': datetime.datetime(2025, 5, 9, 7, 33), 'result': '0.03290544309501728', 'result_long': None, 'result_double': None}] Qualite : 0.03290544309501728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}" where mtr_portfolio_id = 22812382 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22812382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461055, 0.03290544309501728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22812747 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810539, 'mtr_portfolio_id': 22812747, 'created_at': datetime.datetime(2025, 5, 9, 7, 46, 59), 'result': '0.04560334557780507', 'result_long': None, 'result_double': None}] Qualite : 0.04560334557780507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812747 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}" where mtr_portfolio_id = 22812747 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22812747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461056, 0.04560334557780507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22813158 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810590, 'mtr_portfolio_id': 22813158, 'created_at': datetime.datetime(2025, 5, 9, 8, 2, 58), 'result': '0.06227089715816248', 'result_long': None, 'result_double': None}] Qualite : 0.06227089715816248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813158 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}" where mtr_portfolio_id = 22813158 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461057, 0.06227089715816248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22813765 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810664, 'mtr_portfolio_id': 22813765, 'created_at': datetime.datetime(2025, 5, 9, 8, 16, 59), 'result': '0.06385383787588404', 'result_long': None, 'result_double': None}] Qualite : 0.06385383787588404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813765 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}" where mtr_portfolio_id = 22813765 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461058, 0.06385383787588404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22814401 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810727, 'mtr_portfolio_id': 22814401, 'created_at': datetime.datetime(2025, 5, 9, 8, 33, 1), 'result': '0.05223752094263289', 'result_long': None, 'result_double': None}] Qualite : 0.05223752094263289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814401 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}" where mtr_portfolio_id = 22814401 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22814401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461059, 0.05223752094263289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22814870 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810791, 'mtr_portfolio_id': 22814870, 'created_at': datetime.datetime(2025, 5, 9, 8, 49), 'result': '0.029737422408573598', 'result_long': None, 'result_double': None}] Qualite : 0.029737422408573598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814870 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}" where mtr_portfolio_id = 22814870 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22814870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461060, 0.029737422408573598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22815465 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2810899, 'mtr_portfolio_id': 22815465, 'created_at': datetime.datetime(2025, 5, 9, 9, 33, 31), 'result': '0.03761594021463628', 'result_long': None, 'result_double': None}] Qualite : 0.03761594021463628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22815465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22815465 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}" where mtr_portfolio_id = 22815465 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22815465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461061, 0.03761594021463628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22816849 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': 2811083, 'mtr_portfolio_id': 22816849, 'created_at': datetime.datetime(2025, 5, 9, 9, 47, 29), 'result': '0.03837428329008687', 'result_long': None, 'result_double': None}] Qualite : 0.03837428329008687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22816849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22816849_09-05-2025_09_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22816849 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_P22816849_09-05-2025_09_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816888, 'pht': 3726}}" where mtr_portfolio_id = 22816849 and dashboard_run_id = 1801010 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`=22816849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461062, 0.03837428329008687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22816849_09-05-2025_09_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816888, '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 = 22817262 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': 2811143, 'mtr_portfolio_id': 22817262, 'created_at': datetime.datetime(2025, 5, 9, 10, 2, 58), 'result': '0.04272842626279695', 'result_long': None, 'result_double': None}] Qualite : 0.04272842626279695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22817262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817262_09-05-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22817262 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_P22817262_09-05-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22817274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817281, 'pht': 3726}}" where mtr_portfolio_id = 22817262 and dashboard_run_id = 1801010 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`=22817262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461063, 0.04272842626279695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817262_09-05-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22817274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817281, '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 = 22817892 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': 2811234, 'mtr_portfolio_id': 22817892, 'created_at': datetime.datetime(2025, 5, 9, 10, 18, 59), 'result': '0.04879030848415373', 'result_long': None, 'result_double': None}] Qualite : 0.04879030848415373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22817892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817892_09-05-2025_10_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22817892 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_P22817892_09-05-2025_10_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22817896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817907, 'pht': 3726}}" where mtr_portfolio_id = 22817892 and dashboard_run_id = 1801010 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`=22817892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461064, 0.04879030848415373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817892_09-05-2025_10_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22817896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817907, '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 = 22818499 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': 2811315, 'mtr_portfolio_id': 22818499, 'created_at': datetime.datetime(2025, 5, 9, 10, 33), 'result': '0.03327763557242904', 'result_long': None, 'result_double': None}] Qualite : 0.03327763557242904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22818499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22818499_09-05-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22818499 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_P22818499_09-05-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22818531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22818532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22818533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22818534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22818535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22818536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22818537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22818538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22818539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22818540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22818541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22818542, 'pht': 3726}}" where mtr_portfolio_id = 22818499 and dashboard_run_id = 1801010 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`=22818499 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461065, 0.03327763557242904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22818499_09-05-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22818531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22818532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22818533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22818534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22818535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22818536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22818537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22818538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22818539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22818540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22818541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22818542, '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 = 22818948 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': 2811375, 'mtr_portfolio_id': 22818948, 'created_at': datetime.datetime(2025, 5, 9, 10, 49, 1), 'result': '0.03650620710340993', 'result_long': None, 'result_double': None}] Qualite : 0.03650620710340993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22818948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22818948_09-05-2025_10_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22818948 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_P22818948_09-05-2025_10_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22818956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22818957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22818958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22818959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22818960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22818961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22818962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22818963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22818964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22818965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22818966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22818967, 'pht': 3726}}" where mtr_portfolio_id = 22818948 and dashboard_run_id = 1801010 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`=22818948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461066, 0.03650620710340993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22818948_09-05-2025_10_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22818956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22818957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22818958, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22818959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22818960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22818961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22818962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22818963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22818964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22818965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22818966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22818967, '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 = 22819621 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': 2811465, 'mtr_portfolio_id': 22819621, 'created_at': datetime.datetime(2025, 5, 9, 11, 2, 59), 'result': '0.05806114870580952', 'result_long': None, 'result_double': None}] Qualite : 0.05806114870580952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22819621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22819621_09-05-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22819621 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_P22819621_09-05-2025_11_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22819627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22819628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22819629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22819630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22819631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22819632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22819633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22819634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22819635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22819636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22819637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22819638, 'pht': 3726}}" where mtr_portfolio_id = 22819621 and dashboard_run_id = 1801010 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`=22819621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461067, 0.05806114870580952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22819621_09-05-2025_11_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22819627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22819628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22819629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22819630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22819631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22819632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22819633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22819634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22819635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22819636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22819637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22819638, '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 = 22820055 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': 2811556, 'mtr_portfolio_id': 22820055, 'created_at': datetime.datetime(2025, 5, 9, 11, 18, 57), 'result': '0.04171578210863788', 'result_long': None, 'result_double': None}] Qualite : 0.04171578210863788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22820055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22820055_09-05-2025_11_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22820055 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_P22820055_09-05-2025_11_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22820059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22820060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22820061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22820062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22820063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22820064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22820065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22820066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22820067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22820068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22820069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22820070, 'pht': 3726}}" where mtr_portfolio_id = 22820055 and dashboard_run_id = 1801010 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`=22820055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461068, 0.04171578210863788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22820055_09-05-2025_11_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22820059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22820060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22820061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22820062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22820063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22820064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22820065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22820066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22820067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22820068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22820069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22820070, '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 = 22820724 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': 2811616, 'mtr_portfolio_id': 22820724, 'created_at': datetime.datetime(2025, 5, 9, 11, 32, 59), 'result': '0.03844676294521109', 'result_long': None, 'result_double': None}] Qualite : 0.03844676294521109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22820724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22820724_09-05-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22820724 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_P22820724_09-05-2025_11_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22820752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22820753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22820754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22820755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22820756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22820757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22820758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22820759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22820760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22820761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22820762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22820763, 'pht': 3726}}" where mtr_portfolio_id = 22820724 and dashboard_run_id = 1801010 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`=22820724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461069, 0.03844676294521109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22820724_09-05-2025_11_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22820752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22820753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22820754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22820755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22820756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22820757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22820758, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22820759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22820760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22820761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22820762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22820763, '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 = 22821162 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': 2811668, 'mtr_portfolio_id': 22821162, 'created_at': datetime.datetime(2025, 5, 9, 11, 49, 1), 'result': '0.0480135943443009', 'result_long': None, 'result_double': None}] Qualite : 0.0480135943443009 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22821162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22821162_09-05-2025_11_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22821162 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_P22821162_09-05-2025_11_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22821168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22821169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22821170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22821171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22821172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22821173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22821174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22821175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22821176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22821177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22821178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22821179, 'pht': 3726}}" where mtr_portfolio_id = 22821162 and dashboard_run_id = 1801010 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`=22821162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461070, 0.0480135943443009, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22821162_09-05-2025_11_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22821168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22821169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22821170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22821171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22821172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22821173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22821174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22821175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22821176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22821177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22821178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22821179, '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 = 22821669 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': 2811733, 'mtr_portfolio_id': 22821669, 'created_at': datetime.datetime(2025, 5, 9, 12, 4, 59), 'result': '0.04586320585794365', 'result_long': None, 'result_double': None}] Qualite : 0.04586320585794365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22821669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22821669_09-05-2025_12_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22821669 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_P22821669_09-05-2025_12_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22821676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22821677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22821678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22821679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22821680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22821681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22821682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22821683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22821684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22821685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22821686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22821687, 'pht': 3726}}" where mtr_portfolio_id = 22821669 and dashboard_run_id = 1801010 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`=22821669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461071, 0.04586320585794365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22821669_09-05-2025_12_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22821676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22821677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22821678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22821679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22821680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22821681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22821682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22821683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22821684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22821685, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22821686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22821687, '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 = 22822254 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': 2811815, 'mtr_portfolio_id': 22822254, 'created_at': datetime.datetime(2025, 5, 9, 12, 56, 30), 'result': '0.04311672234868158', 'result_long': None, 'result_double': None}] Qualite : 0.04311672234868158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22822254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22822254_09-05-2025_12_56_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22822254 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_P22822254_09-05-2025_12_56_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22822283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22822284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22822285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22822286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22822287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22822288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22822289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22822290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22822291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22822292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22822293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22822294, 'pht': 3726}}" where mtr_portfolio_id = 22822254 and dashboard_run_id = 1801010 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`=22822254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461072, 0.04311672234868158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22822254_09-05-2025_12_56_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22822283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22822284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22822285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22822286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22822287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22822288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22822289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22822290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22822291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22822292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22822293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22822294, '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 = 22824276 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': 2812121, 'mtr_portfolio_id': 22824276, 'created_at': datetime.datetime(2025, 5, 9, 13, 49, 30), 'result': '0.04597745078213921', 'result_long': None, 'result_double': None}] Qualite : 0.04597745078213921 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22824276 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22824276_09-05-2025_13_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22824276 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_P22824276_09-05-2025_13_49_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22824277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22824278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22824279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22824280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22824281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22824282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22824283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22824284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22824285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22824286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22824287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22824288, 'pht': 3726}}" where mtr_portfolio_id = 22824276 and dashboard_run_id = 1801010 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`=22824276 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461073, 0.04597745078213921, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22824276_09-05-2025_13_49_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22824277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22824278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22824279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22824280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22824281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22824282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22824283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22824284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22824285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22824286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22824287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22824288, '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 = 22824519 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': 2812152, 'mtr_portfolio_id': 22824519, 'created_at': datetime.datetime(2025, 5, 9, 14, 2, 58), 'result': '0.04140545406760007', 'result_long': None, 'result_double': None}] Qualite : 0.04140545406760007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22824519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22824519_09-05-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22824519 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_P22824519_09-05-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22824523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22824524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22824525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22824526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22824527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22824528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22824529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22824530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22824531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22824532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22824533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22824534, 'pht': 3726}}" where mtr_portfolio_id = 22824519 and dashboard_run_id = 1801010 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`=22824519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461074, 0.04140545406760007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22824519_09-05-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22824523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22824524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22824525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22824526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22824527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22824528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22824529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22824530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22824531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22824532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22824533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22824534, '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 = 22825011 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': 2812221, 'mtr_portfolio_id': 22825011, 'created_at': datetime.datetime(2025, 5, 9, 14, 21), 'result': '0.04509253572126824', 'result_long': None, 'result_double': None}] Qualite : 0.04509253572126824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22825011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22825011_09-05-2025_14_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22825011 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_P22825011_09-05-2025_14_21_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22825060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22825061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22825062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22825063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22825064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22825065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22825066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22825067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22825068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22825069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22825070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22825071, 'pht': 3726}}" where mtr_portfolio_id = 22825011 and dashboard_run_id = 1801010 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`=22825011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461075, 0.04509253572126824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22825011_09-05-2025_14_21_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22825060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22825061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22825062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22825063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22825064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22825065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22825066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22825067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22825068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22825069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22825070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22825071, '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 = 22825811 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': 2812332, 'mtr_portfolio_id': 22825811, 'created_at': datetime.datetime(2025, 5, 9, 14, 32, 57), 'result': '0.05139317739368009', 'result_long': None, 'result_double': None}] Qualite : 0.05139317739368009 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22825811 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22825811_09-05-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22825811 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_P22825811_09-05-2025_14_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22825833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22825834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22825835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22825836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22825837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22825838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22825839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22825840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22825841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22825842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22825843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22825844, 'pht': 3726}}" where mtr_portfolio_id = 22825811 and dashboard_run_id = 1801010 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`=22825811 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461076, 0.05139317739368009, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22825811_09-05-2025_14_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22825833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22825834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22825835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22825836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22825837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22825838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22825839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22825840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22825841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22825842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22825843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22825844, '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 = 22826693 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': 2812385, 'mtr_portfolio_id': 22826693, 'created_at': datetime.datetime(2025, 5, 9, 14, 48, 58), 'result': '0.04076780339818363', 'result_long': None, 'result_double': None}] Qualite : 0.04076780339818363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22826693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22826693_09-05-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22826693 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_P22826693_09-05-2025_14_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22826723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22826724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22826725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22826726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22826727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22826728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22826729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22826730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22826731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22826732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22826733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22826734, 'pht': 3726}}" where mtr_portfolio_id = 22826693 and dashboard_run_id = 1801010 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`=22826693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461077, 0.04076780339818363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22826693_09-05-2025_14_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22826723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22826724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22826725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22826726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22826727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22826728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22826729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22826730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22826731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22826732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22826733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22826734, '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 = 22827648 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': 2812459, 'mtr_portfolio_id': 22827648, 'created_at': datetime.datetime(2025, 5, 9, 15, 2, 59), 'result': '0.06229145043271542', 'result_long': None, 'result_double': None}] Qualite : 0.06229145043271542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22827648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22827648_09-05-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22827648 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_P22827648_09-05-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22827678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22827679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22827681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22827682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22827683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22827685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22827686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22827687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22827688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22827689, 'pht': 3726}}" where mtr_portfolio_id = 22827648 and dashboard_run_id = 1801010 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`=22827648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461078, 0.06229145043271542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22827648_09-05-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22827678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22827679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22827681, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22827682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22827683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22827685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22827686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22827687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22827688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22827689, '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 = 22828478 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': 2812569, 'mtr_portfolio_id': 22828478, 'created_at': datetime.datetime(2025, 5, 9, 15, 16, 57), 'result': '0.04318844541799716', 'result_long': None, 'result_double': None}] Qualite : 0.04318844541799716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22828478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22828478_09-05-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22828478 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_P22828478_09-05-2025_15_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22828554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22828555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22828556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22828557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22828558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22828559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22828560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22828561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22828562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22828563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22828565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22828566, 'pht': 3726}}" where mtr_portfolio_id = 22828478 and dashboard_run_id = 1801010 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`=22828478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461079, 0.04318844541799716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22828478_09-05-2025_15_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22828554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22828555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22828556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22828557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22828558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22828559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22828560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22828561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22828562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22828563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22828565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22828566, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22829434 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2812646, 'mtr_portfolio_id': 22829434, 'created_at': datetime.datetime(2025, 5, 9, 15, 36, 57), 'result': '0.050340132920930314', 'result_long': None, 'result_double': None}] Qualite : 0.050340132920930314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22829434 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22829434_09-05-2025_15_36_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22829434 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22829434_09-05-2025_15_36_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22829435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22829436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22829437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22829438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22829439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22829440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22829441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22829442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22829443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22829444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22829445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22829446, 'pht': 3726}}" where mtr_portfolio_id = 22829434 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22829434 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461080, 0.050340132920930314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22829434_09-05-2025_15_36_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22829435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22829436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22829437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22829438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22829439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22829440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22829441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22829442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22829443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22829444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22829445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22829446, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22830600 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2812769, 'mtr_portfolio_id': 22830600, 'created_at': datetime.datetime(2025, 5, 9, 15, 48, 57), 'result': '0.07664179499989596', 'result_long': None, 'result_double': None}] Qualite : 0.07664179499989596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22830600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22830600_09-05-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22830600 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22830600_09-05-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22830665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22830666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22830667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22830668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22830669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22830670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22830671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22830672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22830673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22830674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22830675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22830676, 'pht': 3726}}" where mtr_portfolio_id = 22830600 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22830600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461081, 0.07664179499989596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22830600_09-05-2025_15_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22830665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22830666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22830667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22830668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22830669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22830670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22830671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22830672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22830673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22830674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22830675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22830676, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22831086 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2812809, 'mtr_portfolio_id': 22831086, 'created_at': datetime.datetime(2025, 5, 9, 16, 2, 59), 'result': '0.059981122940922345', 'result_long': None, 'result_double': None}] Qualite : 0.059981122940922345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22831086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831086_09-05-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22831086 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831086_09-05-2025_16_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831127, 'pht': 3726}}" where mtr_portfolio_id = 22831086 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22831086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461082, 0.059981122940922345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831086_09-05-2025_16_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831127, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22831604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2812873, 'mtr_portfolio_id': 22831604, 'created_at': datetime.datetime(2025, 5, 9, 16, 20, 58), 'result': '0.05105706718013599', 'result_long': None, 'result_double': None}] Qualite : 0.05105706718013599 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22831604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22831604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831648, 'pht': 3726}}" where mtr_portfolio_id = 22831604 and dashboard_run_id = 1801010 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22831604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461083, 0.05105706718013599, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22831604_09-05-2025_16_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22831637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22831638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22831639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22831640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22831641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22831642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22831643, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22831644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22831645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22831646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22831647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22831648, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22832346 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': 2812952, 'mtr_portfolio_id': 22832346, 'created_at': datetime.datetime(2025, 5, 9, 16, 32, 28), 'result': '0.04556709389181838', 'result_long': None, 'result_double': None}] Qualite : 0.04556709389181838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22832346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832346_09-05-2025_16_32_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22832346 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_P22832346_09-05-2025_16_32_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832361, 'pht': 3726}}" where mtr_portfolio_id = 22832346 and dashboard_run_id = 1801010 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`=22832346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461084, 0.04556709389181838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832346_09-05-2025_16_32_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832361, '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 = 22832727 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': 2813016, 'mtr_portfolio_id': 22832727, 'created_at': datetime.datetime(2025, 5, 9, 16, 47), 'result': '0.04430629820289041', 'result_long': None, 'result_double': None}] Qualite : 0.04430629820289041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22832727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832727_09-05-2025_16_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22832727 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_P22832727_09-05-2025_16_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832765, 'pht': 3726}}" where mtr_portfolio_id = 22832727 and dashboard_run_id = 1801010 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`=22832727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461085, 0.04430629820289041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22832727_09-05-2025_16_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22832754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22832755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22832756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22832757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22832758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22832759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22832760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22832761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22832762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22832763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22832764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22832765, '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 = 22833211 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': 2813058, 'mtr_portfolio_id': 22833211, 'created_at': datetime.datetime(2025, 5, 9, 17, 2, 59), 'result': '0.0473200612187203', 'result_long': None, 'result_double': None}] Qualite : 0.0473200612187203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22833211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833211_09-05-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22833211 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_P22833211_09-05-2025_17_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833228, 'pht': 3726}}" where mtr_portfolio_id = 22833211 and dashboard_run_id = 1801010 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`=22833211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461086, 0.0473200612187203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833211_09-05-2025_17_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833228, '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 = 22833758 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': 2813142, 'mtr_portfolio_id': 22833758, 'created_at': datetime.datetime(2025, 5, 9, 17, 18, 57), 'result': '0.039335376627278984', 'result_long': None, 'result_double': None}] Qualite : 0.039335376627278984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22833758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833758_09-05-2025_17_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22833758 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_P22833758_09-05-2025_17_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833821, 'pht': 3726}}" where mtr_portfolio_id = 22833758 and dashboard_run_id = 1801010 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`=22833758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461087, 0.039335376627278984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22833758_09-05-2025_17_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22833810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22833811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22833812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22833813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22833814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22833815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22833816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22833817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22833818, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22833819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22833820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22833821, '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 = 22834699 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': 2813215, 'mtr_portfolio_id': 22834699, 'created_at': datetime.datetime(2025, 5, 9, 17, 42, 58), 'result': '0.05815824350617328', 'result_long': None, 'result_double': None}] Qualite : 0.05815824350617328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22834699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22834699_09-05-2025_17_42_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22834699 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_P22834699_09-05-2025_17_42_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22834832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22834833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22834834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22834835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22834836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22834837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22834838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22834839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22834840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22834841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22834842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22834843, 'pht': 3726}}" where mtr_portfolio_id = 22834699 and dashboard_run_id = 1801010 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`=22834699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461088, 0.05815824350617328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22834699_09-05-2025_17_42_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22834832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22834833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22834834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22834835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22834836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22834837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22834838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22834839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22834840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22834841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22834842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22834843, '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 = 22835951 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': 2813411, 'mtr_portfolio_id': 22835951, 'created_at': datetime.datetime(2025, 5, 9, 18, 16, 58), 'result': '0.061855216693708616', 'result_long': None, 'result_double': None}] Qualite : 0.061855216693708616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22835951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22835951_09-05-2025_18_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22835951 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_P22835951_09-05-2025_18_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22836007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836018, 'pht': 3726}}" where mtr_portfolio_id = 22835951 and dashboard_run_id = 1801010 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`=22835951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461089, 0.061855216693708616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22835951_09-05-2025_18_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22836007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836014, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836015, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836018, '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 = 22836557 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': 2813457, 'mtr_portfolio_id': 22836557, 'created_at': datetime.datetime(2025, 5, 9, 18, 32, 59), 'result': '0.05259773532747991', 'result_long': None, 'result_double': None}] Qualite : 0.05259773532747991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22836557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22836557_09-05-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22836557 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_P22836557_09-05-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22836609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836612, 'pht': 3726}}" where mtr_portfolio_id = 22836557 and dashboard_run_id = 1801010 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`=22836557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461090, 0.05259773532747991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22836557_09-05-2025_18_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22836601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22836602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22836603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22836604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22836605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22836606, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22836607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22836608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22836609, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22836610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22836611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22836612, '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 = 22837268 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': 2813552, 'mtr_portfolio_id': 22837268, 'created_at': datetime.datetime(2025, 5, 9, 18, 48, 58), 'result': '0.04369401902261158', 'result_long': None, 'result_double': None}] Qualite : 0.04369401902261158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22837268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22837268_09-05-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22837268 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_P22837268_09-05-2025_18_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22837269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22837270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22837271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22837272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22837273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22837274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22837275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22837276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22837277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22837278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22837279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22837280, 'pht': 3726}}" where mtr_portfolio_id = 22837268 and dashboard_run_id = 1801010 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`=22837268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461091, 0.04369401902261158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22837268_09-05-2025_18_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22837269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22837270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22837271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22837272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22837273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22837274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22837275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22837276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22837277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22837278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22837279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22837280, '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 = 22838029 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': 2813625, 'mtr_portfolio_id': 22838029, 'created_at': datetime.datetime(2025, 5, 9, 19, 4, 58), 'result': '0.059210897655934694', 'result_long': None, 'result_double': None}] Qualite : 0.059210897655934694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22838029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838029_09-05-2025_19_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22838029 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_P22838029_09-05-2025_19_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22838059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22838060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22838061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22838062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22838063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22838064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22838065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22838066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22838067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22838068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22838069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22838070, 'pht': 3726}}" where mtr_portfolio_id = 22838029 and dashboard_run_id = 1801010 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`=22838029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461092, 0.059210897655934694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838029_09-05-2025_19_04_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22838059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22838060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22838061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22838062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22838063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22838064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22838065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22838066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22838067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22838068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22838069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22838070, '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 = 22838999 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': 2813711, 'mtr_portfolio_id': 22838999, 'created_at': datetime.datetime(2025, 5, 9, 19, 18, 58), 'result': '0.035590330330752484', 'result_long': None, 'result_double': None}] Qualite : 0.035590330330752484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22838999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838999_09-05-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22838999 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_P22838999_09-05-2025_19_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22839062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22839063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22839064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22839065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22839066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22839067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22839068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22839069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22839070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22839071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22839072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22839073, 'pht': 3726}}" where mtr_portfolio_id = 22838999 and dashboard_run_id = 1801010 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`=22838999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461093, 0.035590330330752484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22838999_09-05-2025_19_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22839062, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22839063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22839064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22839065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22839066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22839067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22839068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22839069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22839070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22839071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22839072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22839073, '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 = 22839586 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': 2813763, 'mtr_portfolio_id': 22839586, 'created_at': datetime.datetime(2025, 5, 9, 19, 33), 'result': '0.054526921330389264', 'result_long': None, 'result_double': None}] Qualite : 0.054526921330389264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22839586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22839586_09-05-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22839586 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_P22839586_09-05-2025_19_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22839640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22839641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22839642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22839643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22839644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22839645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22839646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22839647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22839648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22839649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22839650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22839651, 'pht': 3726}}" where mtr_portfolio_id = 22839586 and dashboard_run_id = 1801010 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`=22839586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461094, 0.054526921330389264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22839586_09-05-2025_19_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22839640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22839641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22839642, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22839643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22839644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22839645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22839646, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22839647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22839648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22839649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22839650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22839651, '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 = 22840072 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': 2813811, 'mtr_portfolio_id': 22840072, 'created_at': datetime.datetime(2025, 5, 9, 19, 46, 58), 'result': '0.05704165043056362', 'result_long': None, 'result_double': None}] Qualite : 0.05704165043056362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22840072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22840072_09-05-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22840072 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_P22840072_09-05-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22840104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22840105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22840106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22840108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22840109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22840110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22840111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22840112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22840113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22840114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22840115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22840116, 'pht': 3726}}" where mtr_portfolio_id = 22840072 and dashboard_run_id = 1801010 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`=22840072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461095, 0.05704165043056362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22840072_09-05-2025_19_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22840104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22840105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22840106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22840108, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22840109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22840110, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22840111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22840112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22840113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22840114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22840115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22840116, '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 = 22840559 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': 2813865, 'mtr_portfolio_id': 22840559, 'created_at': datetime.datetime(2025, 5, 9, 20, 9), 'result': '0.03103442182431158', 'result_long': None, 'result_double': None}] Qualite : 0.03103442182431158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22840559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22840559_09-05-2025_20_09_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22840559 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_P22840559_09-05-2025_20_09_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22840586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22840587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22840588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22840589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22840590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22840591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22840592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22840593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22840594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22840595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22840596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22840597, 'pht': 3726}}" where mtr_portfolio_id = 22840559 and dashboard_run_id = 1801010 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`=22840559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461096, 0.03103442182431158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22840559_09-05-2025_20_09_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22840586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22840587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22840588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22840589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22840590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22840591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22840592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22840593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22840594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22840595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22840596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22840597, '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 = 22841278 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': 2814014, 'mtr_portfolio_id': 22841278, 'created_at': datetime.datetime(2025, 5, 9, 21, 4, 58), 'result': '0.03351500555645424', 'result_long': None, 'result_double': None}] Qualite : 0.03351500555645424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22841278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22841278_09-05-2025_21_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22841278 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_P22841278_09-05-2025_21_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22841279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22841280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22841281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22841282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22841283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22841284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22841285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22841286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22841287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22841288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22841289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22841290, 'pht': 3726}}" where mtr_portfolio_id = 22841278 and dashboard_run_id = 1801010 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`=22841278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461097, 0.03351500555645424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22841278_09-05-2025_21_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22841279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22841280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22841281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22841282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22841283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22841284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22841285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22841286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22841287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22841288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22841289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22841290, '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 = 22841701 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': 2814093, 'mtr_portfolio_id': 22841701, 'created_at': datetime.datetime(2025, 5, 9, 21, 18, 59), 'result': '0.04499652441754857', 'result_long': None, 'result_double': None}] Qualite : 0.04499652441754857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22841701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22841701_09-05-2025_21_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22841701 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_P22841701_09-05-2025_21_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22841702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22841703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22841704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22841705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22841706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22841707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22841708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22841709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22841710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22841711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22841712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22841713, 'pht': 3726}}" where mtr_portfolio_id = 22841701 and dashboard_run_id = 1801010 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`=22841701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461098, 0.04499652441754857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22841701_09-05-2025_21_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22841702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22841703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22841704, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22841705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22841706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22841707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22841708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22841709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22841710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22841711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22841712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22841713, '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 = 22842204 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': 2814140, 'mtr_portfolio_id': 22842204, 'created_at': datetime.datetime(2025, 5, 9, 21, 32, 57), 'result': '0.02678001879405945', 'result_long': None, 'result_double': None}] Qualite : 0.02678001879405945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22842204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22842204_09-05-2025_21_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22842204 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_P22842204_09-05-2025_21_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22842264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22842265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22842266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22842267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22842268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22842269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22842270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22842271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22842272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22842273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22842274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22842275, 'pht': 3726}}" where mtr_portfolio_id = 22842204 and dashboard_run_id = 1801010 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`=22842204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461099, 0.02678001879405945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22842204_09-05-2025_21_32_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22842264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22842265, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22842266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22842267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22842268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22842269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22842270, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22842271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22842272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22842273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22842274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22842275, '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 = 22842610 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': 2814211, 'mtr_portfolio_id': 22842610, 'created_at': datetime.datetime(2025, 5, 9, 21, 50, 57), 'result': '0.022313161406723386', 'result_long': None, 'result_double': None}] Qualite : 0.022313161406723386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22842610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22842610_09-05-2025_21_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22842610 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_P22842610_09-05-2025_21_50_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22842646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22842647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22842648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22842649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22842650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22842651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22842652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22842653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22842654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22842655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22842656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22842657, 'pht': 3726}}" where mtr_portfolio_id = 22842610 and dashboard_run_id = 1801010 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`=22842610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461100, 0.022313161406723386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22842610_09-05-2025_21_50_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22842646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22842647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22842648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22842649, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22842650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22842651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22842652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22842653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22842654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22842655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22842656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22842657, '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 = 22843182 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': 2814279, 'mtr_portfolio_id': 22843182, 'created_at': datetime.datetime(2025, 5, 9, 22, 5, 1), 'result': '0.03299003950742456', 'result_long': None, 'result_double': None}] Qualite : 0.03299003950742456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22843182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22843182_09-05-2025_22_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22843182 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_P22843182_09-05-2025_22_05_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22843212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22843213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22843214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22843215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22843216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22843217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22843218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22843219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22843220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22843221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22843222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22843223, 'pht': 3726}}" where mtr_portfolio_id = 22843182 and dashboard_run_id = 1801010 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`=22843182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461101, 0.03299003950742456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22843182_09-05-2025_22_05_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22843212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22843213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22843214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22843215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22843216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22843217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22843218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22843219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22843220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22843221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22843222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22843223, '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 = 22843812 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': 2814390, 'mtr_portfolio_id': 22843812, 'created_at': datetime.datetime(2025, 5, 9, 22, 19, 31), 'result': '0.04363358924766991', 'result_long': None, 'result_double': None}] Qualite : 0.04363358924766991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22843812 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22843812_09-05-2025_22_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22843812 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_P22843812_09-05-2025_22_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22843816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22843817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22843818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22843819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22843820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22843821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22843822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22843823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22843824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22843825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22843826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22843827, 'pht': 3726}}" where mtr_portfolio_id = 22843812 and dashboard_run_id = 1801010 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`=22843812 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461102, 0.04363358924766991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22843812_09-05-2025_22_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22843816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22843817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22843818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22843819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22843820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22843821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22843822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22843823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22843824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22843825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22843826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22843827, '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 = 22844460 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': 2814439, 'mtr_portfolio_id': 22844460, 'created_at': datetime.datetime(2025, 5, 9, 22, 33, 1), 'result': '0.03730499693163228', 'result_long': None, 'result_double': None}] Qualite : 0.03730499693163228 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22844460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22844460_09-05-2025_22_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22844460 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_P22844460_09-05-2025_22_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22844493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22844496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22844497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22844498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22844499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22844500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22844501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22844503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22844509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22844514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22844517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22844518, 'pht': 3726}}" where mtr_portfolio_id = 22844460 and dashboard_run_id = 1801010 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`=22844460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461103, 0.03730499693163228, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22844460_09-05-2025_22_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22844493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22844496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22844497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22844498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22844499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22844500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22844501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22844503, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22844509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22844514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22844517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22844518, '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 = 22845147 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': 2814489, 'mtr_portfolio_id': 22845147, 'created_at': datetime.datetime(2025, 5, 9, 22, 48, 58), 'result': '0.04842331784978372', 'result_long': None, 'result_double': None}] Qualite : 0.04842331784978372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22845147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22845147_09-05-2025_22_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22845147 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_P22845147_09-05-2025_22_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22845184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22845185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22845186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22845187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22845188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22845189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22845190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22845191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22845192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22845193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22845194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22845195, 'pht': 3726}}" where mtr_portfolio_id = 22845147 and dashboard_run_id = 1801010 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`=22845147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461104, 0.04842331784978372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22845147_09-05-2025_22_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22845184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22845185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22845186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22845187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22845188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22845189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22845190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22845191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22845192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22845193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22845194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22845195, '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 = 22845951 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': 2814546, 'mtr_portfolio_id': 22845951, 'created_at': datetime.datetime(2025, 5, 9, 23, 1, 59), 'result': '0.03855804298533271', 'result_long': None, 'result_double': None}] Qualite : 0.03855804298533271 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22845951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22845951_09-05-2025_23_01_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22845951 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_P22845951_09-05-2025_23_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22845965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22845966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22845967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22845968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22845969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22845970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22845971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22845972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22845973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22845974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22845975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22845976, 'pht': 3726}}" where mtr_portfolio_id = 22845951 and dashboard_run_id = 1801016 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`=22845951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461105, 0.03855804298533271, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22845951_09-05-2025_23_01_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22845965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22845966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22845967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22845968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22845969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22845970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22845971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22845972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22845973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22845974, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22845975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22845976, '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 = 22846634 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': 2814593, 'mtr_portfolio_id': 22846634, 'created_at': datetime.datetime(2025, 5, 9, 23, 16, 58), 'result': '0.047956890190273965', 'result_long': None, 'result_double': None}] Qualite : 0.047956890190273965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22846634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22846634_09-05-2025_23_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22846634 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_P22846634_09-05-2025_23_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22846639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22846640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22846641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22846642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22846643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22846644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22846645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22846646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22846647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22846648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22846649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22846650, 'pht': 3726}}" where mtr_portfolio_id = 22846634 and dashboard_run_id = 1801016 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`=22846634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461106, 0.047956890190273965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22846634_09-05-2025_23_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22846639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22846640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22846641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22846642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22846643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22846644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22846645, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22846646, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22846647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22846648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22846649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22846650, '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 = 22847335 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': 2814635, 'mtr_portfolio_id': 22847335, 'created_at': datetime.datetime(2025, 5, 9, 23, 34, 57), 'result': '0.03896456844948922', 'result_long': None, 'result_double': None}] Qualite : 0.03896456844948922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22847335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22847335_09-05-2025_23_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22847335 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_P22847335_09-05-2025_23_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22847339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22847340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22847341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22847342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22847343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22847344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22847345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22847346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22847347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22847348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22847349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22847350, 'pht': 3726}}" where mtr_portfolio_id = 22847335 and dashboard_run_id = 1801016 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`=22847335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461107, 0.03896456844948922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22847335_09-05-2025_23_34_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22847339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22847340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22847341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22847342, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22847343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22847344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22847345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22847346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22847347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22847348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22847349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22847350, '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 = 22847849 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': 2814684, 'mtr_portfolio_id': 22847849, 'created_at': datetime.datetime(2025, 5, 9, 23, 38, 57), 'result': '0.05274499367360063', 'result_long': None, 'result_double': None}] Qualite : 0.05274499367360063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22847849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22847849_09-05-2025_23_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22847849 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_P22847849_09-05-2025_23_38_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22847852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22847853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22847854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22847855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22847856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22847857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22847858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22847859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22847860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22847861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22847862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22847863, 'pht': 3726}}" where mtr_portfolio_id = 22847849 and dashboard_run_id = 1801016 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`=22847849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10461108, 0.05274499367360063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22847849_09-05-2025_23_38_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22847852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22847853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22847854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22847855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22847856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22847857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22847858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22847859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22847860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22847861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22847862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22847863, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22808280,22808548,22808912,22809471,22809829,22810325,22810785,22811272,22811687,22812382,22812747,22813158,22813765,22814401,22814870,22815465,22816849,22817262,22817892,22818499,22818948,22819621,22820055,22820724,22821162,22821669,22822254,22824276,22824519,22825011,22825811,22826693,22827648,22828478,22829434,22830600,22831086,22831604,22832346,22832727,22833211,22833758,22834699,22835951,22836557,22837268,22838029,22838999,22839586,22840072,22840559,22841278,22841701,22842204,22842610,22843182,22843812,22844460,22845147,22845951,22846634,22847335,22847849) result : ((1357120566,), (1357120592,), (1357120613,), (1357120618,), (1357120620,), (1357120623,), (1357120642,), (1357120645,), (1357120716,), (1357120718,), (1357120992,), (1357121397,), (1357121425,), (1357121503,), (1357121506,), (1357121513,), (1357121547,), (1357121574,), (1357121576,), (1357121648,), (1357121645,), (1357121646,), (1357121647,), (1357121670,), (1357121672,), (1357121673,), (1357121698,), (1357121699,), (1357121700,), (1357121701,), (1357121725,), (1357121726,), (1357121728,), (1357121730,), (1357121731,), (1357121759,), (1357121762,), (1357121764,), (1357121767,), (1357121772,), (1357121812,), (1357121815,), (1357121817,), (1357121821,), (1357121823,), (1357121842,), (1357121843,), (1357121845,), (1357121847,), (1357121874,), (1357121877,), (1357122056,), (1357122058,), (1357122059,), (1357122060,), (1357122062,), (1357122086,), (1357122089,), (1357122091,), (1357122093,), (1357122096,), (1357122113,), (1357122114,), (1357122116,), (1357122118,), (1357122141,), (1357122143,), (1357122145,), (1357122147,), (1357122150,), (1357122176,), (1357122179,), (1357122181,), (1357122182,), (1357122184,), (1357122214,), (1357122216,), (1357122219,), (1357122256,), (1357122250,), (1357122252,), (1357122254,), (1357122281,), (1357122283,), (1357122285,), (1357122288,), (1357122290,), (1357122315,), (1357122316,), (1357122317,), (1357122318,), (1357122353,), (1357122355,), (1357122357,), (1357122387,), (1357122389,), (1357122391,), (1357122393,), (1357122394,), (1357122429,), (1357122431,), (1357122433,), (1357122435,), (1357122463,), (1357122465,), (1357122468,), (1357122470,), (1357122496,), (1357122498,), (1357122500,), (1357122502,), (1357122525,), (1357122527,), (1357122529,), (1357122532,), (1357122534,), (1357122555,), (1357122595,), (1357122600,), (1357122603,), (1357122607,), (1357122611,), (1357122642,), (1357122645,), (1357122648,), (1357122651,), (1357122685,), (1357122687,), (1357122689,), (1357122691,), (1357122694,), (1357122727,), (1357122728,), (1357122729,), (1357122730,), (1357122732,), (1357122733,), (1357122765,), (1357122766,), (1357122767,), (1357122814,), (1357122801,), (1357122804,), (1357122806,), (1357122809,), (1357122811,), (1357122839,), (1357122841,), (1357122844,), (1357122846,), (1357122849,), (1357122876,), (1357122878,), (1357122880,), (1357122882,), (1357122883,), (1357122912,), (1357122914,), (1357122917,), (1357122919,), (1357122923,), (1357122926,), (1357122952,), (1357122955,), (1357122957,), (1357122959,), (1357122995,), (1357122998,), (1357123001,), (1357123004,), (1357123007,), (1357123011,), (1357123050,), (1357123053,), (1357123055,), (1357123058,), (1357123061,), (1357123082,), (1357123084,), (1357123085,), (1357123114,), (1357123116,), (1357123118,), (1357123120,), (1357123123,), (1357123124,), (1357123149,), (1357123152,), (1357123154,), (1357123156,), (1357123158,), (1357123249,), (1357123252,), (1357123255,), (1357123290,), (1357123292,), (1357123295,), (1357123312,), (1357123343,), (1357123519,), (1357123530,), (1357123549,), (1357123561,), (1357123564,), (1357123615,), (1357123618,), (1357123623,), (1357123627,), (1357123671,), (1357123668,), (1357123704,), (1357123707,), (1357123709,), (1357123711,), (1357123713,), (1357123753,), (1357123755,), (1357123758,), (1357123760,), (1357123762,), (1357123793,), (1357123795,), (1357123797,), (1357123799,), (1357123801,), (1357123826,), (1357123828,), (1357123874,), (1357123876,), (1357123878,), (1357123880,), (1357123883,), (1357123884,), (1357123913,), (1357123915,), (1357123963,), (1357123965,), (1357123967,), (1357123970,), (1357123971,), (1357124002,), (1357124018,), (1357124035,), (1357124064,), (1357124067,), (1357124069,), (1357124073,), (1357124076,), (1357124077,), (1357124101,), (1357124103,), (1357124105,), (1357124107,), (1357124110,), (1357124128,), (1357124131,), (1357124133,), (1357124136,), (1357124138,), (1357124175,), (1357124178,), (1357124180,), (1357124211,), (1357124213,), (1357124217,), (1357124219,), (1357124221,), (1357124269,), (1357124258,), (1357124261,), (1357124263,), (1357124265,), (1357124267,), (1357124298,), (1357124299,), (1357124300,), (1357124342,), (1357124344,), (1357124346,), (1357124349,), (1357124380,), (1357124382,), (1357124384,), (1357124386,), (1357124423,), (1357124425,), (1357124427,), (1357124429,), (1357124473,), (1357124476,), (1357124479,), (1357124480,), (1357124482,), (1357124483,), (1357124526,), (1357124527,), (1357124530,), (1357124533,), (1357124538,), (1357124541,), (1357124572,), (1357124576,), (1357124578,), (1357124580,), (1357124581,), (1357124624,), (1357124649,), (1357124650,), (1357124651,), (1357124652,), (1357124695,), (1357124696,), (1357124697,), (1357124698,), (1357124723,), (1357124724,), (1357124725,), (1357124758,), (1357124760,), (1357124762,), (1357124800,), (1357124802,), (1357124804,), (1357124806,), (1357124809,), (1357124811,), (1357124840,), (1357124842,), (1357124844,), (1357124846,), (1357124851,), (1357124854,), (1357124898,), (1357124888,), (1357124891,), (1357124893,), (1357124926,), (1357124928,), (1357124930,), (1357124932,), (1357124934,), (1357124939,), (1357124968,), (1357124971,), (1357124974,), (1357124977,), (1357124981,), (1357124985,), (1357125023,), (1357125026,), (1357125028,), (1357125030,), (1357125032,), (1357125064,), (1357125066,), (1357125069,), (1357125072,), (1357125075,), (1357125076,), (1357125122,), (1357125127,), (1357125129,), (1357125132,), (1357125135,), (1357125170,), (1357125172,), (1357125174,), (1357125209,), (1357125212,), (1357125214,), (1357125216,), (1357125218,), (1357125222,), (1357125261,), (1357125263,), (1357125266,), (1357125269,), (1357125271,), (1357125276,), (1357125300,), (1357125304,), (1357125308,), (1357125347,), (1357125350,), (1357125353,), (1357125356,), (1357125359,), (1357125402,), (1357125404,), (1357125405,), (1357125406,), (1357125442,), (1357125444,), (1357125446,), (1357125495,), (1357125497,), (1357125498,), (1357125499,), (1357125502,), (1357125533,), (1357125535,), (1357125537,), (1357125539,), (1357125582,), (1357125576,), (1357125578,), (1357125580,), (1357125611,), (1357125613,), (1357125615,), (1357125616,), (1357125643,), (1357125645,), (1357125646,), (1357125647,), (1357125688,), (1357125690,), (1357125691,), (1357125692,), (1357125693,), (1357125696,), (1357125731,), (1357125847,), (1357125901,), (1357125904,), (1357125907,), (1357125935,), (1357125937,), (1357125939,), (1357125941,), (1357125943,), (1357125947,), (1357125972,), (1357125999,), (1357126035,), (1357126086,), (1357126145,), (1357126423,), (1357126438,), (1357126441,), (1357126443,), (1357126526,), (1357126534,), (1357126539,), (1357126545,), (1357126552,), (1357126557,), (1357126563,), (1357126564,), (1357126574,), (1357126580,), (1357126584,), (1357126611,), (1357126596,), (1357126601,), (1357126605,), (1357126607,), (1357126635,), (1357126644,), (1357126649,), (1357126687,), (1357126691,), (1357126694,), (1357126697,), (1357126743,), (1357126748,), (1357126753,), (1357126758,), (1357126762,), (1357126766,), (1357126808,), (1357126810,), (1357126812,), (1357126815,), (1357126819,), (1357126824,), (1357126858,), (1357126862,), (1357126867,), (1357126872,), (1357126913,), (1357126917,), (1357126921,), (1357126923,), (1357126927,), (1357126974,), (1357126979,), (1357126985,), (1357127012,), (1357127042,), (1357127164,), (1357127168,), (1357127173,), (1357127176,), (1357127179,), (1357127228,), (1357127232,), (1357127235,), (1357127239,), (1357127245,), (1357127251,), (1357127347,), (1357127352,), (1357127359,), (1357127474,), (1357127478,), (1357127483,), (1357127488,), (1357127491,), (1357127534,), (1357127539,), (1357127542,), (1357127545,), (1357127549,), (1357127573,), (1357127576,), (1357127580,), (1357127627,), (1357127632,), (1357127637,), (1357127641,), (1357127645,), (1357127648,), (1357127702,), (1357127691,), (1357127694,), (1357127696,), (1357127698,), (1357127741,), (1357127745,), (1357127748,), (1357127756,), (1357127830,), (1357127835,), (1357127885,), (1357127889,), (1357127891,), (1357127896,), (1357127935,), (1357127938,), (1357127942,), (1357127946,), (1357127983,), (1357127989,), (1357127993,), (1357127996,), (1357128034,), (1357128038,), (1357128043,), (1357128098,), (1357128101,), (1357128104,), (1357128108,), (1357128163,), (1357128168,), (1357128173,), (1357128178,), (1357128230,), (1357128234,), (1357128237,), (1357128241,), (1357128285,), (1357128296,), (1357128304,), (1357128348,), (1357128351,), (1357128355,), (1357128359,), (1357128364,), (1357128372,), (1357128533,), (1357128538,), (1357128542,), (1357128598,), (1357128602,), (1357128607,), (1357128659,), (1357128653,), (1357128656,), (1357128709,), (1357128714,), (1357128718,), (1357128722,), (1357128727,), (1357128732,), (1357128766,), (1357128772,), (1357128776,), (1357128783,), (1357128787,), (1357128819,), (1357128826,), (1357128830,), (1357128844,), (1357128902,), (1357128908,), (1357128913,), (1357128917,), (1357128921,), (1357128961,), (1357128966,), (1357128971,), (1357128976,), (1357129019,), (1357129027,), (1357129032,), (1357129034,), (1357129039,), (1357129075,), (1357129149,), (1357129205,), (1357129209,), (1357129212,), (1357129215,), (1357129219,), (1357129260,), (1357129265,), (1357129270,), (1357129315,), (1357129319,), (1357129330,), (1357129334,), (1357129350,), (1357129395,), (1357129399,), (1357129405,), (1357129411,), (1357129415,), (1357129463,), (1357129466,), (1357129470,), (1357129473,), (1357129543,), (1357129547,), (1357129551,), (1357129554,), (1357129591,), (1357129597,), (1357129703,), (1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,), (1357131639,), (1357131722,), (1357131784,), (1357131846,), (1357131900,), (1357131950,), (1357132198,), (1357132277,), (1357132361,), (1357132437,), (1357132822,), (1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,), (1357136279,), (1357136282,), (1357136284,), (1357136286,), (1357136290,), (1357136292,), (1357136342,), (1357136348,), (1357136352,), (1357136357,), (1357136363,), (1357136415,), (1357136406,), (1357136409,), (1357136413,), (1357136455,), (1357136459,), (1357136462,), (1357136466,), (1357136469,), (1357136471,), (1357136512,), (1357136515,), (1357136517,), (1357136524,), (1357136532,), (1357136540,), (1357136609,), (1357136613,), (1357136733,), (1357136737,), (1357136742,), (1357136746,), (1357136798,), (1357136811,), (1357136814,), (1357136816,), (1357136819,), (1357136862,), (1357136864,), (1357136867,), (1357136870,), (1357136873,), (1357136912,), (1357136913,), (1357136916,), (1357136919,), (1357136922,), (1357136965,), (1357136970,), (1357136972,), (1357136976,), (1357136979,), (1357136983,), (1357137032,), (1357137034,), (1357137036,), (1357137096,), (1357137130,), (1357137136,), (1357137138,), (1357137142,), (1357137170,), (1357137201,), (1357137203,), (1357137205,), (1357137207,), (1357137246,), (1357137250,), (1357137253,), (1357137255,), (1357137306,), (1357137319,), (1357137322,), (1357137325,), (1357137327,), (1357137333,), (1357137403,), (1357137376,), (1357137386,), (1357137391,), (1357137398,), (1357137433,), (1357137478,), (1357137482,), (1357137529,), (1357137532,), (1357137536,), (1357137543,), (1357137547,), (1357137551,), (1357137587,), (1357137592,), (1357137597,), (1357137601,), (1357137636,), (1357137639,), (1357137643,), (1357137647,), (1357137679,), (1357137683,), (1357137688,), (1357137693,), (1357137698,), (1357137739,), (1357137741,), (1357137743,), (1357137745,), (1357137746,), (1357137790,), (1357137793,), (1357137797,), (1357137800,), (1357137845,), (1357137847,), (1357137848,), (1357137850,), (1357137853,), (1357137857,), (1357137915,), (1357137924,), (1357137940,), (1357138012,), (1357138016,), (1357138018,), (1357138019,), (1357138067,), (1357138070,), (1357138074,), (1357138076,), (1357138080,), (1357138138,), (1357138141,), (1357138144,), (1357138148,), (1357138357,), (1357138471,), (1357138474,), (1357138479,), (1357138490,), (1357138494,), (1357138558,), (1357138546,), (1357138548,), (1357138551,), (1357138554,), (1357138601,), (1357138604,), (1357138607,), (1357138649,), (1357138657,), (1357138660,), (1357138672,), (1357138684,), (1357138775,), (1357138780,), (1357138784,), (1357138787,), (1357138790,), (1357138793,), (1357138852,), (1357138885,), (1357138902,), (1357138904,), (1357139094,), (1357139097,), (1357139099,), (1357139102,), (1357139105,), (1357139116,), (1357139183,), (1357139189,), (1357139206,), (1357139208,), (1357139277,), (1357139278,), (1357139280,), (1357139282,), (1357139284,), (1357139295,), (1357139471,), (1357139475,), (1357139478,), (1357139502,), (1357139631,), (1357139634,), (1357139638,), (1357139641,), (1357139645,), (1357139649,), (1357139774,), (1357139810,), (1357139845,), (1357139863,), (1357139877,), (1357140153,), (1357140163,), (1357140170,), (1357140176,), (1357140182,), (1357140189,), (1357140336,), (1357140373,), (1357140383,), (1357140390,), (1357140410,), (1357141591,), (1357141617,), (1357141646,), (1357141657,), (1357141689,), (1357141708,), (1357141731,), (1357141762,), (1357141810,), (1357141871,), (1357141899,), (1357147124,), (1357147115,), (1357147117,), (1357147120,), (1357147122,), (1357147164,), (1357147166,), (1357147170,), (1357147174,), (1357147361,), (1357147365,), (1357147369,), (1357147374,), (1357147377,), (1357147396,), (1357147398,), (1357147406,), (1357147420,), (1357147433,), (1357147437,), (1357147512,), (1357147515,), (1357147517,), (1357147549,), (1357147551,), (1357147554,), (1357147557,), (1357147560,), (1357147562,), (1357147611,), (1357147617,), (1357147623,), (1357147629,), (1357147652,), (1357147654,), (1357147657,), (1357147660,), (1357147663,), (1357147666,), (1357147689,), (1357147693,), (1357147696,), (1357147699,), (1357147899,), (1357147935,), (1357147969,), (1357148008,), (1357148040,), (1357148069,), (1357148261,), (1357148263,), (1357148266,), (1357148269,), (1357148303,), (1357148306,), (1357148309,), (1357148312,), (1357148315,), (1357148318,), (1357148336,), (1357148339,), (1357148342,), (1357148406,), (1357148433,), (1357148436,), (1357148439,), (1357148461,), (1357148463,), (1357148605,), (1357148578,), (1357148580,), (1357148589,), (1357148864,), (1357148901,), (1357148911,), (1357148916,), (1357148919,), (1357148921,), (1357149006,), (1357149009,), (1357149013,), (1357149018,), (1357149098,), (1357149100,), (1357149103,), (1357149110,), (1357149117,), (1357149156,), (1357149159,), (1357149162,), (1357149168,), (1357149170,), (1357149227,), (1357149229,), (1357149232,), (1357149235,), (1357149237,), (1357149270,), (1357149272,), (1357149274,), (1357149276,), (1357149279,), (1357149283,), (1357149307,), (1357149450,), (1357149454,), (1357149457,), (1357149490,), (1357149502,), (1357149507,), (1357149511,), (1357149519,), (1357149522,), (1357149558,), (1357149560,), (1357149562,), (1357149565,), (1357149569,), (1357149571,), (1357149595,), (1357149598,), (1357149600,), (1357149602,), (1357149636,), (1357149638,), (1357149641,), (1357149644,), (1357149897,), (1357149914,), (1357149921,), (1357150540,), (1357150546,), (1357150553,), (1357150657,), (1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,), (1357152408,), (1357152411,), (1357152414,), (1357152417,), (1357152420,), (1357152451,), (1357152455,), (1357152458,), (1357152519,), (1357152493,), (1357152506,), (1357152510,), (1357152620,), (1357152623,), (1357152626,), (1357152629,), (1357152631,), (1357152790,), (1357152798,), (1357152808,), (1357152813,), (1357152816,), (1357152961,), (1357152965,), (1357152969,), (1357152972,), (1357153057,), (1357153062,), (1357153068,), (1357153072,), (1357153077,), (1357153082,), (1357153115,), (1357153118,), (1357153122,), (1357153126,), (1357153130,), (1357153160,), (1357153163,), (1357153166,), (1357153169,), (1357153226,), (1357153230,), (1357153235,), (1357153263,), (1357153357,), (1357153380,), (1357153394,), (1357153401,), (1357153471,), (1357153476,), (1357153480,), (1357153482,), (1357153490,), (1357153495,), (1357153521,), (1357153524,), (1357153529,), (1357153532,), (1357153537,), (1357153564,), (1357153568,), (1357153571,), (1357153573,), (1357153577,), (1357153580,), (1357153602,), (1357153607,), (1357153613,), (1357153617,), (1357153649,), (1357153654,), (1357153658,), (1357153661,), (1357153697,), (1357153701,), (1357153704,), (1357153707,), (1357153711,), (1357153714,), (1357153759,), (1357153752,), (1357153756,), (1357153814,), (1357153818,), (1357153822,), (1357153825,), (1357153828,), (1357153831,), (1357153862,), (1357153954,), (1357154009,), (1357154013,), (1357154016,), (1357154058,), (1357154061,), (1357154064,), (1357154066,), (1357154068,), (1357154119,), (1357154125,), (1357154131,), (1357154135,), (1357154141,), (1357154173,), (1357154177,), (1357154181,), (1357154184,), (1357154188,), (1357154190,), (1357154218,), (1357154222,), (1357154224,), (1357154227,), (1357154265,), (1357154268,), (1357154271,), (1357154275,), (1357154278,), (1357154281,), (1357154318,), (1357154322,), (1357154324,), (1357154325,), (1357154367,), (1357154370,), (1357154413,), (1357154417,), (1357154419,), (1357154422,), (1357154426,), (1357154485,), (1357154487,), (1357154504,), (1357154505,), (1357154575,), (1357154579,), (1357154581,), (1357154582,), (1357154590,), (1357154649,), (1357154652,), (1357154654,), (1357154657,), (1357154705,), (1357154709,), (1357154712,), (1357154714,), (1357154716,), (1357154770,), (1357154758,), (1357154760,), (1357154763,), (1357154765,), (1357154768,), (1357154807,), (1357154809,), (1357154812,), (1357154814,), (1357154852,), (1357154854,), (1357154856,), (1357154857,), (1357154861,), (1357154865,), (1357154906,), (1357154908,), (1357154910,), (1357154912,), (1357154969,), (1357154973,), (1357154975,), (1357154976,), (1357154977,), (1357154979,), (1357155028,), (1357155030,), (1357155033,), (1357155036,), (1357155039,), (1357155043,), (1357155105,), (1357155112,), (1357155113,), (1357155114,), (1357155146,), (1357155148,), (1357155150,), (1357155152,), (1357155155,), (1357155206,), (1357155208,), (1357155210,), (1357155213,), (1357155215,), (1357155218,), (1357155249,), (1357155251,), (1357155255,), (1357155325,), (1357155328,), (1357155330,), (1357155331,), (1357155333,), (1357155335,), (1357155366,), (1357155369,), (1357155371,), (1357155374,), (1357155456,), (1357155483,), (1357155511,), (1357155539,), (1357156783,), (1357156876,), (1357156960,), (1357157050,), (1357157141,), (1357157226,), (1357157874,), (1357157689,), (1357157718,), (1357157745,), (1357157827,), (1357158405,), (1357158459,), (1357158512,), (1357158571,), (1357158623,), (1357158697,), (1357159201,), (1357159210,), (1357159216,), (1357159219,), (1357159896,), (1357159901,), (1357159906,), (1357159938,), (1357159972,), (1357159974,), (1357159977,), (1357159979,), (1357160012,), (1357160015,), (1357160019,), (1357160027,), (1357160031,), (1357160061,), (1357160066,), (1357160070,), (1357160153,), (1357160158,), (1357160165,), (1357160195,), (1357160211,), (1357160337,), (1357160340,), (1357160350,), (1357160388,), (1357160515,), (1357160546,), (1357160577,), (1357160590,), (1357160596,), (1357160600,), (1357160699,), (1357160702,), (1357160706,), (1357160711,), (1357160717,), (1357160722,), (1357160753,), (1357160759,), (1357160763,), (1357160768,), (1357160854,), (1357160829,), (1357160833,), (1357160839,), (1357160845,), (1357160848,), (1357160929,), (1357160937,), (1357160945,), (1357160949,), (1357160968,), (1357161033,), (1357161038,), (1357161046,), (1357161087,), (1357161090,), (1357161096,), (1357161100,), (1357161106,), (1357161160,), (1357161165,), (1357161169,), (1357161174,), (1357161178,), (1357161184,), (1357161220,), (1357161224,), (1357161269,), (1357161273,), (1357161276,), (1357161281,), (1357161285,), (1357161317,), (1357161320,), (1357161323,), (1357161327,), (1357161330,), (1357161336,), (1357161371,), (1357161373,), (1357161375,), (1357161418,), (1357161422,), (1357161425,), (1357161432,), (1357161440,), (1357161444,), (1357161505,), (1357161508,), (1357161511,), (1357161516,), (1357161520,), (1357161525,), (1357161574,), (1357161576,), (1357161698,), (1357161758,), (1357161765,), (1357161770,), (1357161775,), (1357161853,), (1357161829,), (1357161833,), (1357161838,), (1357161845,), (1357161896,), (1357161899,), (1357161900,), (1357161902,), (1357161946,), (1357161948,), (1357161951,), (1357161955,), (1357162160,), (1357162164,), (1357162167,), (1357162169,), (1357162173,), (1357162177,), (1357162215,), (1357162217,), (1357162220,), (1357162266,), (1357162270,), (1357162272,), (1357162308,), (1357162310,), (1357162314,), (1357162318,), (1357162322,), (1357162354,), (1357162357,), (1357162372,), (1357162375,), (1357162382,), (1357162446,), (1357162455,), (1357162500,), (1357162504,), (1357162508,), (1357162514,), (1357162516,), (1357162520,), (1357162572,), (1357162576,), (1357162579,), (1357162582,), (1357162635,), (1357162638,), (1357162721,), (1357162723,), (1357162725,), (1357162729,), (1357162732,), (1357162784,), (1357162788,), (1357162791,), (1357162794,), (1357162796,), (1357162852,), (1357162860,), (1357162866,), (1357162947,), (1357162931,), (1357162935,), (1357162938,), (1357162941,), (1357162944,), (1357162995,), (1357162998,), (1357163001,), (1357163005,), (1357163008,), (1357163013,), (1357163048,), (1357163051,), (1357163052,), (1357163096,), (1357163101,), (1357163104,), (1357163107,), (1357163109,), (1357163163,), (1357163168,), (1357163172,), (1357163178,), (1357163183,), (1357163189,), (1357163275,), (1357163278,), (1357163281,), (1357163334,), (1357163341,), (1357163349,), (1357163352,), (1357163356,), (1357163392,), (1357163394,), (1357163398,), (1357163487,), (1357163546,), (1357163592,), (1357163599,), (1357163601,), (1357163669,), (1357163673,), (1357163725,), (1357163738,), (1357163744,), (1357163749,), (1357163753,), (1357163796,), (1357163800,), (1357163803,), (1357163806,), (1357163809,), (1357164226,), (1357164256,), (1357164288,), (1357164322,), (1357164412,), (1357164498,), (1357164526,), (1357164624,), (1357164605,), (1357164613,), (1357164619,), (1357164978,), (1357165008,), (1357165046,), (1357165115,), (1357165625,), (1357165684,), (1357165743,), (1357165794,), (1357166752,), (1357166856,), (1357166948,), (1357167007,), (1357167376,), (1357167443,), (1357167470,), (1357167507,), (1357167566,), (1357167972,), (1357167984,), (1357167988,), (1357167993,), (1357167996,), (1357168539,), (1357168579,), (1357168658,), (1357168661,), (1357168664,), (1357168698,), (1357168700,), (1357168703,), (1357168706,), (1357168721,), (1357168772,), (1357169030,), (1357169061,), (1357169090,), (1357169115,), (1357169325,), (1357169363,), (1357169849,), (1357174846,), (1357185163,), (1357185232,), (1357185282,), (1357185364,), (1357185389,), (1357185513,), (1357185516,), (1357185519,), (1357185559,), (1357185587,), (1357185599,), (1357185601,), (1357185603,), (1357185712,), (1357185714,), (1357185716,), (1357185724,), (1357185749,), (1357185837,), (1357185861,), (1357185909,), (1357186034,), (1357186039,), (1357186043,), (1357186046,), (1357186048,), (1357186051,), (1357186105,), (1357186109,), (1357186111,), (1357186113,), (1357186116,), (1357186167,), (1357186156,), (1357186159,), (1357186161,), (1357186163,), (1357186164,), (1357186240,), (1357186320,), (1357186328,), (1357186332,), (1357186334,), (1357186357,), (1357186360,), (1357186364,), (1357186368,), (1357186371,), (1357186376,), (1357186421,), (1357186425,), (1357186428,), (1357186430,), (1357186432,), (1357186499,), (1357186506,), (1357186509,), (1357186512,), (1357186571,), (1357186577,), (1357186582,), (1357186615,), (1357186617,), (1357186796,), (1357186801,), (1357186803,), (1357186806,), (1357186810,), (1357186856,), (1357186860,), (1357186864,), (1357186880,), (1357186967,), (1357186972,), (1357186976,), (1357186981,), (1357186986,), (1357186989,), (1357187010,), (1357187020,), (1357187022,), (1357187025,), (1357187029,), (1357187134,), (1357187164,), (1357187191,), (1357187219,), (1357187249,), (1357187495,), (1357187502,), (1357187505,), (1357187517,), (1357187554,), (1357187562,), (1357187644,), (1357187648,), (1357187653,), (1357187659,), (1357187677,), (1357187684,), (1357187688,), (1357187693,), (1357187701,), (1357187743,), (1357187719,), (1357187724,), (1357187731,), (1357187738,), (1357187780,), (1357187785,), (1357187789,), (1357187792,), (1357188005,), (1357188055,), (1357188098,), (1357188143,), (1357188176,), (1357188213,), (1357188499,), (1357188530,), (1357188559,), (1357188591,), (1357188853,), (1357188860,), (1357188890,), (1357188897,), (1357188906,), (1357188940,), (1357188945,), (1357188952,), (1357188957,), (1357188961,), (1357189001,), (1357189013,), (1357189051,), (1357189358,), (1357189404,), (1357189434,), (1357189461,), (1357189488,), (1357189521,), (1357189681,), (1357189697,), (1357189704,), (1357189706,), (1357189709,), (1357189886,), (1357189931,), (1357189935,), (1357189940,), (1357189976,), (1357189979,), (1357189992,), (1357189999,), (1357190001,), (1357190002,), (1357190046,), (1357190050,), (1357190055,), (1357190103,), (1357190105,), (1357190109,), (1357190121,), (1357190126,), (1357190163,), (1357190166,), (1357190169,), (1357190172,), (1357190202,), (1357190206,), (1357190215,), (1357190221,), (1357190395,), (1357190384,), (1357190386,), (1357190389,), (1357190391,), (1357190435,), (1357190438,), (1357190444,), (1357190447,), (1357190450,), (1357190515,), (1357190517,), (1357190520,), (1357190523,), (1357190527,), (1357190531,), (1357190561,), (1357190564,), (1357190610,), (1357190613,), (1357190624,), (1357190636,), (1357190693,), (1357190698,), (1357190704,), (1357190708,), (1357190711,), (1357190756,), (1357190759,), (1357190762,), (1357190765,), (1357190805,), (1357190810,), (1357190814,), (1357190818,), (1357190822,), (1357190826,), (1357190859,), (1357190864,), (1357190868,), (1357190872,), (1357190876,), (1357190929,), (1357190934,), (1357190937,), (1357190941,), (1357190946,), (1357190988,), (1357190992,), (1357190996,), (1357191000,), (1357191004,), (1357191007,), (1357191031,), (1357191036,), (1357191039,), (1357191083,), (1357191086,), (1357191090,), (1357191094,), (1357191097,), (1357191130,), (1357191134,), (1357191135,), (1357191137,), (1357191141,), (1357191188,), (1357191192,), (1357191196,), (1357191264,), (1357191254,), (1357191258,), (1357191261,), (1357191308,), (1357191314,), (1357191317,), (1357191320,), (1357191323,), (1357191348,), (1357191360,), (1357191364,), (1357191369,), (1357191372,), (1357191408,), (1357191412,), (1357191415,), (1357191483,), (1357191521,), (1357191550,), (1357191578,), (1357191606,), (1357191610,), (1357191743,), (1357191749,), (1357191754,), (1357191767,), (1357191770,), (1357191772,), (1357191785,), (1357191789,), (1357191792,), (1357191834,), (1357191840,), (1357191844,), (1357191848,), (1357191853,), (1357191856,), (1357191980,), (1357192006,), (1357192035,), (1357192063,), (1357192091,), (1357192222,), (1357192224,), (1357192227,), (1357192244,), (1357192277,), (1357192405,), (1357192435,), (1357192454,), (1357192458,), (1357192611,), (1357192615,), (1357192618,), (1357192620,), (1357192624,), (1357192629,), (1357192699,), (1357192703,), (1357192706,), (1357192710,), (1357192716,), (1357192722,), (1357192804,), (1357192850,), (1357192854,), (1357192875,), (1357193032,), (1357193046,), (1357193057,), (1357193070,), (1357193083,), (1357193246,), (1357193220,), (1357193243,), (1357193343,), (1357193355,), (1357193365,), (1357193372,), (1357193756,), (1357193782,), (1357193795,), (1357193809,), (1357193820,), (1357194271,), (1357194305,), (1357194332,), (1357194340,), (1357194349,), (1357194541,), (1357194554,), (1357194582,), (1357194611,), (1357194643,), (1357194924,), (1357194978,), (1357194981,), (1357194985,), (1357194990,), (1357195034,), (1357195036,), (1357195038,), (1357195101,), (1357195103,), (1357195107,), (1357195110,), (1357195113,), (1357195152,), (1357195154,), (1357195158,), (1357195429,), (1357195435,), (1357195439,), (1357195452,), (1357195538,), (1357195567,), (1357195642,), (1357195648,), (1357195932,), (1357195963,), (1357195997,), (1357196027,), (1357196071,), (1357196074,), (1357196078,), (1357196125,), (1357196136,), (1357196144,), (1357196152,), (1357196165,), (1357196170,), (1357196845,), (1357196902,), (1357196959,), (1357197036,), (1357197117,), (1357197209,), (1357198216,), (1357197887,), (1357197946,), (1357198008,), (1357198071,), (1357198461,), (1357198525,), (1357198581,), (1357198711,), (1357198903,), (1357198972,), (1357199281,), (1357199329,), (1357199407,), (1357199475,), (1357200085,), (1357200131,), (1357200172,), (1357200212,), (1357200248,), (1357200297,), (1357200805,), (1357200862,), (1357200901,), (1357200939,), (1357201618,), (1357201668,), (1357201692,), (1357201718,), (1357201735,), (1357202050,), (1357202082,), (1357202109,), (1357202128,), (1357202147,), (1357202175,), (1357202359,), (1357202377,), (1357202495,), (1357202925,), (1357202967,), (1357203011,), (1357203427,), (1357203476,), (1357203518,), (1357203575,), (1357203600,), (1357203628,), (1357204307,), (1357204395,), (1357204453,), (1357204494,), (1357204532,), (1357204571,), (1357204781,), (1357204851,), (1357204903,), (1357204954,), (1357205021,), (1357205403,), (1357205426,), (1357205432,), (1357205640,), (1357205672,), (1357205685,), (1357205695,), (1357205724,), (1357206545,), (1357206560,), (1357206607,), (1357206678,), (1357206972,), (1357206894,), (1357206899,), (1357206940,), (1357207152,), (1357207189,), (1357207252,), (1357207306,), (1357207360,), (1357207658,), (1357207693,), (1357207711,), (1357207723,), (1357207739,), (1357207767,), (1357207887,), (1357207890,), (1357207893,), (1357207983,), (1357207986,), (1357207989,), (1357207991,), (1357207995,), (1357207999,), (1357208040,), (1357208044,), (1357208048,), (1357208099,), (1357208281,), (1357208454,), (1357208781,), (1357208785,), (1357208789,), (1357208793,), (1357208938,), (1357208966,), (1357208993,), (1357209019,), (1357209047,), (1357209052,), (1357209617,), (1357209675,), (1357209813,), (1357209863,), (1357210330,), (1357210384,), (1357210431,), (1357210823,), (1357211186,), (1357211215,), (1357211222,), (1357211224,), (1357211227,), (1357211260,), (1357211263,), (1357211268,), (1357211272,), (1357211523,), (1357211539,), (1357211542,), (1357211544,), (1357211549,), (1357211593,), (1357211599,), (1357211603,), (1357211607,), (1357213542,), (1357213528,), (1357213533,), (1357213539,), (1357213602,), (1357213701,), (1357213713,), (1357214071,), (1357214074,), (1357214328,), (1357214406,), (1357214434,), (1357214763,), (1357214799,), (1357215009,), (1357215013,), (1357215017,), (1357215024,), (1357215036,), (1357215324,), (1357215344,), (1357215347,), (1357215350,), (1357215544,), (1357215596,), (1357215646,), (1357215701,), (1357216036,), (1357216062,), (1357216088,), (1357216425,), (1357216414,), (1357216422,), (1357216877,), (1357216989,), (1357217018,), (1357217049,), (1357217075,), (1357217268,), (1357217273,), (1357217277,), (1357217280,), (1357217284,), (1357217291,), (1357217385,), (1357217388,), (1357217391,), (1357217393,), (1357217395,), (1357217444,), (1357217447,), (1357217450,), (1357217452,), (1357217495,), (1357217499,), (1357217505,), (1357217509,), (1357217512,), (1357217517,), (1357217544,), (1357217549,), (1357217554,), (1357217557,), (1357217564,), (1357217732,), (1357217747,), (1357217754,), (1357217758,), (1357217762,), (1357217767,), (1357217794,), (1357217799,), (1357217803,), (1357217806,), (1357217860,), (1357217892,), (1357217921,), (1357217948,), (1357217978,), (1357218008,), (1357218307,), (1357218310,), (1357218333,), (1357219047,), (1357219065,), (1357219099,), (1357219133,), (1357219157,), (1357219163,), (1357219207,), (1357219221,), (1357219235,), (1357219238,), (1357219241,), (1357219320,), (1357219301,), (1357219307,), (1357219313,), (1357219376,), (1357219383,), (1357219394,), (1357219397,), (1357219401,), (1357219405,), (1357219459,), (1357219463,), (1357219479,), (1357219483,), (1357219527,), (1357219531,), (1357219535,), (1357219587,), (1357219592,), (1357219597,), (1357219627,), (1357219635,), (1357219664,), (1357219668,), (1357219671,), (1357219673,), (1357219677,), (1357219681,), (1357219719,), (1357219733,), (1357219755,), (1357219759,), (1357219823,), (1357219827,), (1357219830,), (1357219836,), (1357219863,), (1357219870,), (1357219968,), (1357219989,), (1357219994,), (1357219997,), (1357220278,), (1357220308,), (1357220340,), (1357220368,), (1357220389,), (1357220417,), (1357220549,), (1357220564,), (1357220593,), (1357220602,), (1357220620,), (1357220649,), (1357220756,), (1357220760,), (1357220763,), (1357220766,), (1357220770,), (1357220966,), (1357220971,), (1357220975,), (1357220979,), (1357220984,), (1357221051,), (1357221055,), (1357221057,), (1357221129,), (1357221224,), (1357221273,), (1357221279,), (1357221292,), (1357221322,), (1357221501,), (1357221454,), (1357221458,), (1357221465,), (1357221490,), (1357221498,), (1357221605,), (1357221608,), (1357221611,), (1357221742,), (1357221744,), (1357221747,), (1357221750,), (1357221754,), (1357221841,), (1357221844,), (1357221846,), (1357221847,), (1357221852,), (1357221862,), (1357221972,), (1357221977,), (1357221980,), (1357221985,), (1357222067,), (1357222070,), (1357222072,), (1357222075,), (1357222077,), (1357222084,), (1357222126,), (1357222127,), (1357222129,), (1357222261,), (1357222265,), (1357222268,), (1357222300,), (1357222303,), (1357222306,), (1357222308,), (1357222310,), (1357222315,), (1357222406,), (1357222433,), (1357222461,), (1357222626,), (1357222631,), (1357222752,), (1357222754,), (1357222764,), (1357222789,), (1357222868,), (1357222871,), (1357222874,), (1357222875,), (1357222877,), (1357222946,), (1357223012,), (1357223059,), (1357223063,), (1357223121,), (1357223125,), (1357223128,), (1357223133,), (1357223136,), (1357223140,), (1357223167,), (1357223170,), (1357223171,), (1357223355,), (1357223357,), (1357223359,), (1357223361,), (1357223363,), (1357223365,), (1357223398,), (1357223403,), (1357223408,), (1357223417,), (1357223431,), (1357223519,), (1357223549,), (1357223563,), (1357223564,), (1357223624,), (1357223627,), (1357223630,), (1357223653,), (1357223679,), (1357223704,), (1357223864,), (1357223867,), (1357223870,), (1357224019,), (1357224168,), (1357224382,), (1357224387,), (1357224428,), (1357224431,), (1357224434,), (1357224437,), (1357224440,), (1357224443,), (1357224518,), (1357224520,), (1357224522,), (1357224524,), (1357224529,), (1357224533,), (1357224660,), (1357224650,), (1357224652,), (1357224741,), (1357224759,), (1357224785,), (1357224813,), (1357224841,), (1357224857,), (1357224893,), (1357224897,), (1357224900,), (1357224923,), (1357224958,), (1357225034,), (1357225039,), (1357225043,), (1357225046,), (1357225114,), (1357225138,), (1357225349,), (1357225352,), (1357225528,), (1357225531,), (1357225534,), (1357225574,), (1357225587,), (1357225675,), (1357225685,), (1357225687,), (1357225688,), (1357225716,), (1357225765,), (1357225768,), (1357225769,), (1357226244,), (1357226270,), (1357226995,), (1357227000,), (1357227007,), (1357227012,), (1357227038,), (1357227055,), (1357227087,), (1357227115,), (1357227257,), (1357227177,), (1357227200,), (1357227229,), (1357227242,), (1357227395,), (1357227448,), (1357228352,), (1357228564,), (1357229297,), (1357229349,), (1357229428,), (1357229512,), (1357229592,), (1357230304,), (1357230318,), (1357230322,), (1357230325,), (1357230327,), (1357230332,), (1357230498,), (1357230518,), (1357230522,), (1357230525,), (1357230667,), (1357230696,), (1357230722,), (1357231869,), (1357231948,), (1357232029,), (1357232117,), (1357232178,), (1357232585,), (1357232611,), (1357232640,), (1357232646,), (1357232684,), (1357233143,), (1357233171,), (1357233198,), (1357233255,), (1357233801,), (1357233823,), (1357233862,), (1357233882,), (1357234225,), (1357234235,), (1357234239,), (1357234244,), (1357234248,), (1357234251,), (1357234437,), (1357234465,), (1357234481,), (1357234499,), (1357234501,), (1357234504,), (1357234654,), (1357234663,), (1357234801,), (1357234806,), (1357234811,), (1357234816,), (1357235036,), (1357235002,), (1357235013,), (1357235027,), (1357235031,), (1357235434,), (1357235464,), (1357235534,), (1357235557,), (1357235734,), (1357235737,), (1357235741,), (1357235745,), (1357235800,), (1357235811,), (1357235815,), (1357235827,), (1357235833,), (1357235926,), (1357235958,), (1357235982,), (1357236108,), (1357236113,), (1357236122,), (1357236125,), (1357236127,), (1357236131,), (1357236169,), (1357236175,), (1357236179,), (1357236182,), (1357236272,), (1357236282,), (1357236284,), (1357236287,), (1357236292,), (1357236399,), (1357236404,), (1357236408,), (1357236411,), (1357236416,), (1357236517,), (1357236522,), (1357236527,), (1357236575,), (1357236578,), (1357236584,), (1357236588,), (1357236592,), (1357236632,), (1357236635,), (1357236639,), (1357236644,), (1357236651,), (1357236695,), (1357236697,), (1357236701,), (1357236751,), (1357236801,), (1357236804,), (1357236806,), (1357236809,), (1357236813,), (1357237613,), (1357240242,), (1357240662,), (1357240733,), (1357240826,), (1357240883,), (1357240912,), (1357241608,), (1357241783,), (1357241972,), (1357242174,), (1357242288,), (1357242711,), (1357243571,), (1357243725,), (1357243758,), (1357243807,), (1357243863,), (1357244424,), (1357244459,), (1357244487,), (1357244516,), (1357244522,), (1357244526,), (1357244631,), (1357244636,), (1357244640,), (1357244791,), (1357244824,), (1357244884,), (1357244913,), (1357244943,), (1357244972,), (1357245035,), (1357245039,), (1357245041,), (1357245043,), (1357245266,), (1357245295,), (1357245331,), (1357245353,), (1357245356,), (1357245456,), (1357245461,), (1357245465,), (1357245468,), (1357245473,), (1357245476,), (1357245510,), (1357245514,), (1357245520,), (1357245523,), (1357245528,), (1357245531,), (1357245558,), (1357245568,), (1357245578,), (1357245581,), (1357245627,), (1357245631,), (1357245634,), (1357245637,), (1357245641,), (1357245684,), (1357245688,), (1357245692,), (1357245696,), (1357245995,), (1357245984,), (1357245989,), (1357246124,), (1357246149,), (1357246183,), (1357246212,), (1357246242,), (1357246269,), (1357246377,), (1357246393,), (1357246401,), (1357246415,), (1357246418,), (1357246447,), (1357246663,), (1357246693,), (1357246700,), (1357246702,), (1357246890,), (1357246897,), (1357246901,), (1357246904,), (1357246908,), (1357246913,), (1357246976,), (1357246981,), (1357246985,), (1357246989,), (1357247031,), (1357247035,), (1357247038,), (1357247040,), (1357247044,), (1357247048,), (1357247093,), (1357247096,), (1357247098,), (1357247148,), (1357247150,), (1357247153,), (1357247157,), (1357247160,), (1357247162,), (1357247190,), (1357247192,), (1357247272,), (1357247276,), (1357247283,), (1357247291,), (1357247300,), (1357247313,), (1357247400,), (1357247406,), (1357247410,), (1357247431,), (1357247439,), (1357247900,), (1357247916,), (1357247941,), (1357247968,), (1357248048,), (1357248061,), (1357248064,), (1357248067,), (1357248070,), (1357248073,), (1357248200,), (1357248205,), (1357248211,), (1357248216,), (1357248222,), (1357248228,), (1357248290,), (1357248279,), (1357248282,), (1357248286,), (1357248338,), (1357248342,), (1357248344,), (1357248347,), (1357248349,), (1357248353,), (1357248383,), (1357248387,), (1357248397,), (1357248402,), (1357248412,), (1357248414,), (1357248505,), (1357248507,), (1357248509,), (1357248596,), (1357248598,), (1357248600,), (1357248603,), (1357249017,), (1357249051,), (1357249062,), (1357249065,), (1357249383,), (1357249439,), (1357249465,), (1357249489,), (1357249502,), (1357249774,), (1357249777,), (1357249779,), (1357249796,), (1357249821,), (1357249846,), (1357249891,), (1357249893,), (1357249912,), (1357250422,), (1357250594,), (1357250620,), (1357250654,), (1357250662,), (1357250668,), (1357250779,), (1357250807,), (1357250828,), (1357250831,), (1357251195,), (1357251238,), (1357251283,), (1357251304,), (1357251307,), (1357251581,), (1357251617,), (1357251669,), (1357251701,), (1357251711,), (1357251714,), (1357251818,), (1357251843,), (1357251864,), (1357251867,), (1357252116,), (1357252144,), (1357252182,), (1357252209,), (1357252241,), (1357252307,), (1357252294,), (1357252296,), (1357252298,), (1357252301,), (1357252306,), (1357252369,), (1357252399,), (1357252541,), (1357252756,), (1357252896,), (1357252912,), (1357252940,), (1357252947,), (1357252975,), (1357253253,), (1357253259,), (1357253261,), (1357253265,), (1357253314,), (1357253315,), (1357253317,), (1357253319,), (1357253320,), (1357253813,), (1357253843,), (1357253884,), (1357253967,), (1357254039,), (1357254554,), (1357254668,), (1357254745,), (1357254814,), (1357254933,), (1357254934,), (1357254936,), (1357254938,), (1357254940,), (1357255263,), (1357255313,), (1357255367,), (1357255420,), (1357255525,), (1357255584,), (1357255868,), (1357255892,), (1357257438,), (1357257945,), (1357258019,), (1357258001,), (1357258005,), (1357258010,), (1357258299,), (1357258327,), (1357258357,), (1357258537,), (1357258549,), (1357258578,), (1357258606,), (1357258618,), (1357258669,), (1357258677,), (1357258680,), (1357258683,), (1357258688,), (1357258800,), (1357258807,), (1357258813,), (1357258831,), (1357259194,), (1357259221,), (1357259259,), (1357259288,), (1357259318,), (1357259353,), (1357259640,), (1357259666,), (1357259708,), (1357259736,), (1357259759,), (1357259781,), (1357259783,), (1357259785,), (1357259788,), (1357260129,), (1357260158,), (1357260191,), (1357260204,), (1357260214,), (1357260379,), (1357260417,), (1357260437,), (1357260445,), (1357260450,), (1357260460,), (1357260548,), (1357260551,), (1357260557,), (1357260889,), (1357260920,), (1357260949,), (1357260980,), (1357260996,), (1357261035,), (1357261280,), (1357261282,), (1357261285,), (1357261289,), (1357261292,), (1357261325,), (1357261328,), (1357261330,), (1357261333,), (1357261780,), (1357261760,), (1357261768,), (1357261770,), (1357261775,), (1357261778,), (1357261797,), (1357261808,), (1357261814,), (1357261816,), (1357261818,), (1357261871,), (1357261906,), (1357261926,), (1357262001,), (1357262004,), (1357262008,), (1357262010,), (1357262013,), (1357262015,), (1357262143,), (1357262181,), (1357262186,), (1357262189,), (1357262191,), (1357262225,), (1357262227,), (1357262229,), (1357262231,), (1357262232,), (1357262236,), (1357262294,), (1357262305,), (1357262307,), (1357262338,), (1357262344,), (1357262431,), (1357262474,), (1357262478,), (1357262483,), (1357262486,), (1357262489,), (1357262506,), (1357262508,), (1357262510,), (1357262569,), (1357262570,), (1357262574,), (1357262575,), (1357262584,), (1357262587,), (1357262634,), (1357262636,), (1357262638,), (1357262665,), (1357262669,), (1357262671,), (1357262672,), (1357262707,), (1357262709,), (1357262751,), (1357262753,), (1357262756,), (1357262757,), (1357262759,), (1357262803,), (1357262788,), (1357262790,), (1357262792,), (1357262799,), (1357262870,), (1357263299,), (1357263877,), (1357263879,), (1357263881,), (1357263914,), (1357263915,), (1357263917,), (1357263919,), (1357263921,), (1357263944,), (1357263945,), (1357264067,), (1357264405,), (1357264428,), (1357264430,), (1357264433,), (1357264437,), (1357264444,), (1357264479,), (1357264482,), (1357264799,), (1357266615,), (1357268927,), (1357268953,), (1357268955,), (1357268958,), (1357268992,), (1357268995,), (1357268998,), (1357273852,), (1357275078,), (1357275082,), (1357275085,), (1357275357,), (1357276049,), (1357276185,), (1357276350,), (1357276353,), (1357276379,), (1357276384,), (1357276397,), (1357276400,), (1357276404,), (1357276484,), (1357276514,), (1357276543,), (1357276548,), (1357276551,), (1357276643,), (1357276646,), (1357276648,), (1357276651,), (1357276683,), (1357276687,), (1357276690,), (1357276692,), (1357276695,), (1357276698,), (1357276770,), (1357276773,), (1357276776,), (1357276780,), (1357276802,), (1357276899,), (1357276926,), (1357276941,), (1357276947,), (1357276950,), (1357276953,), (1357277049,), (1357277083,), (1357277088,), (1357277091,), (1357277202,), (1357277188,), (1357277192,), (1357277195,), (1357277197,), (1357277199,), (1357277221,), (1357277225,), (1357277228,), (1357277231,), (1357277259,), (1357277261,), (1357277264,), (1357277275,), (1357277279,), (1357277348,), (1357277351,), (1357277374,), (1357277403,), (1357277411,), (1357277413,), (1357277441,), (1357277444,), (1357277447,), (1357277470,), (1357277472,), (1357277475,), (1357277478,), (1357277500,), (1357277502,), (1357277505,), (1357277508,), (1357277511,), (1357277536,), (1357277538,), (1357277541,), (1357277544,), (1357277547,), (1357277550,), (1357277572,), (1357277574,), (1357277577,), (1357277580,), (1357277609,), (1357277613,), (1357277617,), (1357277621,), (1357277624,), (1357277656,), (1357277663,), (1357277692,), (1357277703,), (1357277706,), (1357277723,), (1357277726,), (1357277750,), (1357277755,), (1357277758,), (1357277781,), (1357277782,), (1357277786,), (1357277789,), (1357277791,), (1357277816,), (1357277818,), (1357277821,), (1357277824,), (1357277828,), (1357278006,), (1357277915,), (1357278002,), (1357278401,), (1357278541,), (1357278543,), (1357278546,), (1357278549,), (1357278589,), (1357278592,), (1357278596,), (1357278602,), (1357278604,), (1357278632,), (1357278634,), (1357278637,), (1357278640,), (1357278671,), (1357278676,), (1357278680,), (1357278683,), (1357278768,), (1357278822,), (1357278827,), (1357278828,), (1357278904,), (1357278911,), (1357278939,), (1357278966,), (1357278988,), (1357279099,), (1357279106,), (1357279120,), (1357279149,), (1357279174,), (1357279178,), (1357279197,), (1357279199,), (1357279202,), (1357279225,), (1357279228,), (1357279265,), (1357279253,), (1357279256,), (1357279259,), (1357279262,), (1357279293,), (1357279295,), (1357279297,), (1357279299,), (1357279303,), (1357279332,), (1357279359,), (1357279367,), (1357279370,), (1357279373,), (1357279467,), (1357279471,), (1357279476,), (1357279507,), (1357279509,), (1357279512,), (1357279518,), (1357279529,), (1357279539,), (1357279543,), (1357279546,), (1357279548,), (1357279550,), (1357279554,), (1357279581,), (1357279584,), (1357279587,), (1357279667,), (1357279777,), (1357279780,), (1357279783,), (1357279790,), (1357279818,), (1357279924,), (1357279939,), (1357279942,), (1357279944,), (1357279946,), (1357280067,), (1357280069,), (1357280072,), (1357280075,), (1357280198,), (1357280206,), (1357280232,), (1357280258,), (1357280483,), (1357280491,), (1357280494,), (1357280498,), (1357280502,), (1357280543,), (1357280548,), (1357280552,), (1357280557,), (1357280610,), (1357280592,), (1357280601,), (1357280605,), (1357280895,), (1357280907,), (1357280934,), (1357280964,), (1357280980,), (1357280983,), (1357281060,), (1357281063,), (1357281066,), (1357281713,), (1357281753,), (1357281756,), (1357281758,), (1357281990,), (1357282014,), (1357282047,), (1357282062,), (1357282080,), (1357282082,), (1357282085,), (1357282373,), (1357282779,), (1357283048,), (1357283053,), (1357283214,), (1357283216,), (1357283218,), (1357283223,), (1357283228,), (1357283247,), (1357283438,), (1357283466,), (1357283492,), (1357283520,), (1357283786,), (1357283813,), (1357283842,), (1357283876,), (1357284403,), (1357284178,), (1357284219,), (1357284245,), (1357284271,), (1357284373,), (1357284601,), (1357284629,), (1357284660,), (1357284692,), (1357284773,), (1357284785,), (1357284812,), (1357284841,), (1357285757,), (1357285760,), (1357285763,), (1357285767,), (1357285771,), (1357285773,), (1357285956,), (1357286033,), (1357286060,), (1357286184,), (1357286217,), (1357286246,), (1357286541,), (1357286570,), (1357289843,), (1357289845,), (1357289847,), (1357289849,), (1357289851,), (1357289875,), (1357289878,), (1357289903,), (1357289909,), (1357289933,), (1357290222,), (1357290251,), (1357290279,), (1357290303,), (1357290685,), (1357290639,), (1357290640,), (1357290642,), (1357290659,), (1357291160,), (1357291186,), (1357291217,), (1357291657,), (1357291691,), (1357291718,), (1357291767,), (1357292562,), (1357292591,), (1357292649,), (1357292702,), (1357293726,), (1357293734,), (1357293754,), (1357293766,), (1357293818,), (1357294072,), (1357294320,), (1357294350,), (1357294379,), (1357294741,), (1357294766,), (1357294792,), (1357294818,), (1357294846,), (1357294947,), (1357294948,), (1357294968,), (1357294995,), (1357295174,), (1357295200,), (1357295226,), (1357295250,), (1357295251,), (1357295331,), (1357295354,), (1357295505,), (1357295506,), (1357295509,), (1357295538,), (1357295581,), (1357295582,), (1357295584,), (1357295592,), (1357295755,), (1357295756,), (1357295758,), (1357295760,), (1357296004,), (1357295806,), (1357295810,), (1357295874,), (1357296097,), (1357296099,), (1357296101,), (1357297542,), (1357298539,), (1357298586,), (1357299156,), (1357299208,), (1357299247,), (1357299293,), (1357299838,), (1357299872,), (1357299897,), (1357299925,), (1357299951,), (1357300271,), (1357300635,), (1357300666,), (1357300883,), (1357300885,), (1357301439,), (1357301499,), (1357301552,), (1357301704,), (1357301759,), (1357301810,), (1357302381,), (1357302283,), (1357302337,), (1357302658,), (1357302689,), (1357302714,), (1357302762,), (1357302800,), (1357303342,), (1357303345,), (1357303354,), (1357303419,), (1357303421,), (1357303431,), (1357303457,), (1357303497,), (1357303916,), (1357303971,), (1357304026,), (1357304077,), (1357304603,), (1357304632,), (1357304661,), (1357304687,), (1357304731,), (1357305007,), (1357305039,), (1357305058,), (1357305062,), (1357305085,), (1357305095,), (1357305255,), (1357305282,), (1357305688,), (1357305713,), (1357305952,), (1357305963,), (1357306029,), (1357306058,), (1357306061,), (1357306064,), (1357306067,), (1357306070,), (1357306091,), (1357306093,), (1357306096,), (1357306100,), (1357306103,), (1357306261,), (1357306263,), (1357306266,), (1357306269,), (1357306291,), (1357306293,), (1357306296,), (1357306299,), (1357306302,), (1357306341,), (1357306331,), (1357306333,), (1357306335,), (1357306338,), (1357306362,), (1357306364,), (1357306366,), (1357306369,), (1357306419,), (1357306427,), (1357306430,), (1357306433,), (1357306437,), (1357306438,), (1357306455,), (1357306458,), (1357306461,), (1357306465,), (1357306469,), (1357306471,), (1357306489,), (1357306493,), (1357306496,), (1357306536,), (1357306540,), (1357306543,), (1357306558,), (1357306621,), (1357306625,), (1357306628,), (1357306630,), (1357306662,), (1357306664,), (1357306667,), (1357306702,), (1357306710,), (1357306712,), (1357306733,), (1357306736,), (1357306738,), (1357306766,), (1357306796,), (1357306832,), (1357306868,), (1357306871,), (1357306873,), (1357306875,), (1357306879,), (1357307001,), (1357307036,), (1357307039,), (1357307042,), (1357307066,), (1357307215,), (1357307146,), (1357307148,), (1357307151,), (1357307416,), (1357307437,), (1357307503,), (1357307506,), (1357307509,), (1357307513,), (1357307516,), (1357307548,), (1357307556,), (1357307559,), (1357307562,), (1357307566,), (1357307568,), (1357307607,), (1357307609,), (1357308360,), (1357308378,), (1357308385,), (1357308387,), (1357308432,), (1357308433,), (1357308435,), (1357308437,), (1357308439,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09052025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22847849]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] map_info['map_portfolio_photo'] : {22847849: [1357308439, 1357308437, 1357308435, 1357308433, 1357308432, 1357308387, 1357308385, 1357308378, 1357308360, 1357307609, 1357307607, 1357307568, 1357307566, 1357307562, 1357307559, 1357307556, 1357307548, 1357307516, 1357307513, 1357307509, 1357307506, 1357307503, 1357307437, 1357307416, 1357307151, 1357307148, 1357307146]} final : True mtd_id 4302 list_pids : [1357308439, 1357308437, 1357308435, 1357308433, 1357308432] Looping around the photos to save general results len do output : 1 /22847849Didn'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, '2814684') ('4302', '22847849', '1357308439', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308437', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308435', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308433', None, None, None, None, None, '2814684') ('4302', None, None, None, None, None, None, None, '2814684') ('4302', '22847849', '1357308432', None, None, None, None, None, '2814684') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '22847849', 'None', None, None, None, None, '2814684'), ('4302', '22847849', '1357308439', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308437', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308435', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308433', None, None, None, None, None, '2814684'), ('4302', '22847849', '1357308432', None, None, None, None, None, '2814684')] time used for this insertion : 0.012667179107666016 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6450278759002686 time spend to save output : 0.012827873229980469 total time spend for step 5 : 3.657855749130249 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 (2814684) 2.18user 2.53system 0:08.94elapsed 52%CPU (0avgtext+0avgdata 158436maxresident)k 120inputs+6632outputs (0major+64251minor)pagefaults 0swaps