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 : 1351496 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 (3664616) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3664616) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533428 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3664616'] with mtr_portfolio_ids : ['26533428'] and first list_photo_ids : [] new path : /proc/1351496/ Name: python3 Umask: 0002 State: R (running) Tgid: 1351496 Ngid: 0 Pid: 1351496 PPid: 1351476 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1351496 NSpid: 1351496 NSpgid: 1350183 NSsid: 1350183 VmPeak: 747068 kB VmSize: 747068 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100512 kB VmRSS: 100512 kB RssAnon: 60588 kB RssFile: 39924 kB RssShmem: 0 kB VmData: 505820 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 55 nonvoluntary_ctxt_switches: 230 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1351496', 'Ngid': '0', 'Pid': '1351496', 'PPid': '1351476', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1351496', 'NSpid': '1351496', 'NSpgid': '1350183', 'NSsid': '1350183', 'VmPeak': '747068 kB', 'VmSize': '747068 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100512 kB', 'VmRSS': '100512 kB', 'RssAnon': '60588 kB', 'RssFile': '39924 kB', 'RssShmem': '0 kB', 'VmData': '505820 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '55', 'nonvoluntary_ctxt_switches': '230'} ('datou_batch_current', '1351496', '747068', '0', '747068', '505820', '100512', b'', 'marlene', '3664616') 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 (26533428) 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 (3664616 ) ) 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 (26533428) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381446397, 'portfolio_id': 26533428}, {'photo_id': 1381446396, 'portfolio_id': 26533428}, {'photo_id': 1381446395, 'portfolio_id': 26533428}, {'photo_id': 1381446394, 'portfolio_id': 26533428}] map_portfolio_id_photo_id: {26533428: [1381446397, 1381446396, 1381446395, 1381446394]} ##### 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.02827739715576172 #### 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 Thu Sep 4 17:30:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26533428) 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 : 26533428 get user id for portfolio 26533428 get sub ptf for main ptf 26533428, type 3726 and hashtags ['flou', 'cartonnette', 'metal', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_gris', 'kraft', 'plastique', 'Carton_brun', 'papier', 'environnement', 'autre_refus'] 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`=26533428 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) 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`=26533428 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[26533428, 26533542, 3726, 0.5, 492777938, 979], [26533428, 26533543, 3726, 0.5, 702398920, 979], [26533428, 26533544, 3726, 0.5, 492628673, 979], [26533428, 26533545, 3726, 0.5, 2107755527, 979], [26533428, 26533546, 3726, 0.5, 2107752385, 979], [26533428, 26533547, 3726, 0.5, 2107753020, 979], [26533428, 26533548, 3726, 0.5, 493202403, 979], [26533428, 26533549, 3726, 0.5, 492725882, 979], [26533428, 26533550, 3726, 0.5, 2107753024, 979], [26533428, 26533551, 3726, 0.5, 492668766, 979], [26533428, 26533552, 3726, 0.5, 493012381, 979], [26533428, 26533553, 3726, 0.5, 2107752406, 979]] 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`=26533428 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) 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`=26533428 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 26533428, 'sub_port_id': 26533542, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865866, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'cartonnette': {'main_port_id': 26533428, 'sub_port_id': 26533543, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865867, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'metal': {'main_port_id': 26533428, 'sub_port_id': 26533544, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865868, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'mal_croppe': {'main_port_id': 26533428, 'sub_port_id': 26533545, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865869, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26533428, 'sub_port_id': 26533546, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865870, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'Carton_gris': {'main_port_id': 26533428, 'sub_port_id': 26533547, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865871, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'kraft': {'main_port_id': 26533428, 'sub_port_id': 26533548, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865872, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'plastique': {'main_port_id': 26533428, 'sub_port_id': 26533549, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865873, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'Carton_brun': {'main_port_id': 26533428, 'sub_port_id': 26533550, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865874, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'papier': {'main_port_id': 26533428, 'sub_port_id': 26533551, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865875, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'environnement': {'main_port_id': 26533428, 'sub_port_id': 26533552, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865876, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}, 'autre_refus': {'main_port_id': 26533428, 'sub_port_id': 26533553, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865877, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26533542 , 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=26533428 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 (26533542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533543 , 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=26533428 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 (26533543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533544 , 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=26533428 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 (26533544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533545 , 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=26533428 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 (26533545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533546 , 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=26533428 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 (26533546) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533547 , 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=26533428 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 (26533547) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533548 , 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=26533428 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 (26533548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533549 , 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=26533428 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 (26533549) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533550 , 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=26533428 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 (26533550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533551 , 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=26533428 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 (26533551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533552 , 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=26533428 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 (26533552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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 26533553 , 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=26533428 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 (26533553) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26533428) result : ((1381446394,), (1381446395,), (1381446396,), (1381446397,)) 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`=26533428 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) 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`=26533428 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__04092025_16_44_04_010153_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[26533428, 26533555, 4417, 0.5, 492777938, 979], [26533428, 26533556, 4417, 0.5, 702398920, 979], [26533428, 26533557, 4417, 0.5, 492628673, 979], [26533428, 26533558, 4417, 0.5, 2107755527, 979], [26533428, 26533559, 4417, 0.5, 2107752385, 979], [26533428, 26533560, 4417, 0.5, 2107753020, 979], [26533428, 26533561, 4417, 0.5, 493202403, 979], [26533428, 26533562, 4417, 0.5, 492725882, 979], [26533428, 26533563, 4417, 0.5, 2107753024, 979], [26533428, 26533564, 4417, 0.5, 492668766, 979], [26533428, 26533565, 4417, 0.5, 493012381, 979], [26533428, 26533566, 4417, 0.5, 2107752406, 979]] 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`=26533428 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) 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`=26533428 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse','Carton_gris','kraft','plastique','Carton_brun','papier','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 26533428, 'sub_port_id': 26533555, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865878, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'cartonnette': {'main_port_id': 26533428, 'sub_port_id': 26533556, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865879, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'metal': {'main_port_id': 26533428, 'sub_port_id': 26533557, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865880, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'mal_croppe': {'main_port_id': 26533428, 'sub_port_id': 26533558, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865881, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 26533428, 'sub_port_id': 26533559, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865882, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'Carton_gris': {'main_port_id': 26533428, 'sub_port_id': 26533560, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865883, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'kraft': {'main_port_id': 26533428, 'sub_port_id': 26533561, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865884, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'plastique': {'main_port_id': 26533428, 'sub_port_id': 26533562, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865885, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'Carton_brun': {'main_port_id': 26533428, 'sub_port_id': 26533563, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865886, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'papier': {'main_port_id': 26533428, 'sub_port_id': 26533564, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865887, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'environnement': {'main_port_id': 26533428, 'sub_port_id': 26533565, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865888, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}, 'autre_refus': {'main_port_id': 26533428, 'sub_port_id': 26533566, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17865889, 'last_updated_at': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 4, 17, 30, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 4, 17, 30, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26533566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26533553 lien utilise dans velours : https://marlene.fotonower.com/velours/26533555,26533556,26533557,26533558,26533559,26533560,26533561,26533562,26533563,26533564,26533565,26533566?tags=flou,cartonnette,metal,mal_croppe,Teint_Dans_La_Masse,Carton_gris,kraft,plastique,Carton_brun,papier,environnement,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26533428]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381446397, 1381446396, 1381446395, 1381446394] map_info['map_portfolio_photo'] : {26533428: [1381446397, 1381446396, 1381446395, 1381446394]} final : False mtd_id 4302 list_pids : [1381446397, 1381446396, 1381446395, 1381446394] Looping around the photos to save general results len do output : 1 /26533428. 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, '3664616') ('4302', '26533428', '1381446397', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446396', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446395', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446394', None, None, None, None, None, '3664616') 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', None, '26533428', "{'flou': 26533542, 'cartonnette': 26533543, 'metal': 26533544, 'mal_croppe': 26533545, 'Teint_Dans_La_Masse': 26533546, 'Carton_gris': 26533547, 'kraft': 26533548, 'plastique': 26533549, 'Carton_brun': 26533550, 'papier': 26533551, 'environnement': 26533552, 'autre_refus': 26533553}", None, None, None, None, '3664616'), ('4302', '26533428', '1381446397', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446396', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446395', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446394', None, None, None, None, None, '3664616')] time used for this insertion : 0.031174421310424805 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.616422176361084 time spend to save output : 0.03145790100097656 total time spend for step 1 : 4.6478800773620605 step2:final Thu Sep 4 17:30:34 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 (26533428) 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 26533428 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381446397,1381446396,1381446395,1381446394); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26533428]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',)} new output for save of step final : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',)} [1381446397, 1381446396, 1381446395, 1381446394] map_info['map_portfolio_photo'] : {26533428: [1381446397, 1381446396, 1381446395, 1381446394]} final : False mtd_id 4302 list_pids : [1381446397, 1381446396, 1381446395, 1381446394] Looping around the photos to save general results len do output : 4 /1381446397.Didn't retrieve data . /1381446396.Didn't retrieve data . /1381446395.Didn't retrieve data . /1381446394.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, '3664616') ('4302', '26533428', '1381446397', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446396', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446395', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446394', None, None, None, None, None, '3664616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '26533428', '1381446397', '0.0', None, None, None, None, '3664616'), ('4302', '26533428', '1381446396', '0.0', None, None, None, None, '3664616'), ('4302', '26533428', '1381446395', '0.0', None, None, None, None, '3664616'), ('4302', '26533428', '1381446394', '0.0', None, None, None, None, '3664616')] time used for this insertion : 0.03227996826171875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.04170727729797363 time spend to save output : 0.03253173828125 total time spend for step 2 : 0.07423901557922363 step3:velours_tree Thu Sep 4 17:30:34 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 : {26533428: [{'flou': 26533542, 'cartonnette': 26533543, 'metal': 26533544, 'mal_croppe': 26533545, 'Teint_Dans_La_Masse': 26533546, 'Carton_gris': 26533547, 'kraft': 26533548, 'plastique': 26533549, 'Carton_brun': 26533550, 'papier': 26533551, 'environnement': 26533552, 'autre_refus': 26533553}]} input_args_next_step : {26533428: ()} output_args : {26533428: [{'flou': 26533542, 'cartonnette': 26533543, 'metal': 26533544, 'mal_croppe': 26533545, 'Teint_Dans_La_Masse': 26533546, 'Carton_gris': 26533547, 'kraft': 26533548, 'plastique': 26533549, 'Carton_brun': 26533550, 'papier': 26533551, 'environnement': 26533552, 'autre_refus': 26533553}]} args : 26533428 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 26533542, 'cartonnette': 26533543, 'metal': 26533544, 'mal_croppe': 26533545, 'Teint_Dans_La_Masse': 26533546, 'Carton_gris': 26533547, 'kraft': 26533548, 'plastique': 26533549, 'Carton_brun': 26533550, 'papier': 26533551, 'environnement': 26533552, 'autre_refus': 26533553},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26533428) 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([26533428]) 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.3303542137145996 time spend to save output : 5.412101745605469e-05 total time spend for step 3 : 0.33040833473205566 step4:send_mail_cod Thu Sep 4 17:30:34 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 : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',)} input_args_next_step : {1381446397: ()} output_args : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',)} args : 1381446397 depend.output_id : 0 input_args_next_step : {1381446397: ('0.0',), 1381446396: ()} output_args : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',)} args : 1381446396 depend.output_id : 0 input_args_next_step : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ()} output_args : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',)} args : 1381446395 depend.output_id : 0 input_args_next_step : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ()} output_args : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',)} args : 1381446394 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 : {26533428: [{'flou': 26533542, 'cartonnette': 26533543, 'metal': 26533544, 'mal_croppe': 26533545, 'Teint_Dans_La_Masse': 26533546, 'Carton_gris': 26533547, 'kraft': 26533548, 'plastique': 26533549, 'Carton_brun': 26533550, 'papier': 26533551, 'environnement': 26533552, 'autre_refus': 26533553}]} input_args_next_step : {1381446397: ('0.0',), 1381446396: ('0.0',), 1381446395: ('0.0',), 1381446394: ('0.0',), 26533428: ()} output_args : {26533428: [{'flou': 26533542, 'cartonnette': 26533543, 'metal': 26533544, 'mal_croppe': 26533545, 'Teint_Dans_La_Masse': 26533546, 'Carton_gris': 26533547, 'kraft': 26533548, 'plastique': 26533549, 'Carton_brun': 26533550, 'papier': 26533551, 'environnement': 26533552, 'autre_refus': 26533553}]} args : 26533428 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 :5, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26533428) 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 (1381446397,1381446396,1381446395,1381446394) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381446394 begin to download photo : 1381446395 begin to download photo : 1381446396 begin to download photo : 1381446397 download finish for photo 1381446394 download finish for photo 1381446395 download finish for photo 1381446397 download finish for photo 1381446396 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette265335421756999834/ imagette265335431756999834/ imagette265335441756999834/ imagette265335451756999834/ imagette265335481756999834/ imagette265335491756999834/ imagette265335531756999834/ imagette265335461756999834/ imagette265335471756999834/ imagette265335501756999834/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P26533428_04-09-2025_17_30_34.pdf 26533542 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=26533542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335421756999834 26533543 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=26533543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335431756999834 26533544 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=26533544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335441756999834 26533545 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=26533545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335451756999834 26533548 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=26533548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335481756999834 26533549 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=26533549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335491756999834 26533553 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=26533553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335531756999834 26533546 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=26533546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335461756999834 26533547 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=26533547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335471756999834 26533550 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=26533550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265335501756999834 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26533428 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26533555,26533556,26533557,26533558,26533559,26533560,26533561,26533562,26533563,26533564,26533565,26533566?tags=flou,cartonnette,metal,mal_croppe,Teint_Dans_La_Masse,Carton_gris,kraft,plastique,Carton_brun,papier,environnement,autre_refus your option no_mail is active, we will not send the real mail to your client args[1381446397] : ('0.0',) no score found for photo 1381446397 We are sending mail with results at report@fotonower.com args[1381446396] : ('0.0',) no score found for photo 1381446396 We are sending mail with results at report@fotonower.com args[1381446395] : ('0.0',) no score found for photo 1381446395 We are sending mail with results at report@fotonower.com args[1381446394] : ('0.0',) no score found for photo 1381446394 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=26533428 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_P26533428_04-09-2025_17_30_34.pdf results_Auto_P26533428_04-09-2025_17_30_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533428_04-09-2025_17_30_34.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','26533428','results_Auto_P26533428_04-09-2025_17_30_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533428_04-09-2025_17_30_34.pdf','pdf','','0.06','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26533428]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381446397, 1381446396, 1381446395, 1381446394] map_info['map_portfolio_photo'] : {26533428: [1381446397, 1381446396, 1381446395, 1381446394]} final : False mtd_id 4302 list_pids : [1381446397, 1381446396, 1381446395, 1381446394] 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, '3664616') ('4302', '26533428', '1381446397', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446396', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446395', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446394', None, None, None, None, None, '3664616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '26533428', '1381446397', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446396', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446395', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446394', None, None, None, None, None, '3664616')] time used for this insertion : 0.032871246337890625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2883288860321045 time spend to save output : 0.03308987617492676 total time spend for step 4 : 1.3214187622070312 step5:split_time_score Thu Sep 4 17:30:35 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 : ['26533428'] 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 : [('26533428',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26533428) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381446394: {'path': 'temp/1756999834_1351496_1381446394_9f5868185f40896460b2b9f3e382834e_26087553.jpg', 'extension': 'jpg'}, 1381446395: {'path': 'temp/1756999834_1351496_1381446395_3c2c2d0019de277cbda3833df40ae771_29595527.jpg', 'extension': 'jpg'}, 1381446397: {'path': 'temp/1756999834_1351496_1381446397_a7366e4586d1149366e2c43620d74487_58169988.jpg', 'extension': 'jpg'}, 1381446396: {'path': 'temp/1756999834_1351496_1381446396_92482838fc18d2a0a404bae0d7807af6_18097881.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 = 26533428; (('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 = 26533428 group by h (('16', 4),) 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=26533428 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 (26533428) 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 (26533428) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04092025 26533428 Nombre de photos uploadées : 4 / 23040 (0%) 04092025 26533428 Nombre de photos taguées (types de déchets): 0 / 4 (0%) 04092025 26533428 Nombre de photos taguées (volume) : 0 / 4 (0%) [{'photo_id': 1381446397, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/a7366e4586d1149366e2c43620d74487_58169988.jpg', 'username': None, 'uploaded_at': 1756999705, 'text': 'image_04092025_16_44_04_10153.jpg'}, {'photo_id': 1381446396, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/92482838fc18d2a0a404bae0d7807af6_18097881.jpg', 'username': None, 'uploaded_at': 1756999705, 'text': 'image_04092025_16_44_14_10135.jpg'}, {'photo_id': 1381446395, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/3c2c2d0019de277cbda3833df40ae771_29595527.jpg', 'username': None, 'uploaded_at': 1756999705, 'text': 'image_04092025_16_44_24_10136.jpg'}, {'photo_id': 1381446394, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/4/9f5868185f40896460b2b9f3e382834e_26087553.jpg', 'username': None, 'uploaded_at': 1756999705, 'text': 'image_04092025_16_44_34_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ???? elapsed_time : fill_and_build_computed_from_old_data 0.00027251243591308594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26533428, '2025-09-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2228087,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.596764087677002 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= 2228087 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26511239, 'dashboard_result_id': 14748307, '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_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26512008, 'dashboard_result_id': 14748308, '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_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26512746, 'dashboard_result_id': 14748309, '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_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26513045, 'dashboard_result_id': 14748310, '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_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26514289, 'dashboard_result_id': 14748311, '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_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26514642, 'dashboard_result_id': 14748312, '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_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26515182, 'dashboard_result_id': 14748313, '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_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26515774, 'dashboard_result_id': 14748314, '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_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26516310, 'dashboard_result_id': 14748315, '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_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26516863, 'dashboard_result_id': 14748316, '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_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26517331, 'dashboard_result_id': 14748317, '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_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26517892, 'dashboard_result_id': 14748318, '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_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26518418, 'dashboard_result_id': 14748319, '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_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26518831, 'dashboard_result_id': 14748320, '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_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26519302, 'dashboard_result_id': 14748321, '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_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26521196, 'dashboard_result_id': 14748322, '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_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26521198, 'dashboard_result_id': 14748323, '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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26521200, 'dashboard_result_id': 14748324, '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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26521203, 'dashboard_result_id': 14748325, '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_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26521292, 'dashboard_result_id': 14748326, '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_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26523116, 'dashboard_result_id': 14748327, '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_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26523130, 'dashboard_result_id': 14748328, '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_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26523144, 'dashboard_result_id': 14748329, '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_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26524019, 'dashboard_result_id': 14748330, '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_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26524022, 'dashboard_result_id': 14748331, '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_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26526039, 'dashboard_result_id': 14748332, '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_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26526041, 'dashboard_result_id': 14748333, '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_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26526889, 'dashboard_result_id': 14748334, '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_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26526952, 'dashboard_result_id': 14748335, '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_P26526952_04-09-2025_08_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26527552, 'dashboard_result_id': 14748336, '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_P26527552_04-09-2025_09_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26527570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26527571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26527572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26527573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26527574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26527575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26527576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26527577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26527578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26527579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26527580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26527581, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26528718, 'dashboard_result_id': 14748337, '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_P26528718_04-09-2025_09_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26528726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26528727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26528728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26528729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26528730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26528731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26528732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26528733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26528734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26528735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26528737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26528738, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26533428, 'dashboard_result_id': 14748338, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26533432, 'dashboard_result_id': 14748339, '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_P26533432_04-09-2025_17_30_01.pdf'}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26533305, 'dashboard_result_id': 14748340, '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_P26533305_04-09-2025_17_29_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533323, 'pht': 3726}}"}, {'dashboat_entry_day': 2228087, 'dashboard_run_id': 2239067, 'mtr_portfolio_id': 26533307, 'dashboard_result_id': 14748341, '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_P26533307_04-09-2025_17_29_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533369, '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 = 26511239 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': 3662799, 'mtr_portfolio_id': 26511239, 'created_at': datetime.datetime(2025, 9, 4, 6, 14, 28), 'result': '0.05235452170997832', 'result_long': None, 'result_double': None}] Qualite : 0.05235452170997832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26511239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_06_14_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26511239 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_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, 'pht': 3726}}" where mtr_portfolio_id = 26511239 and dashboard_run_id = 2239067 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`=26511239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748307, 0.05235452170997832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26511239_04-09-2025_06_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26511248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26511249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26511250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26511251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26511252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26511253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26511254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26511255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26511256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26511257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26511258, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26511259, '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 = 26512008 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': 3662800, 'mtr_portfolio_id': 26512008, 'created_at': datetime.datetime(2025, 9, 4, 6, 14, 58), 'result': '0.05836182521425707', 'result_long': None, 'result_double': None}] Qualite : 0.05836182521425707 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512008 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_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, 'pht': 3726}}" where mtr_portfolio_id = 26512008 and dashboard_run_id = 2239067 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`=26512008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748308, 0.05836182521425707, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512008_04-09-2025_06_15_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512018, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512019, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512022, '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 = 26512746 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': 3662801, 'mtr_portfolio_id': 26512746, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 28), 'result': '0.06725556869373282', 'result_long': None, 'result_double': None}] Qualite : 0.06725556869373282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26512746 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26512746 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_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, 'pht': 3726}}" where mtr_portfolio_id = 26512746 and dashboard_run_id = 2239067 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`=26512746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748309, 0.06725556869373282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26512746_04-09-2025_06_15_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26512749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26512750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26512751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26512752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26512753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26512754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26512755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26512756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26512757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26512758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26512759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26512760, '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 = 26513045 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': 3662802, 'mtr_portfolio_id': 26513045, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 38), 'result': '0.05307991528254644', 'result_long': None, 'result_double': None}] Qualite : 0.05307991528254644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26513045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26513045 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_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, 'pht': 3726}}" where mtr_portfolio_id = 26513045 and dashboard_run_id = 2239067 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`=26513045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748310, 0.05307991528254644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26513045_04-09-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26513049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26513050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26513051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26513052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26513053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26513054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26513055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26513056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26513057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26513058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26513059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26513060, '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 = 26514289 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': 3662803, 'mtr_portfolio_id': 26514289, 'created_at': datetime.datetime(2025, 9, 4, 6, 15, 58), 'result': '0.05834739802176517', 'result_long': None, 'result_double': None}] Qualite : 0.05834739802176517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514289 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_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, 'pht': 3726}}" where mtr_portfolio_id = 26514289 and dashboard_run_id = 2239067 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`=26514289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748311, 0.05834739802176517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514289_04-09-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514290, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514301, '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 = 26514642 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': 3662804, 'mtr_portfolio_id': 26514642, 'created_at': datetime.datetime(2025, 9, 4, 6, 16, 29), 'result': '0.06985876329804716', 'result_long': None, 'result_double': None}] Qualite : 0.06985876329804716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26514642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_06_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26514642 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_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, 'pht': 3726}}" where mtr_portfolio_id = 26514642 and dashboard_run_id = 2239067 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`=26514642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748312, 0.06985876329804716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26514642_04-09-2025_06_16_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26514648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26514649, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26514650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26514651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26514652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26514653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26514654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26514655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26514656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26514657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26514658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26514659, '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 = 26515182 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': 3662805, 'mtr_portfolio_id': 26515182, 'created_at': datetime.datetime(2025, 9, 4, 6, 16, 59), 'result': '0.08199694817227696', 'result_long': None, 'result_double': None}] Qualite : 0.08199694817227696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_06_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515182 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_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, 'pht': 3726}}" where mtr_portfolio_id = 26515182 and dashboard_run_id = 2239067 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`=26515182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748313, 0.08199694817227696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515182_04-09-2025_06_17_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515235, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515242, '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 = 26515774 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': 3662806, 'mtr_portfolio_id': 26515774, 'created_at': datetime.datetime(2025, 9, 4, 6, 17, 28), 'result': '0.04594157915341626', 'result_long': None, 'result_double': None}] Qualite : 0.04594157915341626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26515774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26515774 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_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, 'pht': 3726}}" where mtr_portfolio_id = 26515774 and dashboard_run_id = 2239067 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`=26515774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748314, 0.04594157915341626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26515774_04-09-2025_06_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26515780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26515781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26515782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26515783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26515784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26515785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26515786, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26515787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26515788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26515789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26515790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26515791, '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 = 26516310 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': 3662807, 'mtr_portfolio_id': 26516310, 'created_at': datetime.datetime(2025, 9, 4, 6, 17, 59), 'result': '0.06671172116199682', 'result_long': None, 'result_double': None}] Qualite : 0.06671172116199682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516310 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_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, 'pht': 3726}}" where mtr_portfolio_id = 26516310 and dashboard_run_id = 2239067 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`=26516310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748315, 0.06671172116199682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516310_04-09-2025_06_18_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516320, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516331, '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 = 26516863 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': 3662808, 'mtr_portfolio_id': 26516863, 'created_at': datetime.datetime(2025, 9, 4, 6, 18, 29), 'result': '0.06624665214224501', 'result_long': None, 'result_double': None}] Qualite : 0.06624665214224501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26516863 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_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, 'pht': 3726}}" where mtr_portfolio_id = 26516863 and dashboard_run_id = 2239067 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`=26516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748316, 0.06624665214224501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26516863_04-09-2025_06_18_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26516869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26516870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26516872, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26516873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26516874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26516875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26516877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26516878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26516879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26516880, '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 = 26517331 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': 3662809, 'mtr_portfolio_id': 26517331, 'created_at': datetime.datetime(2025, 9, 4, 6, 19), 'result': '0.05536328619484043', 'result_long': None, 'result_double': None}] Qualite : 0.05536328619484043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517331 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_06_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517331 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_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, 'pht': 3726}}" where mtr_portfolio_id = 26517331 and dashboard_run_id = 2239067 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`=26517331 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748317, 0.05536328619484043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517331_04-09-2025_06_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517369, '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 = 26517892 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': 3662810, 'mtr_portfolio_id': 26517892, 'created_at': datetime.datetime(2025, 9, 4, 6, 19, 27), 'result': '0.04303722426482572', 'result_long': None, 'result_double': None}] Qualite : 0.04303722426482572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26517892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26517892 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_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, 'pht': 3726}}" where mtr_portfolio_id = 26517892 and dashboard_run_id = 2239067 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`=26517892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748318, 0.04303722426482572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26517892_04-09-2025_06_19_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26517917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26517918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26517919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26517920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26517921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26517922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26517923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26517924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26517925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26517926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26517927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26517928, '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 = 26518418 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': 3662811, 'mtr_portfolio_id': 26518418, 'created_at': datetime.datetime(2025, 9, 4, 6, 19, 59), 'result': '0.058210659713508646', 'result_long': None, 'result_double': None}] Qualite : 0.058210659713508646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518418 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_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, 'pht': 3726}}" where mtr_portfolio_id = 26518418 and dashboard_run_id = 2239067 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`=26518418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748319, 0.058210659713508646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518418_04-09-2025_06_20_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518452, '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 = 26518831 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': 3662812, 'mtr_portfolio_id': 26518831, 'created_at': datetime.datetime(2025, 9, 4, 6, 20, 30), 'result': '0.05648689825518858', 'result_long': None, 'result_double': None}] Qualite : 0.05648689825518858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26518831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26518831 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_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, 'pht': 3726}}" where mtr_portfolio_id = 26518831 and dashboard_run_id = 2239067 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`=26518831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748320, 0.05648689825518858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26518831_04-09-2025_06_20_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26518838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26518839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26518840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26518841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26518842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26518843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26518844, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26518845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26518846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26518847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26518848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26518849, '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 = 26519302 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': 3662813, 'mtr_portfolio_id': 26519302, 'created_at': datetime.datetime(2025, 9, 4, 6, 20, 37), 'result': '0.04651536629923985', 'result_long': None, 'result_double': None}] Qualite : 0.04651536629923985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26519302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_20_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26519302 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_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, 'pht': 3726}}" where mtr_portfolio_id = 26519302 and dashboard_run_id = 2239067 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`=26519302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748321, 0.04651536629923985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26519302_04-09-2025_06_20_39.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26519324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26519325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26519326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26519327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26519328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26519329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26519330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26519331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26519332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26519333, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26519334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26519335, '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 = 26521196 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': 3662920, 'mtr_portfolio_id': 26521196, 'created_at': datetime.datetime(2025, 9, 4, 6, 4), 'result': '0.03975237627567749', 'result_long': None, 'result_double': None}] Qualite : 0.03975237627567749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521196_04-09-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521196 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_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, 'pht': 3726}}" where mtr_portfolio_id = 26521196 and dashboard_run_id = 2239067 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`=26521196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748322, 0.03975237627567749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521196_04-09-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26521395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521406, '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 = 26521198 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': 3662921, 'mtr_portfolio_id': 26521198, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 58), 'result': '0.08810981605952489', 'result_long': None, 'result_double': None}] Qualite : 0.08810981605952489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521198 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_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, 'pht': 3726}}" where mtr_portfolio_id = 26521198 and dashboard_run_id = 2239067 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`=26521198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748323, 0.08810981605952489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521198_04-09-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521269, '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 = 26521200 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': 3662922, 'mtr_portfolio_id': 26521200, 'created_at': datetime.datetime(2025, 9, 4, 6, 1, 30), 'result': '0.05914308535975234', 'result_long': None, 'result_double': None}] Qualite : 0.05914308535975234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521200 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_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, 'pht': 3726}}" where mtr_portfolio_id = 26521200 and dashboard_run_id = 2239067 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`=26521200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748324, 0.05914308535975234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521200_04-09-2025_06_01_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521219, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521225, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521228, '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 = 26521203 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': 3662923, 'mtr_portfolio_id': 26521203, 'created_at': datetime.datetime(2025, 9, 4, 6, 3), 'result': '0.07337767426580319', 'result_long': None, 'result_double': None}] Qualite : 0.07337767426580319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521203 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_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, 'pht': 3726}}" where mtr_portfolio_id = 26521203 and dashboard_run_id = 2239067 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`=26521203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748325, 0.07337767426580319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521203_04-09-2025_06_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521216, '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 = 26521292 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': 3662934, 'mtr_portfolio_id': 26521292, 'created_at': datetime.datetime(2025, 9, 4, 7, 1), 'result': '0.06731247452286676', 'result_long': None, 'result_double': None}] Qualite : 0.06731247452286676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26521292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521292_04-09-2025_07_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26521292 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_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, 'pht': 3726}}" where mtr_portfolio_id = 26521292 and dashboard_run_id = 2239067 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`=26521292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748326, 0.06731247452286676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26521292_04-09-2025_07_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26521326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26521328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26521329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26521330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26521331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26521333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26521334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26521335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26521337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26521338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26521339, '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 = 26523116 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': 3663280, 'mtr_portfolio_id': 26523116, 'created_at': datetime.datetime(2025, 9, 4, 7, 1, 33), 'result': '0.053622880557909126', 'result_long': None, 'result_double': None}] Qualite : 0.053622880557909126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523116_04-09-2025_07_01_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523116 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_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, 'pht': 3726}}" where mtr_portfolio_id = 26523116 and dashboard_run_id = 2239067 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`=26523116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748327, 0.053622880557909126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523116_04-09-2025_07_01_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523236, '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 = 26523130 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': 3663281, 'mtr_portfolio_id': 26523130, 'created_at': datetime.datetime(2025, 9, 4, 7, 0), 'result': '0.048149229687541505', 'result_long': None, 'result_double': None}] Qualite : 0.048149229687541505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523130 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523130_04-09-2025_07_00_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523130 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_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, 'pht': 3726}}" where mtr_portfolio_id = 26523130 and dashboard_run_id = 2239067 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`=26523130 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748328, 0.048149229687541505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523130_04-09-2025_07_00_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523156, '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 = 26523144 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': 3663282, 'mtr_portfolio_id': 26523144, 'created_at': datetime.datetime(2025, 9, 4, 7, 16, 57), 'result': '0.04953402944280438', 'result_long': None, 'result_double': None}] Qualite : 0.04953402944280438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26523144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523144_04-09-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26523144 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_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, 'pht': 3726}}" where mtr_portfolio_id = 26523144 and dashboard_run_id = 2239067 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`=26523144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748329, 0.04953402944280438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26523144_04-09-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26523169, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26523170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26523171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26523172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26523173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26523174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26523175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26523176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26523177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26523178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26523179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26523180, '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 = 26524019 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': 3663410, 'mtr_portfolio_id': 26524019, 'created_at': datetime.datetime(2025, 9, 4, 7, 17, 32), 'result': '0.04357979625475857', 'result_long': None, 'result_double': None}] Qualite : 0.04357979625475857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26524019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524019_04-09-2025_07_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26524019 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_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, 'pht': 3726}}" where mtr_portfolio_id = 26524019 and dashboard_run_id = 2239067 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`=26524019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748330, 0.04357979625475857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524019_04-09-2025_07_17_35.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26524054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524056, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524065, '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 = 26524022 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': 3663411, 'mtr_portfolio_id': 26524022, 'created_at': datetime.datetime(2025, 9, 4, 8, 0, 29), 'result': '0.05854257460013273', 'result_long': None, 'result_double': None}] Qualite : 0.05854257460013273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26524022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524022_04-09-2025_08_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26524022 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_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, 'pht': 3726}}" where mtr_portfolio_id = 26524022 and dashboard_run_id = 2239067 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`=26524022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748331, 0.05854257460013273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26524022_04-09-2025_08_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26524157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26524158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26524159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26524160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26524161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26524162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26524163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26524164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26524165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26524166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26524167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26524168, '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 = 26526039 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': 3663642, 'mtr_portfolio_id': 26526039, 'created_at': datetime.datetime(2025, 9, 4, 8, 0, 58), 'result': '0.07393756064831652', 'result_long': None, 'result_double': None}] Qualite : 0.07393756064831652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526039_04-09-2025_08_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526039 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_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, 'pht': 3726}}" where mtr_portfolio_id = 26526039 and dashboard_run_id = 2239067 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`=26526039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748332, 0.07393756064831652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526039_04-09-2025_08_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526095, '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 = 26526041 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': 3663643, 'mtr_portfolio_id': 26526041, 'created_at': datetime.datetime(2025, 9, 4, 8, 16, 58), 'result': '0.058204342503370886', 'result_long': None, 'result_double': None}] Qualite : 0.058204342503370886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526041_04-09-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526041 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_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, 'pht': 3726}}" where mtr_portfolio_id = 26526041 and dashboard_run_id = 2239067 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`=26526041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748333, 0.058204342503370886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526041_04-09-2025_08_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526054, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526055, '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 = 26526889 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': 3663742, 'mtr_portfolio_id': 26526889, 'created_at': datetime.datetime(2025, 9, 4, 8, 17, 36), 'result': '0.06085608171986234', 'result_long': None, 'result_double': None}] Qualite : 0.06085608171986234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526889_04-09-2025_08_17_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526889 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_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, 'pht': 3726}}" where mtr_portfolio_id = 26526889 and dashboard_run_id = 2239067 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`=26526889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748334, 0.06085608171986234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526889_04-09-2025_08_17_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526911, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526912, '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 = 26526952 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': 3663758, 'mtr_portfolio_id': 26526952, 'created_at': datetime.datetime(2025, 9, 4, 8, 32, 59), 'result': '0.05939384208263903', 'result_long': None, 'result_double': None}] Qualite : 0.05939384208263903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26526952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26526952 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_P26526952_04-09-2025_08_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, 'pht': 3726}}" where mtr_portfolio_id = 26526952 and dashboard_run_id = 2239067 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`=26526952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748335, 0.05939384208263903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26526952_04-09-2025_08_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26526962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26526963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26526964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26526965, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26526966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26526967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26526968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26526969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26526970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26526971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26526972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26526973, '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 = 26527552 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': 3663836, 'mtr_portfolio_id': 26527552, 'created_at': datetime.datetime(2025, 9, 4, 9, 0, 30), 'result': '0.053121259523909066', 'result_long': None, 'result_double': None}] Qualite : 0.053121259523909066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26527552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26527552_04-09-2025_09_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26527552 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_P26527552_04-09-2025_09_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26527570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26527571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26527572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26527573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26527574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26527575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26527576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26527577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26527578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26527579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26527580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26527581, 'pht': 3726}}" where mtr_portfolio_id = 26527552 and dashboard_run_id = 2239067 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`=26527552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748336, 0.053121259523909066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26527552_04-09-2025_09_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26527570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26527571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26527572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26527573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26527574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26527575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26527576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26527577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26527578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26527579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26527580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26527581, '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 = 26528718 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': 3663983, 'mtr_portfolio_id': 26528718, 'created_at': datetime.datetime(2025, 9, 4, 9, 59, 58), 'result': '0.051039267930604565', 'result_long': None, 'result_double': None}] Qualite : 0.051039267930604565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26528718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26528718_04-09-2025_09_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26528718 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_P26528718_04-09-2025_09_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26528726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26528727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26528728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26528729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26528730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26528731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26528732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26528733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26528734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26528735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26528737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26528738, 'pht': 3726}}" where mtr_portfolio_id = 26528718 and dashboard_run_id = 2239067 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`=26528718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748337, 0.051039267930604565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26528718_04-09-2025_09_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26528726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26528727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26528728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26528729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26528730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26528731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26528732, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26528733, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26528734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26528735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26528737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26528738, '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 = 26533428 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533428 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26533428 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533428 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533428 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26533428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533428_04-09-2025_17_30_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533428 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_P26533428_04-09-2025_17_30_34.pdf'}" where mtr_portfolio_id = 26533428 and dashboard_run_id = 2239067 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 = 26533432 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533432 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26533432 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533432 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533432 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26533432 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533432_04-09-2025_17_30_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533432 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_P26533432_04-09-2025_17_30_01.pdf'}" where mtr_portfolio_id = 26533432 and dashboard_run_id = 2239067 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 = 26533305 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533305 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26533305 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533305 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26533305 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26533305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533305_04-09-2025_17_29_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533305 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_P26533305_04-09-2025_17_29_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533323, 'pht': 3726}}" where mtr_portfolio_id = 26533305 and dashboard_run_id = 2239067 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 = 26533307 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': 3664611, 'mtr_portfolio_id': 26533307, 'created_at': datetime.datetime(2025, 9, 4, 17, 29, 28), 'result': '0.12378380298425638', 'result_long': None, 'result_double': None}] Qualite : 0.12378380298425638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26533307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533307_04-09-2025_17_29_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26533307 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_P26533307_04-09-2025_17_29_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533369, 'pht': 3726}}" where mtr_portfolio_id = 26533307 and dashboard_run_id = 2239067 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`=26533307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14748341, 0.12378380298425638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26533307_04-09-2025_17_29_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26533358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26533359, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26533360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26533361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26533362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26533363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26533364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26533365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26533366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26533367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26533368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26533369, '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 (26511239,26512008,26512746,26513045,26514289,26514642,26515182,26515774,26516310,26516863,26517331,26517892,26518418,26518831,26519302,26521196,26521198,26521200,26521203,26521292,26523116,26523130,26523144,26524019,26524022,26526039,26526041,26526889,26526952,26527552,26528718,26533428,26533432,26533305,26533307) result : ((1381310396,), (1381310399,), (1381311379,), (1381311381,), (1381311384,), (1381312220,), (1381312223,), (1381312226,), (1381312229,), (1381312232,), (1381312235,), (1381313264,), (1381313267,), (1381313270,), (1381313273,), (1381313276,), (1381313862,), (1381313864,), (1381313866,), (1381313868,), (1381314117,), (1381314118,), (1381314119,), (1381314120,), (1381314122,), (1381314348,), (1381314350,), (1381314353,), (1381314355,), (1381314357,), (1381314752,), (1381314827,), (1381314829,), (1381314831,), (1381314833,), (1381314835,), (1381315040,), (1381315041,), (1381315042,), (1381315043,), (1381315098,), (1381315099,), (1381315100,), (1381315102,), (1381315103,), (1381315104,), (1381315270,), (1381315271,), (1381315272,), (1381315273,), (1381315274,), (1381315580,), (1381315581,), (1381315583,), (1381315584,), (1381315585,), (1381315586,), (1381315682,), (1381315683,), (1381315684,), (1381315685,), (1381315729,), (1381315730,), (1381315731,), (1381315732,), (1381315826,), (1381315828,), (1381315830,), (1381315832,), (1381316466,), (1381316707,), (1381316463,), (1381316465,), (1381316658,), (1381316659,), (1381316661,), (1381316663,), (1381316665,), (1381316667,), (1381316706,), (1381316821,), (1381316823,), (1381316825,), (1381316827,), (1381316829,), (1381316831,), (1381317023,), (1381317025,), (1381317027,), (1381317796,), (1381317801,), (1381317806,), (1381319184,), (1381319187,), (1381319191,), (1381319195,), (1381319199,), (1381319652,), (1381319654,), (1381319656,), (1381319658,), (1381319660,), (1381319662,), (1381320119,), (1381320121,), (1381320123,), (1381320125,), (1381321423,), (1381321431,), (1381321439,), (1381321449,), (1381321456,), (1381322593,), (1381322596,), (1381322598,), (1381322600,), (1381322602,), (1381322604,), (1381323215,), (1381323216,), (1381323217,), (1381323218,), (1381323940,), (1381323941,), (1381323942,), (1381323943,), (1381324018,), (1381324019,), (1381324020,), (1381324021,), (1381324023,), (1381324200,), (1381324202,), (1381324204,), (1381324206,), (1381324610,), (1381324611,), (1381324613,), (1381324616,), (1381324878,), (1381324875,), (1381324876,), (1381324877,), (1381325084,), (1381325086,), (1381325088,), (1381325089,), (1381325320,), (1381325321,), (1381325322,), (1381325323,), (1381325324,), (1381325325,), (1381325518,), (1381325521,), (1381325523,), (1381325525,), (1381325907,), (1381325909,), (1381325911,), (1381325913,), (1381326296,), (1381326298,), (1381326300,), (1381326302,), (1381326585,), (1381329291,), (1381329294,), (1381329706,), (1381329708,), (1381329710,), (1381329712,), (1381329714,), (1381329716,), (1381330124,), (1381330127,), (1381330130,), (1381330133,), (1381330847,), (1381330853,), (1381330858,), (1381331946,), (1381331949,), (1381331952,), (1381331955,), (1381332414,), (1381332404,), (1381332406,), (1381332408,), (1381332410,), (1381332412,), (1381333367,), (1381333370,), (1381333373,), (1381333376,), (1381333379,), (1381333941,), (1381333943,), (1381333945,), (1381333947,), (1381333949,), (1381334631,), (1381334634,), (1381334637,), (1381335104,), (1381335106,), (1381335108,), (1381335110,), (1381335807,), (1381335809,), (1381335811,), (1381335814,), (1381335816,), (1381336258,), (1381336259,), (1381336260,), (1381336261,), (1381336262,), (1381336263,), (1381336801,), (1381336803,), (1381336805,), (1381336966,), (1381336967,), (1381336968,), (1381336969,), (1381336970,), (1381336971,), (1381337452,), (1381337455,), (1381337458,), (1381337461,), (1381337464,), (1381337467,), (1381337643,), (1381337644,), (1381337645,), (1381337646,), (1381337647,), (1381337686,), (1381337687,), (1381337688,), (1381337735,), (1381345142,), (1381345189,), (1381345190,), (1381345259,), (1381345260,), (1381345262,), (1381345263,), (1381345302,), (1381345304,), (1381345305,), (1381345347,), (1381345348,), (1381345349,), (1381345394,), (1381345395,), (1381345396,), (1381345397,), (1381345398,), (1381345399,), (1381345436,), (1381345437,), (1381345438,), (1381345439,), (1381345440,), (1381345486,), (1381345487,), (1381345488,), (1381345490,), (1381345528,), (1381345529,), (1381345530,), (1381345531,), (1381345577,), (1381345585,), (1381345586,), (1381345587,), (1381345589,), (1381345633,), (1381345634,), (1381345635,), (1381345636,), (1381345637,), (1381345638,), (1381345679,), (1381345680,), (1381345681,), (1381345682,), (1381345717,), (1381345718,), (1381345719,), (1381345915,), (1381345919,), (1381345923,), (1381345927,), (1381345930,), (1381345999,), (1381346000,), (1381346001,), (1381346002,), (1381346003,), (1381346049,), (1381346044,), (1381346045,), (1381346046,), (1381346048,), (1381346114,), (1381346115,), (1381346116,), (1381346117,), (1381346182,), (1381346183,), (1381346232,), (1381346254,), (1381346255,), (1381346256,), (1381346258,), (1381346318,), (1381346319,), (1381346320,), (1381346321,), (1381346322,), (1381346323,), (1381346370,), (1381346371,), (1381346372,), (1381346428,), (1381346430,), (1381346431,), (1381346432,), (1381346433,), (1381346500,), (1381346501,), (1381346502,), (1381346503,), (1381346504,), (1381346558,), (1381346559,), (1381346560,), (1381346561,), (1381346562,), (1381346598,), (1381346599,), (1381346600,), (1381346601,), (1381346602,), (1381346641,), (1381346642,), (1381346679,), (1381346680,), (1381346681,), (1381346682,), (1381346683,), (1381346735,), (1381346736,), (1381346737,), (1381346738,), (1381346739,), (1381346740,), (1381346942,), (1381346944,), (1381346946,), (1381346948,), (1381347376,), (1381347369,), (1381347370,), (1381347372,), (1381347374,), (1381347700,), (1381347702,), (1381347703,), (1381347704,), (1381347879,), (1381347880,), (1381347881,), (1381347882,), (1381347883,), (1381347884,), (1381347952,), (1381347953,), (1381347954,), (1381347955,), (1381347956,), (1381347994,), (1381347995,), (1381347996,), (1381347997,), (1381347998,), (1381347999,), (1381348046,), (1381348047,), (1381348048,), (1381348049,), (1381348518,), (1381348521,), (1381348524,), (1381349221,), (1381349223,), (1381349739,), (1381349741,), (1381349743,), (1381349745,), (1381349747,), (1381349959,), (1381350079,), (1381350357,), (1381350359,), (1381350361,), (1381350363,), (1381350365,), (1381350776,), (1381350778,), (1381350780,), (1381350782,), (1381350784,), (1381351159,), (1381351160,), (1381351161,), (1381351162,), (1381351210,), (1381351212,), (1381351214,), (1381351216,), (1381351218,), (1381351506,), (1381351498,), (1381351500,), (1381351502,), (1381351504,), (1381351621,), (1381351622,), (1381351624,), (1381351626,), (1381351629,), (1381351703,), (1381351704,), (1381351743,), (1381351744,), (1381351745,), (1381351746,), (1381351783,), (1381351784,), (1381351785,), (1381351786,), (1381351787,), (1381351830,), (1381351831,), (1381351832,), (1381351833,), (1381351889,), (1381351890,), (1381351891,), (1381351892,), (1381351929,), (1381351930,), (1381351931,), (1381351932,), (1381352023,), (1381352025,), (1381352027,), (1381352029,), (1381352031,), (1381352409,), (1381352411,), (1381352413,), (1381352728,), (1381352731,), (1381352734,), (1381352737,), (1381352740,), (1381352743,), (1381353097,), (1381353099,), (1381353101,), (1381353103,), (1381353105,), (1381353107,), (1381353494,), (1381353496,), (1381353498,), (1381353500,), (1381353811,), (1381353813,), (1381353814,), (1381353815,), (1381353816,), (1381353879,), (1381353880,), (1381353881,), (1381353882,), (1381353883,), (1381353931,), (1381353928,), (1381353929,), (1381353930,), (1381354265,), (1381354267,), (1381354269,), (1381354271,), (1381354670,), (1381354671,), (1381354672,), (1381354673,), (1381354853,), (1381354855,), (1381354857,), (1381354859,), (1381354861,), (1381354863,), (1381354941,), (1381354942,), (1381354943,), (1381354945,), (1381354946,), (1381355150,), (1381355152,), (1381355154,), (1381355156,), (1381355455,), (1381355456,), (1381355457,), (1381355458,), (1381355541,), (1381355542,), (1381355543,), (1381355544,), (1381355580,), (1381355581,), (1381355582,), (1381355626,), (1381355627,), (1381355629,), (1381355630,), (1381355631,), (1381355632,), (1381355666,), (1381355667,), (1381355668,), (1381355712,), (1381355713,), (1381355714,), (1381355751,), (1381355752,), (1381355753,), (1381355754,), (1381355802,), (1381355803,), (1381355804,), (1381355805,), (1381355806,), (1381355898,), (1381355899,), (1381355901,), (1381355943,), (1381355942,), (1381355987,), (1381355988,), (1381355989,), (1381356042,), (1381356043,), (1381356044,), (1381356045,), (1381356085,), (1381356086,), (1381356087,), (1381356088,), (1381356126,), (1381356127,), (1381356128,), (1381356129,), (1381356130,), (1381356220,), (1381356221,), (1381356278,), (1381356279,), (1381356280,), (1381356281,), (1381356282,), (1381356343,), (1381356344,), (1381356345,), (1381356346,), (1381356779,), (1381356781,), (1381356783,), (1381356785,), (1381356787,), (1381357239,), (1381357241,), (1381357243,), (1381357649,), (1381357651,), (1381357653,), (1381357655,), (1381358020,), (1381358021,), (1381358022,), (1381358023,), (1381358106,), (1381358107,), (1381358108,), (1381358579,), (1381358583,), (1381358587,), (1381358771,), (1381358775,), (1381358779,), (1381359839,), (1381359823,), (1381359827,), (1381359831,), (1381359835,), (1381361021,), (1381361026,), (1381361031,), (1381361719,), (1381361721,), (1381361723,), (1381362620,), (1381362623,), (1381362872,), (1381362873,), (1381362874,), (1381362917,), (1381362918,), (1381362919,), (1381362966,), (1381362967,), (1381363007,), (1381363008,), (1381363009,), (1381363010,), (1381363184,), (1381363186,), (1381363188,), (1381363190,), (1381363192,), (1381363576,), (1381363579,), (1381363581,), (1381363584,), (1381363976,), (1381363978,), (1381363980,), (1381363982,), (1381363984,), (1381364376,), (1381364378,), (1381364380,), (1381364382,), (1381364384,), (1381364386,), (1381364753,), (1381364754,), (1381364755,), (1381364805,), (1381364806,), (1381364807,), (1381364808,), (1381364845,), (1381364846,), (1381364847,), (1381364849,), (1381364850,), (1381365244,), (1381365237,), (1381365240,), (1381365242,), (1381365612,), (1381365614,), (1381365616,), (1381365784,), (1381365786,), (1381365788,), (1381365790,), (1381365964,), (1381365966,), (1381365968,), (1381365970,), (1381366429,), (1381366432,), (1381366435,), (1381366438,), (1381366842,), (1381366843,), (1381366844,), (1381366845,), (1381366846,), (1381366847,), (1381367136,), (1381367318,), (1381367400,), (1381367438,), (1381367439,), (1381367440,), (1381367525,), (1381367526,), (1381367527,), (1381367567,), (1381367568,), (1381367569,), (1381367570,), (1381367613,), (1381367614,), (1381367615,), (1381367616,), (1381367617,), (1381367658,), (1381367655,), (1381367656,), (1381367657,), (1381367701,), (1381367702,), (1381367703,), (1381367704,), (1381367705,), (1381367955,), (1381367956,), (1381367957,), (1381368174,), (1381368176,), (1381368177,), (1381368178,), (1381368179,), (1381368219,), (1381368220,), (1381368221,), (1381368222,), (1381368270,), (1381368271,), (1381368272,), (1381368273,), (1381368310,), (1381368311,), (1381368312,), (1381368314,), (1381368315,), (1381368393,), (1381368394,), (1381368395,), (1381368430,), (1381368431,), (1381368432,), (1381368434,), (1381368435,), (1381368479,), (1381368551,), (1381368552,), (1381368553,), (1381368583,), (1381368585,), (1381368586,), (1381368587,), (1381368639,), (1381368640,), (1381368641,), (1381368642,), (1381368682,), (1381368683,), (1381368729,), (1381368725,), (1381368726,), (1381368728,), (1381368861,), (1381368862,), (1381368863,), (1381368864,), (1381368865,), (1381368989,), (1381368990,), (1381368991,), (1381368992,), (1381368993,), (1381369029,), (1381369030,), (1381369031,), (1381369032,), (1381369074,), (1381369075,), (1381369076,), (1381369123,), (1381369124,), (1381369125,), (1381369126,), (1381369127,), (1381369170,), (1381369171,), (1381369172,), (1381369173,), (1381369174,), (1381369229,), (1381369230,), (1381369231,), (1381369232,), (1381369233,), (1381369273,), (1381369274,), (1381369275,), (1381369277,), (1381369310,), (1381369311,), (1381369312,), (1381369353,), (1381369354,), (1381369355,), (1381369388,), (1381369389,), (1381369390,), (1381369391,), (1381369392,), (1381369393,), (1381369751,), (1381369753,), (1381369755,), (1381370225,), (1381370229,), (1381370232,), (1381370921,), (1381370917,), (1381370919,), (1381371354,), (1381371356,), (1381371358,), (1381371360,), (1381371713,), (1381371715,), (1381371717,), (1381371719,), (1381371870,), (1381371871,), (1381371983,), (1381371984,), (1381371985,), (1381371986,), (1381372038,), (1381372078,), (1381372079,), (1381372080,), (1381372081,), (1381372124,), (1381372125,), (1381372126,), (1381372127,), (1381372173,), (1381372174,), (1381372175,), (1381377097,), (1381377745,), (1381377747,), (1381378419,), (1381378420,), (1381378421,), (1381378463,), (1381378464,), (1381378465,), (1381378506,), (1381378507,), (1381378554,), (1381378555,), (1381378627,), (1381378628,), (1381378629,), (1381378630,), (1381378631,), (1381378673,), (1381378674,), (1381378723,), (1381378724,), (1381378725,), (1381378726,), (1381378727,), (1381378775,), (1381378771,), (1381378772,), (1381378773,), (1381378774,), (1381378822,), (1381378823,), (1381378824,), (1381378825,), (1381378826,), (1381378909,), (1381378910,), (1381378911,), (1381378912,), (1381378953,), (1381378954,), (1381378955,), (1381378956,), (1381379022,), (1381379023,), (1381379024,), (1381379025,), (1381379026,), (1381379027,), (1381379077,), (1381379078,), (1381379079,), (1381379080,), (1381379081,), (1381379082,), (1381379164,), (1381379165,), (1381379166,), (1381379207,), (1381379208,), (1381379209,), (1381379210,), (1381379211,), (1381379212,), (1381379324,), (1381379325,), (1381379326,), (1381379327,), (1381379328,), (1381379380,), (1381379381,), (1381379382,), (1381379383,), (1381379453,), (1381379454,), (1381379455,), (1381379456,), (1381379457,), (1381379530,), (1381379531,), (1381379532,), (1381379533,), (1381379624,), (1381379625,), (1381379626,), (1381379627,), (1381379628,), (1381379629,), (1381379669,), (1381379670,), (1381379671,), (1381379672,), (1381379673,), (1381379674,), (1381379738,), (1381379739,), (1381379740,), (1381379741,), (1381379793,), (1381379788,), (1381379789,), (1381379790,), (1381379791,), (1381379792,), (1381379852,), (1381379853,), (1381379854,), (1381379855,), (1381379856,), (1381379857,), (1381379945,), (1381379946,), (1381379947,), (1381379948,), (1381379949,), (1381379995,), (1381379996,), (1381379997,), (1381379998,), (1381379999,), (1381380000,), (1381380037,), (1381380039,), (1381380219,), (1381380590,), (1381380586,), (1381380587,), (1381380588,), (1381380589,), (1381380682,), (1381380683,), (1381380684,), (1381380685,), (1381380686,), (1381380726,), (1381380727,), (1381380728,), (1381380729,), (1381380786,), (1381380787,), (1381380788,), (1381380789,), (1381380836,), (1381380837,), (1381380838,), (1381380839,), (1381380840,), (1381380841,), (1381380881,), (1381380882,), (1381380887,), (1381380889,), (1381380935,), (1381380936,), (1381380981,), (1381380982,), (1381380983,), (1381381013,), (1381381014,), (1381381015,), (1381381016,), (1381381017,), (1381381018,), (1381381057,), (1381381058,), (1381381059,), (1381381060,), (1381381061,), (1381381075,), (1381381076,), (1381381077,), (1381381078,), (1381381079,), (1381381080,), (1381381152,), (1381381153,), (1381381154,), (1381381155,), (1381381759,), (1381381762,), (1381381766,), (1381381769,), (1381381875,), (1381381878,), (1381381881,), (1381381885,), (1381381888,), (1381382490,), (1381382481,), (1381382483,), (1381382486,), (1381382488,), (1381383011,), (1381383013,), (1381383015,), (1381383017,), (1381383019,), (1381383021,), (1381383556,), (1381383559,), (1381383562,), (1381383565,), (1381383568,), (1381384064,), (1381384066,), (1381384068,), (1381384070,), (1381384290,), (1381384291,), (1381384292,), (1381384293,), (1381384294,), (1381384295,), (1381384497,), (1381384499,), (1381384501,), (1381384503,), (1381384505,), (1381384764,), (1381384765,), (1381384766,), (1381384767,), (1381384768,), (1381384769,), (1381384823,), (1381384825,), (1381384826,), (1381384827,), (1381384881,), (1381384882,), (1381384884,), (1381384885,), (1381384886,), (1381384887,), (1381384929,), (1381384930,), (1381384931,), (1381384932,), (1381384933,), (1381384965,), (1381384966,), (1381384967,), (1381384968,), (1381385023,), (1381385024,), (1381385025,), (1381385026,), (1381385059,), (1381385060,), (1381385061,), (1381385062,), (1381385063,), (1381385096,), (1381385097,), (1381385098,), (1381385099,), (1381385134,), (1381385135,), (1381385159,), (1381385156,), (1381385157,), (1381385158,), (1381385198,), (1381385199,), (1381385200,), (1381385201,), (1381385241,), (1381385242,), (1381385243,), (1381385244,), (1381385245,), (1381385284,), (1381385285,), (1381385286,), (1381385287,), (1381385288,), (1381385344,), (1381385345,), (1381385378,), (1381385379,), (1381385380,), (1381385428,), (1381385429,), (1381385430,), (1381385431,), (1381385432,), (1381385433,), (1381385468,), (1381385469,), (1381385470,), (1381385471,), (1381385472,), (1381385519,), (1381385520,), (1381385521,), (1381385522,), (1381385560,), (1381385561,), (1381385609,), (1381385611,), (1381385613,), (1381385614,), (1381385615,), (1381385655,), (1381385656,), (1381385723,), (1381385724,), (1381385725,), (1381385726,), (1381385765,), (1381385766,), (1381385827,), (1381385828,), (1381385830,), (1381385831,), (1381385881,), (1381385879,), (1381385880,), (1381385952,), (1381385955,), (1381385956,), (1381385957,), (1381386019,), (1381386020,), (1381386021,), (1381386022,), (1381386023,), (1381386063,), (1381386064,), (1381386236,), (1381386237,), (1381386238,), (1381386273,), (1381386274,), (1381386275,), (1381386276,), (1381386277,), (1381386278,), (1381386330,), (1381386331,), (1381386332,), (1381386333,), (1381386334,), (1381386335,), (1381386379,), (1381386380,), (1381386381,), (1381386382,), (1381386436,), (1381386437,), (1381386438,), (1381386439,), (1381386440,), (1381386441,), (1381386475,), (1381386476,), (1381386477,), (1381386478,), (1381386479,), (1381386480,), (1381386530,), (1381386531,), (1381386532,), (1381386570,), (1381386571,), (1381386572,), (1381386573,), (1381386574,), (1381386575,), (1381386626,), (1381386622,), (1381386623,), (1381386624,), (1381386625,), (1381386662,), (1381386663,), (1381386664,), (1381386665,), (1381386754,), (1381386756,), (1381386758,), (1381386759,), (1381386793,), (1381386794,), (1381386795,), (1381386796,), (1381386854,), (1381386855,), (1381386856,), (1381386857,), (1381386858,), (1381386859,), (1381386892,), (1381386893,), (1381386894,), (1381386895,), (1381386941,), (1381386942,), (1381386943,), (1381386944,), (1381386977,), (1381386978,), (1381386979,), (1381386980,), (1381386981,), (1381386982,), (1381387022,), (1381387023,), (1381387024,), (1381387025,), (1381387026,), (1381387027,), (1381387064,), (1381387065,), (1381387066,), (1381387067,), (1381387106,), (1381387107,), (1381387108,), (1381387109,), (1381387111,), (1381387146,), (1381387148,), (1381387149,), (1381387228,), (1381387229,), (1381387230,), (1381387231,), (1381387232,), (1381388256,), (1381388259,), (1381388262,), (1381388265,), (1381388268,), (1381388347,), (1381388348,), (1381388350,), (1381388352,), (1381388853,), (1381388844,), (1381388849,), (1381389552,), (1381389554,), (1381389556,), (1381389558,), (1381389560,), (1381389563,), (1381390016,), (1381390018,), (1381390020,), (1381390022,), (1381390024,), (1381390026,), (1381390179,), (1381390180,), (1381390436,), (1381390437,), (1381390438,), (1381390439,), (1381390440,), (1381390441,), (1381390500,), (1381390501,), (1381390502,), (1381390503,), (1381390570,), (1381390571,), (1381390572,), (1381390573,), (1381390653,), (1381390654,), (1381390655,), (1381390656,), (1381390657,), (1381390658,), (1381390730,), (1381390731,), (1381390732,), (1381390733,), (1381390734,), (1381390735,), (1381390736,), (1381390737,), (1381390738,), (1381390739,), (1381390740,), (1381390741,), (1381390742,), (1381390743,), (1381390744,), (1381390745,), (1381390746,), (1381390747,), (1381390811,), (1381390812,), (1381390813,), (1381391735,), (1381391729,), (1381391731,), (1381391733,), (1381391881,), (1381391884,), (1381391886,), (1381391888,), (1381391996,), (1381391998,), (1381391999,), (1381392000,), (1381392001,), (1381392002,), (1381392095,), (1381392096,), (1381392097,), (1381392098,), (1381392262,), (1381392263,), (1381392264,), (1381392398,), (1381392399,), (1381392400,), (1381392401,), (1381392402,), (1381392403,), (1381392452,), (1381392453,), (1381392454,), (1381392455,), (1381392456,), (1381392457,), (1381392538,), (1381392540,), (1381392542,), (1381392545,), (1381392547,), (1381392709,), (1381392712,), (1381392716,), (1381392719,), (1381392923,), (1381392924,), (1381392925,), (1381392926,), (1381392928,), (1381392929,), (1381393068,), (1381393069,), (1381393070,), (1381393071,), (1381393196,), (1381393197,), (1381393198,), (1381393199,), (1381393200,), (1381393201,), (1381393250,), (1381393251,), (1381393252,), (1381393253,), (1381393254,), (1381393291,), (1381393293,), (1381393295,), (1381393298,), (1381393300,), (1381393388,), (1381393389,), (1381393390,), (1381393391,), (1381393392,), (1381393393,), (1381393461,), (1381393458,), (1381393459,), (1381393460,), (1381393498,), (1381393499,), (1381393500,), (1381393501,), (1381393503,), (1381393505,), (1381393660,), (1381393662,), (1381393664,), (1381393666,), (1381393668,), (1381393670,), (1381394033,), (1381394035,), (1381394037,), (1381394085,), (1381394086,), (1381394087,), (1381394088,), (1381394089,), (1381394090,), (1381394143,), (1381394144,), (1381394145,), (1381394146,), (1381394148,), (1381394150,), (1381394196,), (1381394197,), (1381394198,), (1381394317,), (1381394319,), (1381394321,), (1381394323,), (1381394325,), (1381394401,), (1381394403,), (1381394405,), (1381394407,), (1381394409,), (1381394542,), (1381394543,), (1381394544,), (1381394545,), (1381394546,), (1381394591,), (1381394592,), (1381394593,), (1381394594,), (1381394595,), (1381394596,), (1381394678,), (1381394679,), (1381394680,), (1381394681,), (1381394683,), (1381394806,), (1381394808,), (1381394810,), (1381394812,), (1381394814,), (1381394816,), (1381395128,), (1381395129,), (1381395130,), (1381395131,), (1381395132,), (1381395133,), (1381395149,), (1381395256,), (1381395257,), (1381395258,), (1381395497,), (1381395476,), (1381395494,), (1381395495,), (1381395496,), (1381395556,), (1381395557,), (1381395558,), (1381395646,), (1381395647,), (1381395648,), (1381395649,), (1381395650,), (1381395781,), (1381395782,), (1381395783,), (1381395784,), (1381396167,), (1381396169,), (1381396171,), (1381396172,), (1381396233,), (1381396234,), (1381396235,), (1381396236,), (1381396237,), (1381396295,), (1381396296,), (1381396297,), (1381396298,), (1381396299,), (1381396349,), (1381396350,), (1381396351,), (1381396352,), (1381396393,), (1381396394,), (1381396456,), (1381396468,), (1381396469,), (1381396470,), (1381396648,), (1381396649,), (1381396650,), (1381396651,), (1381396710,), (1381396711,), (1381396712,), (1381396713,), (1381396714,), (1381396715,), (1381397865,), (1381397866,), (1381398187,), (1381398181,), (1381398185,), (1381398501,), (1381398503,), (1381398505,), (1381398507,), (1381399217,), (1381399221,), (1381399397,), (1381399399,), (1381399667,), (1381399670,), (1381399672,), (1381399673,), (1381399674,), (1381399779,), (1381399780,), (1381399781,), (1381399883,), (1381399884,), (1381399885,), (1381399886,), (1381399887,), (1381399929,), (1381399930,), (1381399931,), (1381399979,), (1381399980,), (1381399981,), (1381399982,), (1381399983,), (1381400039,), (1381400040,), (1381400041,), (1381400226,), (1381400227,), (1381400228,), (1381400301,), (1381400302,), (1381400345,), (1381400346,), (1381400347,), (1381400380,), (1381400381,), (1381400422,), (1381400459,), (1381400460,), (1381400504,), (1381400505,), (1381400506,), (1381400570,), (1381400571,), (1381400572,), (1381400573,), (1381400622,), (1381400623,), (1381400624,), (1381400625,), (1381400626,), (1381400627,), (1381400671,), (1381400672,), (1381400673,), (1381400711,), (1381400712,), (1381400713,), (1381400714,), (1381400771,), (1381400782,), (1381400783,), (1381400784,), (1381400785,), (1381400786,), (1381400834,), (1381400835,), (1381400836,), (1381400837,), (1381400839,), (1381400873,), (1381400874,), (1381400875,), (1381400995,), (1381400996,), (1381400997,), (1381400998,), (1381401000,), (1381401043,), (1381401044,), (1381401045,), (1381401046,), (1381401047,), (1381401048,), (1381401085,), (1381401086,), (1381401087,), (1381401088,), (1381401089,), (1381401147,), (1381401148,), (1381401149,), (1381401150,), (1381401151,), (1381401152,), (1381401261,), (1381401262,), (1381401263,), (1381401264,), (1381401266,), (1381401319,), (1381401316,), (1381401317,), (1381401318,), (1381401373,), (1381401374,), (1381401375,), (1381401376,), (1381401377,), (1381401459,), (1381401460,), (1381401461,), (1381401462,), (1381401505,), (1381401506,), (1381401639,), (1381401641,), (1381401643,), (1381401645,), (1381401748,), (1381401749,), (1381401750,), (1381401751,), (1381401752,), (1381401794,), (1381401795,), (1381401796,), (1381401860,), (1381401861,), (1381401862,), (1381401863,), (1381401904,), (1381401905,), (1381401961,), (1381401962,), (1381401963,), (1381401964,), (1381401998,), (1381402019,), (1381402021,), (1381402023,), (1381402128,), (1381402129,), (1381402130,), (1381402131,), (1381402132,), (1381402190,), (1381402191,), (1381402192,), (1381402193,), (1381402228,), (1381402229,), (1381402230,), (1381402231,), (1381402305,), (1381402306,), (1381402307,), (1381402308,), (1381402365,), (1381402362,), (1381402363,), (1381402364,), (1381402407,), (1381402408,), (1381402409,), (1381402492,), (1381402494,), (1381402662,), (1381402663,), (1381402664,), (1381402721,), (1381402722,), (1381402723,), (1381402724,), (1381402725,), (1381402763,), (1381402764,), (1381402765,), (1381402766,), (1381402767,), (1381402905,), (1381402906,), (1381402907,), (1381402950,), (1381402951,), (1381402952,), (1381402953,), (1381402954,), (1381402955,), (1381403038,), (1381403039,), (1381403040,), (1381403041,), (1381403043,), (1381403044,), (1381403092,), (1381403093,), (1381403094,), (1381403171,), (1381403225,), (1381403957,), (1381410553,), (1381446037,), (1381446065,), (1381446068,), (1381446071,), (1381446074,), (1381446076,), (1381446078,), (1381446080,), (1381446081,), (1381446082,), (1381446083,), (1381446084,), (1381446085,), (1381446086,), (1381446087,), (1381446088,), (1381446089,), (1381446090,), (1381446091,), (1381446094,), (1381446095,), (1381446096,), (1381446098,), (1381446100,), (1381446102,), (1381446116,), (1381446117,), (1381446118,), (1381446119,), (1381446120,), (1381446121,), (1381446128,), (1381446129,), (1381446131,), (1381446133,), (1381446135,), (1381446137,), (1381446160,), (1381446161,), (1381446167,), (1381446169,), (1381446171,), (1381446173,), (1381446176,), (1381446179,), (1381446186,), (1381446187,), (1381446188,), (1381446190,), (1381446192,), (1381446194,), (1381446200,), (1381446202,), (1381446204,), (1381446206,), (1381445937,), (1381445939,), (1381445941,), (1381445943,), (1381445946,), (1381445949,), (1381445962,), (1381445963,), (1381445964,), (1381445965,), (1381445966,), (1381445967,), (1381445970,), (1381445971,), (1381445973,), (1381445974,), (1381445976,), (1381445978,), (1381445990,), (1381445991,), (1381445992,), (1381445993,), (1381445994,), (1381445995,), (1381445996,), (1381445997,), (1381445998,), (1381445999,), (1381446000,), (1381446001,), (1381446002,), (1381446003,), (1381446004,), (1381446005,), (1381446006,), (1381446007,), (1381446021,), (1381446022,), (1381446023,), (1381446024,), (1381446025,), (1381446026,), (1381446030,), (1381446031,), (1381446032,), (1381446033,), (1381446035,), (1381446055,), (1381446056,), (1381446057,), (1381446058,), (1381446060,), (1381446061,), (1381446156,), (1381446157,), (1381446158,), (1381446159,), (1381446267,), (1381446268,), (1381446269,), (1381446270,), (1381446382,), (1381446383,), (1381446384,), (1381446385,), (1381446386,), (1381446394,), (1381446395,), (1381446396,), (1381446397,), (1381446209,), (1381446212,), (1381446222,), (1381446223,), (1381446224,), (1381446225,), (1381446226,), (1381446227,), (1381446244,), (1381446246,), (1381446249,), (1381446252,), (1381446255,), (1381446257,), (1381446271,), (1381446272,), (1381446305,), (1381446306,), (1381446308,), (1381446309,), (1381446310,), (1381446311,), (1381446322,), (1381446324,), (1381446325,), (1381446326,), (1381446327,), (1381446328,), (1381446348,), (1381446349,), (1381446350,), (1381446351,), (1381446352,), (1381446353,), (1381446357,), (1381446358,), (1381446359,), (1381446360,), (1381446361,), (1381446362,), (1381446387,), (1381446392,), (1381446393,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04092025': {'nb_upload': 4, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26533428]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381446397, 1381446396, 1381446395, 1381446394] map_info['map_portfolio_photo'] : {26533428: [1381446397, 1381446396, 1381446395, 1381446394]} final : True mtd_id 4302 list_pids : [1381446397, 1381446396, 1381446395, 1381446394] Looping around the photos to save general results len do output : 1 /26533428Didn'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, '3664616') ('4302', '26533428', '1381446397', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446396', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446395', None, None, None, None, None, '3664616') ('4302', None, None, None, None, None, None, None, '3664616') ('4302', '26533428', '1381446394', None, None, None, None, None, '3664616') 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', None, '26533428', 'None', None, None, None, None, '3664616'), ('4302', '26533428', '1381446397', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446396', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446395', None, None, None, None, None, '3664616'), ('4302', '26533428', '1381446394', None, None, None, None, None, '3664616')] time used for this insertion : 0.03849601745605469 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.339095592498779 time spend to save output : 0.03868436813354492 total time spend for step 5 : 7.377779960632324 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 (3664616) 2.37user 1.43system 0:17.16elapsed 22%CPU (0avgtext+0avgdata 160176maxresident)k 432inputs+2864outputs (1major+72301minor)pagefaults 0swaps