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 : 4170888 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 (2914235) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2914235) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182476 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2914235'] with mtr_portfolio_ids : ['23182476'] and first list_photo_ids : [] new path : /proc/4170888/ Name: python3 Umask: 0002 State: R (running) Tgid: 4170888 Ngid: 0 Pid: 4170888 PPid: 4170887 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4170888 NSpid: 4170888 NSpgid: 4168419 NSsid: 4168419 VmPeak: 1107216 kB VmSize: 1107216 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97800 kB VmRSS: 97800 kB RssAnon: 60204 kB RssFile: 37596 kB RssShmem: 0 kB VmData: 865964 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 102 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4170888', 'Ngid': '0', 'Pid': '4170888', 'PPid': '4170887', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4170888', 'NSpid': '4170888', 'NSpgid': '4168419', 'NSsid': '4168419', 'VmPeak': '1107216 kB', 'VmSize': '1107216 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97800 kB', 'VmRSS': '97800 kB', 'RssAnon': '60204 kB', 'RssFile': '37596 kB', 'RssShmem': '0 kB', 'VmData': '865964 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '102'} ('datou_batch_current', '4170888', '1107216', '0', '1107216', '865964', '97800', b'', 'marlene', '2914235') 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 (23182476) 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 (2914235 ) ) 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 (23182476) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1359865480, 'portfolio_id': 23182476}, {'photo_id': 1359865472, 'portfolio_id': 23182476}, {'photo_id': 1359864947, 'portfolio_id': 23182476}] map_portfolio_id_photo_id: {23182476: [1359865480, 1359865472, 1359864947]} ##### 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.014805078506469727 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue May 20 22:08:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23182476) 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 : 23182476 get user id for portfolio 23182476 get sub ptf for main ptf 23182476, type 3726 and hashtags ['autre_refus', 'mal_croppe', 'cartonnette', 'Carton_brun', 'flou', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'kraft', 'metal', 'plastique', 'papier'] 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`=23182476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) 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`=23182476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__20052025_22_00_13_010227_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_3726_papier_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)[[23182476, 23182478, 3726, 0.5, 2107752406, 979], [23182476, 23182479, 3726, 0.5, 2107755527, 979], [23182476, 23182480, 3726, 0.5, 702398920, 979], [23182476, 23182481, 3726, 0.5, 2107753024, 979], [23182476, 23182482, 3726, 0.5, 492777938, 979], [23182476, 23182483, 3726, 0.5, 2107752385, 979], [23182476, 23182484, 3726, 0.5, 2107753020, 979], [23182476, 23182485, 3726, 0.5, 493012381, 979], [23182476, 23182486, 3726, 0.5, 493202403, 979], [23182476, 23182487, 3726, 0.5, 492628673, 979], [23182476, 23182488, 3726, 0.5, 492725882, 979], [23182476, 23182489, 3726, 0.5, 492668766, 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`=23182476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) 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`=23182476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 23182476, 'sub_port_id': 23182478, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464122, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'mal_croppe': {'main_port_id': 23182476, 'sub_port_id': 23182479, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464123, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'cartonnette': {'main_port_id': 23182476, 'sub_port_id': 23182480, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464124, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'Carton_brun': {'main_port_id': 23182476, 'sub_port_id': 23182481, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464125, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'flou': {'main_port_id': 23182476, 'sub_port_id': 23182482, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464126, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 23182476, 'sub_port_id': 23182483, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464127, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'Carton_gris': {'main_port_id': 23182476, 'sub_port_id': 23182484, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464128, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'environnement': {'main_port_id': 23182476, 'sub_port_id': 23182485, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464129, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'kraft': {'main_port_id': 23182476, 'sub_port_id': 23182486, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464130, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'metal': {'main_port_id': 23182476, 'sub_port_id': 23182487, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464131, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'plastique': {'main_port_id': 23182476, 'sub_port_id': 23182488, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464132, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}, 'papier': {'main_port_id': 23182476, 'sub_port_id': 23182489, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464133, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23182478 , 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=23182476 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 (23182478) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182479 , 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=23182476 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 (23182479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182480 , 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=23182476 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 (23182480) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182481 , 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=23182476 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 (23182481) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182482 , 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=23182476 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 (23182482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182483 , 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=23182476 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 (23182483) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182484 , 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=23182476 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 (23182484) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182485 , 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=23182476 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 (23182485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182486 , 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=23182476 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 (23182486) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182487 , 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=23182476 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 (23182487) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182488 , 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=23182476 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 (23182488) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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 23182489 , 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=23182476 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 (23182489) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23182476) result : ((1359864947,), (1359865472,), (1359865480,)) 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`=23182476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) 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`=23182476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__20052025_22_00_13_010227_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_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__20052025_22_00_13_010227_4417_papier_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)[[23182476, 23182490, 4417, 0.5, 2107752406, 979], [23182476, 23182491, 4417, 0.5, 2107755527, 979], [23182476, 23182492, 4417, 0.5, 702398920, 979], [23182476, 23182493, 4417, 0.5, 2107753024, 979], [23182476, 23182494, 4417, 0.5, 492777938, 979], [23182476, 23182495, 4417, 0.5, 2107752385, 979], [23182476, 23182496, 4417, 0.5, 2107753020, 979], [23182476, 23182497, 4417, 0.5, 493012381, 979], [23182476, 23182498, 4417, 0.5, 493202403, 979], [23182476, 23182499, 4417, 0.5, 492628673, 979], [23182476, 23182500, 4417, 0.5, 492725882, 979], [23182476, 23182501, 4417, 0.5, 492668766, 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`=23182476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) 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`=23182476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','cartonnette','Carton_brun','flou','Teint_Dans_La_Masse','Carton_gris','environnement','kraft','metal','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 23182476, 'sub_port_id': 23182490, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464134, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'mal_croppe': {'main_port_id': 23182476, 'sub_port_id': 23182491, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464135, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'cartonnette': {'main_port_id': 23182476, 'sub_port_id': 23182492, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464136, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'Carton_brun': {'main_port_id': 23182476, 'sub_port_id': 23182493, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464137, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'flou': {'main_port_id': 23182476, 'sub_port_id': 23182494, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464138, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 23182476, 'sub_port_id': 23182495, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464139, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'Carton_gris': {'main_port_id': 23182476, 'sub_port_id': 23182496, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464140, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'environnement': {'main_port_id': 23182476, 'sub_port_id': 23182497, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464141, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'kraft': {'main_port_id': 23182476, 'sub_port_id': 23182498, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464142, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'metal': {'main_port_id': 23182476, 'sub_port_id': 23182499, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464143, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'plastique': {'main_port_id': 23182476, 'sub_port_id': 23182500, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464144, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}, 'papier': {'main_port_id': 23182476, 'sub_port_id': 23182501, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15464145, 'last_updated_at': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 22, 9, 1), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 22, 9, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23182501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23182489 lien utilise dans velours : https://www.fotonower.com/velours/23182490,23182491,23182492,23182493,23182494,23182495,23182496,23182497,23182498,23182499,23182500,23182501?tags=autre_refus,mal_croppe,cartonnette,Carton_brun,flou,Teint_Dans_La_Masse,Carton_gris,environnement,kraft,metal,plastique,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23182476]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1359865480, 1359865472, 1359864947] map_info['map_portfolio_photo'] : {23182476: [1359865480, 1359865472, 1359864947]} final : False mtd_id 4302 list_pids : [1359865480, 1359865472, 1359864947] Looping around the photos to save general results len do output : 1 /23182476. 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, '2914235') ('4302', '23182476', '1359865480', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359865472', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359864947', None, None, None, None, None, '2914235') 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', None, '23182476', "{'autre_refus': 23182478, 'mal_croppe': 23182479, 'cartonnette': 23182480, 'Carton_brun': 23182481, 'flou': 23182482, 'Teint_Dans_La_Masse': 23182483, 'Carton_gris': 23182484, 'environnement': 23182485, 'kraft': 23182486, 'metal': 23182487, 'plastique': 23182488, 'papier': 23182489}", None, None, None, None, '2914235'), ('4302', '23182476', '1359865480', None, None, None, None, None, '2914235'), ('4302', '23182476', '1359865472', None, None, None, None, None, '2914235'), ('4302', '23182476', '1359864947', None, None, None, None, None, '2914235')] time used for this insertion : 0.034670352935791016 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.261248826980591 time spend to save output : 0.03495144844055176 total time spend for step 1 : 2.2962002754211426 step2:final Tue May 20 22:09:01 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 (23182476) 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 23182476 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1359864947,1359865480,1359865472); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23182476]) Inside saveOutput : final : False verbose : True original output for save of step final : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ('0.0',)} new output for save of step final : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ('0.0',)} [1359865480, 1359865472, 1359864947] map_info['map_portfolio_photo'] : {23182476: [1359865480, 1359865472, 1359864947]} final : False mtd_id 4302 list_pids : [1359865480, 1359865472, 1359864947] Looping around the photos to save general results len do output : 3 /1359865480.Didn't retrieve data . /1359865472.Didn't retrieve data . /1359864947.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, '2914235') ('4302', '23182476', '1359865480', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359865472', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359864947', None, None, None, None, None, '2914235') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '23182476', '1359865480', '0.0', None, None, None, None, '2914235'), ('4302', '23182476', '1359865472', '0.0', None, None, None, None, '2914235'), ('4302', '23182476', '1359864947', '0.0', None, None, None, None, '2914235')] time used for this insertion : 0.018598556518554688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.013253211975097656 time spend to save output : 0.018907785415649414 total time spend for step 2 : 0.03216099739074707 step3:velours_tree Tue May 20 22:09:01 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 : {23182476: [{'autre_refus': 23182478, 'mal_croppe': 23182479, 'cartonnette': 23182480, 'Carton_brun': 23182481, 'flou': 23182482, 'Teint_Dans_La_Masse': 23182483, 'Carton_gris': 23182484, 'environnement': 23182485, 'kraft': 23182486, 'metal': 23182487, 'plastique': 23182488, 'papier': 23182489}]} input_args_next_step : {23182476: ()} output_args : {23182476: [{'autre_refus': 23182478, 'mal_croppe': 23182479, 'cartonnette': 23182480, 'Carton_brun': 23182481, 'flou': 23182482, 'Teint_Dans_La_Masse': 23182483, 'Carton_gris': 23182484, 'environnement': 23182485, 'kraft': 23182486, 'metal': 23182487, 'plastique': 23182488, 'papier': 23182489}]} args : 23182476 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 : ({'autre_refus': 23182478, 'mal_croppe': 23182479, 'cartonnette': 23182480, 'Carton_brun': 23182481, 'flou': 23182482, 'Teint_Dans_La_Masse': 23182483, 'Carton_gris': 23182484, 'environnement': 23182485, 'kraft': 23182486, 'metal': 23182487, 'plastique': 23182488, 'papier': 23182489},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23182476) 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([23182476]) 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.2879159450531006 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.2879617214202881 step4:send_mail_cod Tue May 20 22:09:01 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 : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ('0.0',)} input_args_next_step : {1359865480: ()} output_args : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ('0.0',)} args : 1359865480 depend.output_id : 0 input_args_next_step : {1359865480: ('0.0',), 1359865472: ()} output_args : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ('0.0',)} args : 1359865472 depend.output_id : 0 input_args_next_step : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ()} output_args : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ('0.0',)} args : 1359864947 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 : {23182476: [{'autre_refus': 23182478, 'mal_croppe': 23182479, 'cartonnette': 23182480, 'Carton_brun': 23182481, 'flou': 23182482, 'Teint_Dans_La_Masse': 23182483, 'Carton_gris': 23182484, 'environnement': 23182485, 'kraft': 23182486, 'metal': 23182487, 'plastique': 23182488, 'papier': 23182489}]} input_args_next_step : {1359865480: ('0.0',), 1359865472: ('0.0',), 1359864947: ('0.0',), 23182476: ()} output_args : {23182476: [{'autre_refus': 23182478, 'mal_croppe': 23182479, 'cartonnette': 23182480, 'Carton_brun': 23182481, 'flou': 23182482, 'Teint_Dans_La_Masse': 23182483, 'Carton_gris': 23182484, 'environnement': 23182485, 'kraft': 23182486, 'metal': 23182487, 'plastique': 23182488, 'papier': 23182489}]} args : 23182476 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 :4, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23182476) 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 (1359865480,1359865472,1359864947) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1359864947 begin to download photo : 1359865472 begin to download photo : 1359865480 download finish for photo 1359865472 download finish for photo 1359864947 download finish for photo 1359865480 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette231824781747771741/ imagette231824791747771741/ imagette231824801747771741/ imagette231824821747771741/ imagette231824861747771741/ imagette231824871747771741/ imagette231824881747771741/ imagette231824811747771741/ imagette231824831747771741/ imagette231824841747771741/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P23182476_20-05-2025_22_09_01.pdf 23182478 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=23182478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824781747771741 23182479 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=23182479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824791747771741 23182480 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=23182480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824801747771741 23182482 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=23182482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824821747771741 23182486 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=23182486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824861747771741 23182487 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=23182487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824871747771741 23182488 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=23182488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824881747771741 23182481 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=23182481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824811747771741 23182483 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=23182483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824831747771741 23182484 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=23182484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231824841747771741 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23182476 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23182490,23182491,23182492,23182493,23182494,23182495,23182496,23182497,23182498,23182499,23182500,23182501?tags=autre_refus,mal_croppe,cartonnette,Carton_brun,flou,Teint_Dans_La_Masse,Carton_gris,environnement,kraft,metal,plastique,papier your option no_mail is active, we will not send the real mail to your client args[1359865480] : ('0.0',) no score found for photo 1359865480 We are sending mail with results at report@fotonower.com args[1359865472] : ('0.0',) no score found for photo 1359865472 We are sending mail with results at report@fotonower.com args[1359864947] : ('0.0',) no score found for photo 1359864947 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=23182476 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_P23182476_20-05-2025_22_09_01.pdf results_Auto_P23182476_20-05-2025_22_09_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23182476_20-05-2025_22_09_01.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','23182476','results_Auto_P23182476_20-05-2025_22_09_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23182476_20-05-2025_22_09_01.pdf','pdf','','0.05','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23182476]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1359865480, 1359865472, 1359864947] map_info['map_portfolio_photo'] : {23182476: [1359865480, 1359865472, 1359864947]} final : False mtd_id 4302 list_pids : [1359865480, 1359865472, 1359864947] 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, '2914235') ('4302', '23182476', '1359865480', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359865472', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359864947', None, None, None, None, None, '2914235') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '23182476', '1359865480', None, None, None, None, None, '2914235'), ('4302', '23182476', '1359865472', None, None, None, None, None, '2914235'), ('4302', '23182476', '1359864947', None, None, None, None, None, '2914235')] time used for this insertion : 0.02649211883544922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8841941356658936 time spend to save output : 0.02667522430419922 total time spend for step 4 : 0.9108693599700928 step5:split_time_score Tue May 20 22:09:02 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 : ['23182476'] 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 : [('23182476',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23182476) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1359865472: {'path': 'temp/1747771741_4170888_1359865472_ca71da7fc2906e8000f3c4c4eb7a682b.jpg', 'extension': 'jpg'}, 1359864947: {'path': 'temp/1747771741_4170888_1359864947_d710e7c74434f894d2bb176d1ca99d19.jpg', 'extension': 'jpg'}, 1359865480: {'path': 'temp/1747771741_4170888_1359865480_021eec983dc1674480026d981a470ac5.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 = 23182476; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 23182476 group by h (('22', 3),) 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=23182476 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 (23182476) 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 (23182476) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20052025 23182476 Nombre de photos uploadées : 3 / 23040 (0%) 20052025 23182476 Nombre de photos taguées (types de déchets): 0 / 3 (0%) 20052025 23182476 Nombre de photos taguées (volume) : 0 / 3 (0%) [{'photo_id': 1359864947, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/d710e7c74434f894d2bb176d1ca99d19.jpg', 'username': None, 'uploaded_at': 1747771507, 'text': 'image_20052025_22_00_13_10227.jpg'}, {'photo_id': 1359865480, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/021eec983dc1674480026d981a470ac5.jpg', 'username': None, 'uploaded_at': 1747771627, 'text': 'image_20052025_22_04_04_10162.jpg'}, {'photo_id': 1359865472, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/ca71da7fc2906e8000f3c4c4eb7a682b.jpg', 'username': None, 'uploaded_at': 1747771627, 'text': 'image_20052025_22_06_24_10132.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??? elapsed_time : fill_and_build_computed_from_old_data 0.00022172927856445312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23182476, '2025-05-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1820738,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03741812705993652 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= 1820738 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23148156, 'dashboard_result_id': 10757114, '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_P23148156_20-05-2025_05_58_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23148157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23148158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23148159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23148160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23148161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23148162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23148163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23148164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23148165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23148166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23148167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23148168, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23150574, 'dashboard_result_id': 10757115, '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_P23150574_20-05-2025_05_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23150582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150586, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23150983, 'dashboard_result_id': 10757116, '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_P23150983_20-05-2025_05_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23150987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150998, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23151453, 'dashboard_result_id': 10757117, '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_P23151453_20-05-2025_06_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151488, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151495, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23151856, 'dashboard_result_id': 10757118, '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_P23151856_20-05-2025_06_17_49.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151890, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23152505, 'dashboard_result_id': 10757119, '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_P23152505_20-05-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23152512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23152513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23152514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23152515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23152516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23152517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23152518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23152519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23152520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23152521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23152522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23152523, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23153069, 'dashboard_result_id': 10757120, '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_P23153069_20-05-2025_06_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23153111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153122, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23153614, 'dashboard_result_id': 10757121, '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_P23153614_20-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23153701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153706, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23154137, 'dashboard_result_id': 10757122, '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_P23154137_20-05-2025_07_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154184, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23154854, 'dashboard_result_id': 10757123, '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_P23154854_20-05-2025_07_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154915, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23155663, 'dashboard_result_id': 10757124, '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_P23155663_20-05-2025_07_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23155673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23155674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23155675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23155676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23155677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23155678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23155679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23155680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23155681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23155682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23155683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23155684, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23156379, 'dashboard_result_id': 10757125, '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_P23156379_20-05-2025_08_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23156415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23156416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23156417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23156418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23156419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23156420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23156421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23156422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23156423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23156424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23156425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23156426, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23157241, 'dashboard_result_id': 10757126, '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_P23157241_20-05-2025_08_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23157260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157271, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23157946, 'dashboard_result_id': 10757127, '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_P23157946_20-05-2025_08_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23157984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157990, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23158455, 'dashboard_result_id': 10757128, '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_P23158455_20-05-2025_08_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23158498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23158499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23158500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23158501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23158502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23158503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23158504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23158505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23158506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23158507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23158508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23158509, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23159074, 'dashboard_result_id': 10757129, '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_P23159074_20-05-2025_09_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23159118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23159119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23159120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23159121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23159122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23159123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23159124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23159126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23159127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23159128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23159129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23159130, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23160766, 'dashboard_result_id': 10757130, '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_P23160766_20-05-2025_09_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23160780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23160781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23160782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23160783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23160784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23160785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23160786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23160787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23160788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23160789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23160790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23160791, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23161118, 'dashboard_result_id': 10757131, '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_P23161118_20-05-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161142, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23161565, 'dashboard_result_id': 10757132, '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_P23161565_20-05-2025_10_17_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161601, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23161888, 'dashboard_result_id': 10757133, '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_P23161888_20-05-2025_10_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161906, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23162625, 'dashboard_result_id': 10757134, '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_P23162625_20-05-2025_10_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23162655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23162656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23162657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23162658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23162659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23162660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23162661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23162662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23162663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23162664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23162665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23162666, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23163328, 'dashboard_result_id': 10757135, '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_P23163328_20-05-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23163362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23163363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23163364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23163365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23163366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23163367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23163368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23163369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23163370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23163371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23163373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23163374, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23163901, 'dashboard_result_id': 10757136, '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_P23163901_20-05-2025_11_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23163935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23163936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23163937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23163938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23163939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23163940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23163941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23163942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23163943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23163944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23163945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23163946, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23164435, 'dashboard_result_id': 10757137, '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_P23164435_20-05-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23164447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23164448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23164449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23164450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23164451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23164452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23164453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23164454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23164455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23164456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23164457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23164458, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23164754, 'dashboard_result_id': 10757138, '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_P23164754_20-05-2025_11_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23164782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23164783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23164784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23164785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23164786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23164787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23164788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23164789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23164790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23164791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23164792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23164793, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23165157, 'dashboard_result_id': 10757139, '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_P23165157_20-05-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23165186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23165187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23165188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23165189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23165190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23165191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23165192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23165193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23165194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23165195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23165196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23165197, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23165759, 'dashboard_result_id': 10757140, '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_P23165759_20-05-2025_12_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23165772, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23165773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23165774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23165775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23165776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23165777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23165778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23165779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23165780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23165781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23165782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23165783, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23167273, 'dashboard_result_id': 10757141, '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_P23167273_20-05-2025_13_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23167281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167286, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23167439, 'dashboard_result_id': 10757142, '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_P23167439_20-05-2025_14_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23167455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167458, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23167741, 'dashboard_result_id': 10757143, '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_P23167741_20-05-2025_14_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23167753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167764, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23168087, 'dashboard_result_id': 10757144, '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_P23168087_20-05-2025_14_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23168102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23168103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23168104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23168105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23168106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23168107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23168108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23168109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23168110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23168111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23168112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23168113, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23168481, 'dashboard_result_id': 10757145, '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_P23168481_20-05-2025_14_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23168506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23168507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23168508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23168509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23168510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23168511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23168512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23168513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23168514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23168515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23168516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23168517, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23169091, 'dashboard_result_id': 10757146, '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_P23169091_20-05-2025_15_03_51.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23169154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23169155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23169156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23169157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23169158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23169159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23169160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23169161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23169162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23169163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23169164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23169165, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23169661, 'dashboard_result_id': 10757147, '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_P23169661_20-05-2025_15_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23169708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23169709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23169710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23169711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23169712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23169713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23169714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23169715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23169716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23169717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23169718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23169719, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23170312, 'dashboard_result_id': 10757148, '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_P23170312_20-05-2025_15_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23170338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23170339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23170340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23170341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23170342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23170343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23170344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23170345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23170346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23170347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23170348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23170349, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23170903, 'dashboard_result_id': 10757149, '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_P23170903_20-05-2025_15_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23170918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23170919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23170921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23170922, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23170923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23170924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23170925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23170926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23170927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23170928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23170929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23170930, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23171365, 'dashboard_result_id': 10757150, '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_P23171365_20-05-2025_16_03_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23171408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23171409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23171410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23171411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23171412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23171413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23171414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23171415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23171416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23171417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23171418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23171419, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23171907, 'dashboard_result_id': 10757151, '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_P23171907_20-05-2025_16_17_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23171914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23171915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23171916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23171917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23171918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23171919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23171920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23171921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23171922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23171923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23171924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23171925, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23172384, 'dashboard_result_id': 10757152, '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_P23172384_20-05-2025_16_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23172386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23172387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23172388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23172389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23172390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23172391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23172392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23172393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23172394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23172395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23172396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23172397, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23172892, 'dashboard_result_id': 10757153, '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_P23172892_20-05-2025_16_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23172926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23172927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23172928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23172929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23172930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23172931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23172932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23172933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23172934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23172935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23172936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23172937, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23173620, 'dashboard_result_id': 10757154, '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_P23173620_20-05-2025_17_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23173644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23173645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23173646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23173647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23173648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23173649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23173650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23173651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23173652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23173653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23173654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23173655, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23174737, 'dashboard_result_id': 10757155, '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_P23174737_20-05-2025_17_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23174760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23174761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23174762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23174763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23174764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23174765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23174766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23174767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23174768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23174769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23174770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23174771, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23175640, 'dashboard_result_id': 10757156, '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_P23175640_20-05-2025_18_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23175665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23175666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23175667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23175668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23175669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23175670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23175671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23175672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23175673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23175674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23175675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23175676, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23175778, 'dashboard_result_id': 10757157, '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_P23175778_20-05-2025_18_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23175803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23175804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23175805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23175806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23175807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23175808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23175809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23175810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23175811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23175812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23175813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23175814, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23176118, 'dashboard_result_id': 10757158, '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_P23176118_20-05-2025_18_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23176189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23176190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23176191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23176192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23176193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23176194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23176195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23176196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23176197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23176198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23176199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23176200, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23176567, 'dashboard_result_id': 10757159, '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_P23176567_20-05-2025_19_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23176574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23176575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23176576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23176577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23176578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23176579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23176580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23176581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23176582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23176583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23176584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23176585, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23177023, 'dashboard_result_id': 10757160, '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_P23177023_20-05-2025_19_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23177050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23177051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23177052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23177053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23177054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23177055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23177056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23177057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23177058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23177059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23177060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23177061, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23177719, 'dashboard_result_id': 10757161, '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_P23177719_20-05-2025_19_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23177771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23177772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23177773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23177774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23177775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23177776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23177777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23177778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23177779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23177780, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23177781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23177782, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23178323, 'dashboard_result_id': 10757162, '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_P23178323_20-05-2025_19_49_44.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23178343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23178344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23178345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23178346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23178347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23178348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23178349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23178350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23178351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23178352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23178353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23178354, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23178882, 'dashboard_result_id': 10757163, '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_P23178882_20-05-2025_20_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23178889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23178890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23178891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23178892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23178893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23178894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23178895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23178896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23178897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23178898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23178899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23178900, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23179240, 'dashboard_result_id': 10757164, '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_P23179240_20-05-2025_20_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23179289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23179290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23179291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23179292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23179293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23179294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23179296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23179297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23179298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23179299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23179300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23179301, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23179753, 'dashboard_result_id': 10757165, '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_P23179753_20-05-2025_20_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23179772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23179773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23179774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23179775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23179776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23179777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23179778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23179779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23179780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23179781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23179782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23179783, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23180224, 'dashboard_result_id': 10757166, '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_P23180224_20-05-2025_21_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23180264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23180265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23180266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23180268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23180269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23180270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23180271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23180272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23180273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23180274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23180275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23180276, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23181348, 'dashboard_result_id': 10757167, '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_P23181348_20-05-2025_21_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23181351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23181352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23181353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23181354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23181355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23181356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23181357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23181358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23181359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23181360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23181361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23181362, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23181509, 'dashboard_result_id': 10757168, '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_P23181509_20-05-2025_21_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23181513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23181514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23181515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23181516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23181517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23181518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23181519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23181520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23181521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23181522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23181523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23181524, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23182228, 'dashboard_result_id': 10757169, '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_P23182228_20-05-2025_22_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23182233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23182234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23182235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23182236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23182237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23182238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23182239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23182240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23182241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23182242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23182243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23182244, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1831446, 'mtr_portfolio_id': 23182476, 'dashboard_result_id': 10757170, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 23148156 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': 2900956, 'mtr_portfolio_id': 23148156, 'created_at': datetime.datetime(2025, 5, 20, 5, 58), 'result': '0.03466790997904054', 'result_long': None, 'result_double': None}] Qualite : 0.03466790997904054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23148156 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23148156_20-05-2025_05_58_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23148156 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_P23148156_20-05-2025_05_58_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23148157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23148158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23148159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23148160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23148161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23148162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23148163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23148164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23148165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23148166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23148167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23148168, 'pht': 3726}}" where mtr_portfolio_id = 23148156 and dashboard_run_id = 1831446 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`=23148156 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757114, 0.03466790997904054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23148156_20-05-2025_05_58_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23148157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23148158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23148159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23148160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23148161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23148162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23148163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23148164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23148165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23148166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23148167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23148168, '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 = 23150574 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': 2900958, 'mtr_portfolio_id': 23150574, 'created_at': datetime.datetime(2025, 5, 20, 5, 59, 28), 'result': '0.037850643117095364', 'result_long': None, 'result_double': None}] Qualite : 0.037850643117095364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23150574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150574_20-05-2025_05_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23150574 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_P23150574_20-05-2025_05_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23150582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150586, 'pht': 3726}}" where mtr_portfolio_id = 23150574 and dashboard_run_id = 1831446 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`=23150574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757115, 0.037850643117095364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150574_20-05-2025_05_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23150582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150586, '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 = 23150983 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': 2900908, 'mtr_portfolio_id': 23150983, 'created_at': datetime.datetime(2025, 5, 20, 5, 48, 56), 'result': '0.045740393989022105', 'result_long': None, 'result_double': None}] Qualite : 0.045740393989022105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23150983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150983_20-05-2025_05_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23150983 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_P23150983_20-05-2025_05_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23150987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150998, 'pht': 3726}}" where mtr_portfolio_id = 23150983 and dashboard_run_id = 1831446 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`=23150983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757116, 0.045740393989022105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150983_20-05-2025_05_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23150987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150998, '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 = 23151453 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 = 23151453 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 = 23151453 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23151453 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 = 23151453 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 = 23151453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23151453_20-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23151453 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_P23151453_20-05-2025_06_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151488, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151495, 'pht': 3726}}" where mtr_portfolio_id = 23151453 and dashboard_run_id = 1831446 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 = 23151856 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': 2901204, 'mtr_portfolio_id': 23151856, 'created_at': datetime.datetime(2025, 5, 20, 6, 17, 48), 'result': '0.05431352054860411', 'result_long': None, 'result_double': None}] Qualite : 0.05431352054860411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23151856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23151856_20-05-2025_06_17_49.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23151856 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_P23151856_20-05-2025_06_17_49.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151890, 'pht': 3726}}" where mtr_portfolio_id = 23151856 and dashboard_run_id = 1831446 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`=23151856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757118, 0.05431352054860411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23151856_20-05-2025_06_17_49.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151890, '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 = 23152505 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': 2901336, 'mtr_portfolio_id': 23152505, 'created_at': datetime.datetime(2025, 5, 20, 6, 32, 59), 'result': '0.0350929972284991', 'result_long': None, 'result_double': None}] Qualite : 0.0350929972284991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23152505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23152505_20-05-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23152505 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_P23152505_20-05-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23152512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23152513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23152514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23152515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23152516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23152517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23152518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23152519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23152520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23152521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23152522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23152523, 'pht': 3726}}" where mtr_portfolio_id = 23152505 and dashboard_run_id = 1831446 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`=23152505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757119, 0.0350929972284991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23152505_20-05-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23152512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23152513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23152514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23152515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23152516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23152517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23152518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23152519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23152520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23152521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23152522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23152523, '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 = 23153069 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': 2901569, 'mtr_portfolio_id': 23153069, 'created_at': datetime.datetime(2025, 5, 20, 6, 49), 'result': '0.029204111003464393', 'result_long': None, 'result_double': None}] Qualite : 0.029204111003464393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23153069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153069_20-05-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23153069 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_P23153069_20-05-2025_06_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23153111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153122, 'pht': 3726}}" where mtr_portfolio_id = 23153069 and dashboard_run_id = 1831446 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`=23153069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757120, 0.029204111003464393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153069_20-05-2025_06_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23153111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153122, '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 = 23153614 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': 2901827, 'mtr_portfolio_id': 23153614, 'created_at': datetime.datetime(2025, 5, 20, 7, 2, 59), 'result': '0.04354042014532871', 'result_long': None, 'result_double': None}] Qualite : 0.04354042014532871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23153614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153614_20-05-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23153614 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_P23153614_20-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23153701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153706, 'pht': 3726}}" where mtr_portfolio_id = 23153614 and dashboard_run_id = 1831446 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`=23153614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757121, 0.04354042014532871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153614_20-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23153701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153706, '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 = 23154137 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': 2902043, 'mtr_portfolio_id': 23154137, 'created_at': datetime.datetime(2025, 5, 20, 7, 18, 57), 'result': '0.0733810156177674', 'result_long': None, 'result_double': None}] Qualite : 0.0733810156177674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23154137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23154137_20-05-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23154137 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_P23154137_20-05-2025_07_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154184, 'pht': 3726}}" where mtr_portfolio_id = 23154137 and dashboard_run_id = 1831446 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`=23154137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757122, 0.0733810156177674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23154137_20-05-2025_07_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154184, '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 = 23154854 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': 2902371, 'mtr_portfolio_id': 23154854, 'created_at': datetime.datetime(2025, 5, 20, 7, 33), 'result': '0.03287914189280499', 'result_long': None, 'result_double': None}] Qualite : 0.03287914189280499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23154854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23154854_20-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23154854 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_P23154854_20-05-2025_07_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154915, 'pht': 3726}}" where mtr_portfolio_id = 23154854 and dashboard_run_id = 1831446 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`=23154854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757123, 0.03287914189280499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23154854_20-05-2025_07_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154915, '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 = 23155663 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': 2902632, 'mtr_portfolio_id': 23155663, 'created_at': datetime.datetime(2025, 5, 20, 7, 46, 59), 'result': '0.07698562797819863', 'result_long': None, 'result_double': None}] Qualite : 0.07698562797819863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23155663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23155663_20-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23155663 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_P23155663_20-05-2025_07_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23155673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23155674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23155675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23155676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23155677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23155678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23155679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23155680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23155681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23155682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23155683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23155684, 'pht': 3726}}" where mtr_portfolio_id = 23155663 and dashboard_run_id = 1831446 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`=23155663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757124, 0.07698562797819863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23155663_20-05-2025_07_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23155673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23155674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23155675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23155676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23155677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23155678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23155679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23155680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23155681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23155682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23155683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23155684, '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 = 23156379 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': 2902882, 'mtr_portfolio_id': 23156379, 'created_at': datetime.datetime(2025, 5, 20, 8, 2, 58), 'result': '0.0665541930337187', 'result_long': None, 'result_double': None}] Qualite : 0.0665541930337187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23156379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23156379_20-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23156379 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_P23156379_20-05-2025_08_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23156415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23156416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23156417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23156418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23156419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23156420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23156421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23156422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23156423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23156424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23156425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23156426, 'pht': 3726}}" where mtr_portfolio_id = 23156379 and dashboard_run_id = 1831446 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`=23156379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757125, 0.0665541930337187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23156379_20-05-2025_08_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23156415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23156416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23156417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23156418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23156419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23156420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23156421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23156422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23156423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23156424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23156425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23156426, '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 = 23157241 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': 2903221, 'mtr_portfolio_id': 23157241, 'created_at': datetime.datetime(2025, 5, 20, 8, 16, 59), 'result': '0.02672036600156594', 'result_long': None, 'result_double': None}] Qualite : 0.02672036600156594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23157241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157241_20-05-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23157241 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_P23157241_20-05-2025_08_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23157260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157271, 'pht': 3726}}" where mtr_portfolio_id = 23157241 and dashboard_run_id = 1831446 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`=23157241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757126, 0.02672036600156594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157241_20-05-2025_08_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23157260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157271, '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 = 23157946 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': 2903452, 'mtr_portfolio_id': 23157946, 'created_at': datetime.datetime(2025, 5, 20, 8, 33, 1), 'result': '0.057349700625851464', 'result_long': None, 'result_double': None}] Qualite : 0.057349700625851464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23157946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157946_20-05-2025_08_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23157946 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_P23157946_20-05-2025_08_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23157984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157990, 'pht': 3726}}" where mtr_portfolio_id = 23157946 and dashboard_run_id = 1831446 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`=23157946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757127, 0.057349700625851464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157946_20-05-2025_08_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23157984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157990, '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 = 23158455 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': 2903684, 'mtr_portfolio_id': 23158455, 'created_at': datetime.datetime(2025, 5, 20, 8, 49), 'result': '0.05359131016436153', 'result_long': None, 'result_double': None}] Qualite : 0.05359131016436153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23158455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23158455_20-05-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23158455 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_P23158455_20-05-2025_08_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23158498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23158499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23158500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23158501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23158502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23158503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23158504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23158505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23158506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23158507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23158508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23158509, 'pht': 3726}}" where mtr_portfolio_id = 23158455 and dashboard_run_id = 1831446 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`=23158455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757128, 0.05359131016436153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23158455_20-05-2025_08_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23158498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23158499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23158500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23158501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23158502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23158503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23158504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23158505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23158506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23158507, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23158508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23158509, '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 = 23159074 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': 2903924, 'mtr_portfolio_id': 23159074, 'created_at': datetime.datetime(2025, 5, 20, 9, 2, 59), 'result': '0.021998699145242214', 'result_long': None, 'result_double': None}] Qualite : 0.021998699145242214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23159074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23159074_20-05-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23159074 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_P23159074_20-05-2025_09_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23159118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23159119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23159120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23159121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23159122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23159123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23159124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23159126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23159127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23159128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23159129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23159130, 'pht': 3726}}" where mtr_portfolio_id = 23159074 and dashboard_run_id = 1831446 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`=23159074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757129, 0.021998699145242214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23159074_20-05-2025_09_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23159118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23159119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23159120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23159121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23159122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23159123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23159124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23159126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23159127, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23159128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23159129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23159130, '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 = 23160766 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': 2904580, 'mtr_portfolio_id': 23160766, 'created_at': datetime.datetime(2025, 5, 20, 9, 46, 59), 'result': '0.04582164636035635', 'result_long': None, 'result_double': None}] Qualite : 0.04582164636035635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23160766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23160766_20-05-2025_09_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23160766 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_P23160766_20-05-2025_09_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23160780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23160781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23160782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23160783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23160784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23160785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23160786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23160787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23160788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23160789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23160790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23160791, 'pht': 3726}}" where mtr_portfolio_id = 23160766 and dashboard_run_id = 1831446 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`=23160766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757130, 0.04582164636035635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23160766_20-05-2025_09_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23160780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23160781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23160782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23160783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23160784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23160785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23160786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23160787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23160788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23160789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23160790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23160791, '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 = 23161118 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': 2904653, 'mtr_portfolio_id': 23161118, 'created_at': datetime.datetime(2025, 5, 20, 10, 2, 59), 'result': '0.02462445552549341', 'result_long': None, 'result_double': None}] Qualite : 0.02462445552549341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23161118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23161118_20-05-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23161118 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_P23161118_20-05-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161142, 'pht': 3726}}" where mtr_portfolio_id = 23161118 and dashboard_run_id = 1831446 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`=23161118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757131, 0.02462445552549341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23161118_20-05-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161134, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161142, '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 = 23161565 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': 2904781, 'mtr_portfolio_id': 23161565, 'created_at': datetime.datetime(2025, 5, 20, 10, 17, 30), 'result': '0.06210679542883311', 'result_long': None, 'result_double': None}] Qualite : 0.06210679542883311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23161565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23161565_20-05-2025_10_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23161565 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_P23161565_20-05-2025_10_17_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161601, 'pht': 3726}}" where mtr_portfolio_id = 23161565 and dashboard_run_id = 1831446 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`=23161565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757132, 0.06210679542883311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23161565_20-05-2025_10_17_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161601, '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 = 23161888 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': 2904903, 'mtr_portfolio_id': 23161888, 'created_at': datetime.datetime(2025, 5, 20, 10, 32, 59), 'result': '0.03310305586544385', 'result_long': None, 'result_double': None}] Qualite : 0.03310305586544385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23161888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23161888_20-05-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23161888 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_P23161888_20-05-2025_10_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161906, 'pht': 3726}}" where mtr_portfolio_id = 23161888 and dashboard_run_id = 1831446 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`=23161888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757133, 0.03310305586544385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23161888_20-05-2025_10_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23161895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23161896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23161897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23161898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23161899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23161900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23161901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23161902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23161903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23161904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23161905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23161906, '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 = 23162625 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': 2905152, 'mtr_portfolio_id': 23162625, 'created_at': datetime.datetime(2025, 5, 20, 10, 48, 58), 'result': '0.01997663354047208', 'result_long': None, 'result_double': None}] Qualite : 0.01997663354047208 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23162625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23162625_20-05-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23162625 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_P23162625_20-05-2025_10_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23162655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23162656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23162657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23162658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23162659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23162660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23162661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23162662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23162663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23162664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23162665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23162666, 'pht': 3726}}" where mtr_portfolio_id = 23162625 and dashboard_run_id = 1831446 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`=23162625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757134, 0.01997663354047208, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23162625_20-05-2025_10_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23162655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23162656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23162657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23162658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23162659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23162660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23162661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23162662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23162663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23162664, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23162665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23162666, '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 = 23163328 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': 2905550, 'mtr_portfolio_id': 23163328, 'created_at': datetime.datetime(2025, 5, 20, 11, 2, 58), 'result': '0.01793255760048656', 'result_long': None, 'result_double': None}] Qualite : 0.01793255760048656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23163328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23163328_20-05-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23163328 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_P23163328_20-05-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23163362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23163363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23163364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23163365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23163366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23163367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23163368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23163369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23163370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23163371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23163373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23163374, 'pht': 3726}}" where mtr_portfolio_id = 23163328 and dashboard_run_id = 1831446 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`=23163328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757135, 0.01793255760048656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23163328_20-05-2025_11_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23163362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23163363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23163364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23163365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23163366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23163367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23163368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23163369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23163370, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23163371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23163373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23163374, '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 = 23163901 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': 2905870, 'mtr_portfolio_id': 23163901, 'created_at': datetime.datetime(2025, 5, 20, 11, 16, 58), 'result': '0.014444493658017366', 'result_long': None, 'result_double': None}] Qualite : 0.014444493658017366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23163901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23163901_20-05-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23163901 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_P23163901_20-05-2025_11_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23163935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23163936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23163937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23163938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23163939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23163940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23163941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23163942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23163943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23163944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23163945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23163946, 'pht': 3726}}" where mtr_portfolio_id = 23163901 and dashboard_run_id = 1831446 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`=23163901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757136, 0.014444493658017366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23163901_20-05-2025_11_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23163935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23163936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23163937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23163938, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23163939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23163940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23163941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23163942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23163943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23163944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23163945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23163946, '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 = 23164435 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 = 23164435 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 = 23164435 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23164435 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 = 23164435 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 = 23164435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23164435_20-05-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23164435 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_P23164435_20-05-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23164447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23164448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23164449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23164450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23164451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23164452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23164453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23164454, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23164455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23164456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23164457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23164458, 'pht': 3726}}" where mtr_portfolio_id = 23164435 and dashboard_run_id = 1831446 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 = 23164754 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 = 23164754 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 = 23164754 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23164754 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 = 23164754 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 = 23164754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23164754_20-05-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23164754 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_P23164754_20-05-2025_11_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23164782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23164783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23164784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23164785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23164786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23164787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23164788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23164789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23164790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23164791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23164792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23164793, 'pht': 3726}}" where mtr_portfolio_id = 23164754 and dashboard_run_id = 1831446 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 = 23165157 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 = 23165157 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 = 23165157 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23165157 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 = 23165157 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 = 23165157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23165157_20-05-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23165157 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_P23165157_20-05-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23165186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23165187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23165188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23165189, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23165190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23165191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23165192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23165193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23165194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23165195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23165196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23165197, 'pht': 3726}}" where mtr_portfolio_id = 23165157 and dashboard_run_id = 1831446 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 = 23165759 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 = 23165759 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 = 23165759 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23165759 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 = 23165759 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 = 23165759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23165759_20-05-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23165759 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_P23165759_20-05-2025_12_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23165772, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23165773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23165774, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23165775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23165776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23165777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23165778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23165779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23165780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23165781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23165782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23165783, 'pht': 3726}}" where mtr_portfolio_id = 23165759 and dashboard_run_id = 1831446 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 = 23167273 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': 2908296, 'mtr_portfolio_id': 23167273, 'created_at': datetime.datetime(2025, 5, 20, 13, 46, 59), 'result': '0.07629793076491675', 'result_long': None, 'result_double': None}] Qualite : 0.07629793076491675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23167273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23167273_20-05-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23167273 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_P23167273_20-05-2025_13_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23167281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167286, 'pht': 3726}}" where mtr_portfolio_id = 23167273 and dashboard_run_id = 1831446 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`=23167273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757141, 0.07629793076491675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23167273_20-05-2025_13_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23167281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167286, '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 = 23167439 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': 2908332, 'mtr_portfolio_id': 23167439, 'created_at': datetime.datetime(2025, 5, 20, 14, 2, 58), 'result': '0.03112771591305777', 'result_long': None, 'result_double': None}] Qualite : 0.03112771591305777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23167439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23167439_20-05-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23167439 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_P23167439_20-05-2025_14_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23167455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167458, 'pht': 3726}}" where mtr_portfolio_id = 23167439 and dashboard_run_id = 1831446 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`=23167439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757142, 0.03112771591305777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23167439_20-05-2025_14_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167454, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23167455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167458, '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 = 23167741 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': 2908437, 'mtr_portfolio_id': 23167741, 'created_at': datetime.datetime(2025, 5, 20, 14, 18, 59), 'result': '0.07085660695325034', 'result_long': None, 'result_double': None}] Qualite : 0.07085660695325034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23167741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23167741_20-05-2025_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23167741 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_P23167741_20-05-2025_14_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23167753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167764, 'pht': 3726}}" where mtr_portfolio_id = 23167741 and dashboard_run_id = 1831446 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`=23167741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757143, 0.07085660695325034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23167741_20-05-2025_14_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23167753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23167754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23167755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23167756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23167757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23167758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23167759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23167760, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23167761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23167762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23167763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23167764, '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 = 23168087 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 = 23168087 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 = 23168087 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23168087 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 = 23168087 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 = 23168087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23168087_20-05-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23168087 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_P23168087_20-05-2025_14_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23168102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23168103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23168104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23168105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23168106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23168107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23168108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23168109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23168110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23168111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23168112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23168113, 'pht': 3726}}" where mtr_portfolio_id = 23168087 and dashboard_run_id = 1831446 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 = 23168481 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': 2908729, 'mtr_portfolio_id': 23168481, 'created_at': datetime.datetime(2025, 5, 20, 14, 46, 56), 'result': '0.05252275629814615', 'result_long': None, 'result_double': None}] Qualite : 0.05252275629814615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23168481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23168481_20-05-2025_14_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23168481 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_P23168481_20-05-2025_14_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23168506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23168507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23168508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23168509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23168510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23168511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23168512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23168513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23168514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23168515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23168516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23168517, 'pht': 3726}}" where mtr_portfolio_id = 23168481 and dashboard_run_id = 1831446 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`=23168481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757145, 0.05252275629814615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23168481_20-05-2025_14_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23168506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23168507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23168508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23168509, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23168510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23168511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23168512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23168513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23168514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23168515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23168516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23168517, '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 = 23169091 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': 2908865, 'mtr_portfolio_id': 23169091, 'created_at': datetime.datetime(2025, 5, 20, 15, 3, 51), 'result': '0.025853195334364174', 'result_long': None, 'result_double': None}] Qualite : 0.025853195334364174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23169091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23169091_20-05-2025_15_03_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23169091 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_P23169091_20-05-2025_15_03_51.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23169154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23169155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23169156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23169157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23169158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23169159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23169160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23169161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23169162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23169163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23169164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23169165, 'pht': 3726}}" where mtr_portfolio_id = 23169091 and dashboard_run_id = 1831446 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`=23169091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757146, 0.025853195334364174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23169091_20-05-2025_15_03_51.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23169154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23169155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23169156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23169157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23169158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23169159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23169160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23169161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23169162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23169163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23169164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23169165, '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 = 23169661 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': 2908984, 'mtr_portfolio_id': 23169661, 'created_at': datetime.datetime(2025, 5, 20, 15, 16, 59), 'result': '0.005815628526557648', 'result_long': None, 'result_double': None}] Qualite : 0.005815628526557648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23169661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23169661_20-05-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23169661 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_P23169661_20-05-2025_15_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23169708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23169709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23169710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23169711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23169712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23169713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23169714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23169715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23169716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23169717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23169718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23169719, 'pht': 3726}}" where mtr_portfolio_id = 23169661 and dashboard_run_id = 1831446 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`=23169661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757147, 0.005815628526557648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23169661_20-05-2025_15_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23169708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23169709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23169710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23169711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23169712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23169713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23169714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23169715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23169716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23169717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23169718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23169719, '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 = 23170312 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': 2909121, 'mtr_portfolio_id': 23170312, 'created_at': datetime.datetime(2025, 5, 20, 15, 32, 56), 'result': '0.040050094900843006', 'result_long': None, 'result_double': None}] Qualite : 0.040050094900843006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23170312 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23170312_20-05-2025_15_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23170312 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_P23170312_20-05-2025_15_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23170338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23170339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23170340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23170341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23170342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23170343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23170344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23170345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23170346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23170347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23170348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23170349, 'pht': 3726}}" where mtr_portfolio_id = 23170312 and dashboard_run_id = 1831446 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`=23170312 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757148, 0.040050094900843006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23170312_20-05-2025_15_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23170338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23170339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23170340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23170341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23170342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23170343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23170344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23170345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23170346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23170347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23170348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23170349, '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 = 23170903 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': 2909396, 'mtr_portfolio_id': 23170903, 'created_at': datetime.datetime(2025, 5, 20, 15, 47), 'result': '0.03579794795997358', 'result_long': None, 'result_double': None}] Qualite : 0.03579794795997358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23170903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23170903_20-05-2025_15_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23170903 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_P23170903_20-05-2025_15_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23170918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23170919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23170921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23170922, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23170923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23170924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23170925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23170926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23170927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23170928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23170929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23170930, 'pht': 3726}}" where mtr_portfolio_id = 23170903 and dashboard_run_id = 1831446 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`=23170903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757149, 0.03579794795997358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23170903_20-05-2025_15_47_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23170918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23170919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23170921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23170922, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23170923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23170924, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23170925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23170926, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23170927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23170928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23170929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23170930, '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 = 23171365 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': 2909625, 'mtr_portfolio_id': 23171365, 'created_at': datetime.datetime(2025, 5, 20, 16, 3, 28), 'result': '0.0875963054302207', 'result_long': None, 'result_double': None}] Qualite : 0.0875963054302207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23171365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23171365_20-05-2025_16_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23171365 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_P23171365_20-05-2025_16_03_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23171408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23171409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23171410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23171411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23171412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23171413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23171414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23171415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23171416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23171417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23171418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23171419, 'pht': 3726}}" where mtr_portfolio_id = 23171365 and dashboard_run_id = 1831446 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`=23171365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757150, 0.0875963054302207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23171365_20-05-2025_16_03_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23171408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23171409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23171410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23171411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23171412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23171413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23171414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23171415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23171416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23171417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23171418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23171419, '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 = 23171907 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': 2909911, 'mtr_portfolio_id': 23171907, 'created_at': datetime.datetime(2025, 5, 20, 16, 17, 30), 'result': '0.04990430845625334', 'result_long': None, 'result_double': None}] Qualite : 0.04990430845625334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23171907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23171907_20-05-2025_16_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23171907 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_P23171907_20-05-2025_16_17_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23171914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23171915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23171916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23171917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23171918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23171919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23171920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23171921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23171922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23171923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23171924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23171925, 'pht': 3726}}" where mtr_portfolio_id = 23171907 and dashboard_run_id = 1831446 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`=23171907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757151, 0.04990430845625334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23171907_20-05-2025_16_17_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23171914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23171915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23171916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23171917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23171918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23171919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23171920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23171921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23171922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23171923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23171924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23171925, '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 = 23172384 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': 2910152, 'mtr_portfolio_id': 23172384, 'created_at': datetime.datetime(2025, 5, 20, 16, 33), 'result': '0.030550474541386385', 'result_long': None, 'result_double': None}] Qualite : 0.030550474541386385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23172384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23172384_20-05-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23172384 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_P23172384_20-05-2025_16_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23172386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23172387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23172388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23172389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23172390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23172391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23172392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23172393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23172394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23172395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23172396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23172397, 'pht': 3726}}" where mtr_portfolio_id = 23172384 and dashboard_run_id = 1831446 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`=23172384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757152, 0.030550474541386385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23172384_20-05-2025_16_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23172386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23172387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23172388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23172389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23172390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23172391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23172392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23172393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23172394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23172395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23172396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23172397, '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 = 23172892 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': 2910381, 'mtr_portfolio_id': 23172892, 'created_at': datetime.datetime(2025, 5, 20, 16, 48, 57), 'result': '0.050730504299807085', 'result_long': None, 'result_double': None}] Qualite : 0.050730504299807085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23172892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23172892_20-05-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23172892 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_P23172892_20-05-2025_16_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23172926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23172927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23172928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23172929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23172930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23172931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23172932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23172933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23172934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23172935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23172936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23172937, 'pht': 3726}}" where mtr_portfolio_id = 23172892 and dashboard_run_id = 1831446 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`=23172892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757153, 0.050730504299807085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23172892_20-05-2025_16_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23172926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23172927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23172928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23172929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23172930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23172931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23172932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23172933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23172934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23172935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23172936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23172937, '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 = 23173620 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': 2910696, 'mtr_portfolio_id': 23173620, 'created_at': datetime.datetime(2025, 5, 20, 17, 19, 1), 'result': '0.05151332490559475', 'result_long': None, 'result_double': None}] Qualite : 0.05151332490559475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23173620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23173620_20-05-2025_17_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23173620 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_P23173620_20-05-2025_17_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23173644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23173645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23173646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23173647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23173648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23173649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23173650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23173651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23173652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23173653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23173654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23173655, 'pht': 3726}}" where mtr_portfolio_id = 23173620 and dashboard_run_id = 1831446 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`=23173620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757154, 0.05151332490559475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23173620_20-05-2025_17_19_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23173644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23173645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23173646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23173647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23173648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23173649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23173650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23173651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23173652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23173653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23173654, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23173655, '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 = 23174737 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': 2911106, 'mtr_portfolio_id': 23174737, 'created_at': datetime.datetime(2025, 5, 20, 17, 33, 1), 'result': '0.04309823981506795', 'result_long': None, 'result_double': None}] Qualite : 0.04309823981506795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23174737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23174737_20-05-2025_17_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23174737 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_P23174737_20-05-2025_17_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23174760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23174761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23174762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23174763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23174764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23174765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23174766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23174767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23174768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23174769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23174770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23174771, 'pht': 3726}}" where mtr_portfolio_id = 23174737 and dashboard_run_id = 1831446 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`=23174737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757155, 0.04309823981506795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23174737_20-05-2025_17_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23174760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23174761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23174762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23174763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23174764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23174765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23174766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23174767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23174768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23174769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23174770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23174771, '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 = 23175640 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': 2911407, 'mtr_portfolio_id': 23175640, 'created_at': datetime.datetime(2025, 5, 20, 18, 16, 57), 'result': '0.060889767675871294', 'result_long': None, 'result_double': None}] Qualite : 0.060889767675871294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23175640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23175640_20-05-2025_18_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23175640 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_P23175640_20-05-2025_18_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23175665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23175666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23175667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23175668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23175669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23175670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23175671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23175672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23175673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23175674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23175675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23175676, 'pht': 3726}}" where mtr_portfolio_id = 23175640 and dashboard_run_id = 1831446 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`=23175640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757156, 0.060889767675871294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23175640_20-05-2025_18_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23175665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23175666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23175667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23175668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23175669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23175670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23175671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23175672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23175673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23175674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23175675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23175676, '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 = 23175778 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': 2911435, 'mtr_portfolio_id': 23175778, 'created_at': datetime.datetime(2025, 5, 20, 18, 32, 59), 'result': '0.04438887297061909', 'result_long': None, 'result_double': None}] Qualite : 0.04438887297061909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23175778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23175778_20-05-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23175778 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_P23175778_20-05-2025_18_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23175803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23175804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23175805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23175806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23175807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23175808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23175809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23175810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23175811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23175812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23175813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23175814, 'pht': 3726}}" where mtr_portfolio_id = 23175778 and dashboard_run_id = 1831446 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`=23175778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757157, 0.04438887297061909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23175778_20-05-2025_18_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23175803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23175804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23175805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23175806, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23175807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23175808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23175809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23175810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23175811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23175812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23175813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23175814, '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 = 23176118 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': 2911550, 'mtr_portfolio_id': 23176118, 'created_at': datetime.datetime(2025, 5, 20, 18, 46, 58), 'result': '0.03337843011197686', 'result_long': None, 'result_double': None}] Qualite : 0.03337843011197686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23176118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23176118_20-05-2025_18_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23176118 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_P23176118_20-05-2025_18_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23176189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23176190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23176191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23176192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23176193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23176194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23176195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23176196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23176197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23176198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23176199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23176200, 'pht': 3726}}" where mtr_portfolio_id = 23176118 and dashboard_run_id = 1831446 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`=23176118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757158, 0.03337843011197686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23176118_20-05-2025_18_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23176189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23176190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23176191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23176192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23176193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23176194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23176195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23176196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23176197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23176198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23176199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23176200, '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 = 23176567 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': 2911706, 'mtr_portfolio_id': 23176567, 'created_at': datetime.datetime(2025, 5, 20, 19, 2, 58), 'result': '0.030126740607880845', 'result_long': None, 'result_double': None}] Qualite : 0.030126740607880845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23176567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23176567_20-05-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23176567 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_P23176567_20-05-2025_19_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23176574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23176575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23176576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23176577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23176578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23176579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23176580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23176581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23176582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23176583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23176584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23176585, 'pht': 3726}}" where mtr_portfolio_id = 23176567 and dashboard_run_id = 1831446 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`=23176567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757159, 0.030126740607880845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23176567_20-05-2025_19_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23176574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23176575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23176576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23176577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23176578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23176579, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23176580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23176581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23176582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23176583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23176584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23176585, '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 = 23177023 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': 2911902, 'mtr_portfolio_id': 23177023, 'created_at': datetime.datetime(2025, 5, 20, 19, 18, 59), 'result': '0.0867599035472849', 'result_long': None, 'result_double': None}] Qualite : 0.0867599035472849 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23177023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23177023_20-05-2025_19_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23177023 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_P23177023_20-05-2025_19_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23177050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23177051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23177052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23177053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23177054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23177055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23177056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23177057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23177058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23177059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23177060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23177061, 'pht': 3726}}" where mtr_portfolio_id = 23177023 and dashboard_run_id = 1831446 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`=23177023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757160, 0.0867599035472849, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23177023_20-05-2025_19_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23177050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23177051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23177052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23177053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23177054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23177055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23177056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23177057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23177058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23177059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23177060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23177061, '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 = 23177719 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': 2912232, 'mtr_portfolio_id': 23177719, 'created_at': datetime.datetime(2025, 5, 20, 19, 32, 59), 'result': '0.022383935129632205', 'result_long': None, 'result_double': None}] Qualite : 0.022383935129632205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23177719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23177719_20-05-2025_19_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23177719 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_P23177719_20-05-2025_19_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23177771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23177772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23177773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23177774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23177775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23177776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23177777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23177778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23177779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23177780, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23177781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23177782, 'pht': 3726}}" where mtr_portfolio_id = 23177719 and dashboard_run_id = 1831446 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`=23177719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757161, 0.022383935129632205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23177719_20-05-2025_19_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23177771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23177772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23177773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23177774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23177775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23177776, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23177777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23177778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23177779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23177780, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23177781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23177782, '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 = 23178323 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': 2912502, 'mtr_portfolio_id': 23178323, 'created_at': datetime.datetime(2025, 5, 20, 19, 49, 43), 'result': '0.05611004030957163', 'result_long': None, 'result_double': None}] Qualite : 0.05611004030957163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23178323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23178323_20-05-2025_19_49_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23178323 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_P23178323_20-05-2025_19_49_44.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23178343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23178344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23178345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23178346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23178347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23178348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23178349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23178350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23178351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23178352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23178353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23178354, 'pht': 3726}}" where mtr_portfolio_id = 23178323 and dashboard_run_id = 1831446 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`=23178323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757162, 0.05611004030957163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23178323_20-05-2025_19_49_44.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23178343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23178344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23178345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23178346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23178347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23178348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23178349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23178350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23178351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23178352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23178353, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23178354, '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 = 23178882 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': 2912802, 'mtr_portfolio_id': 23178882, 'created_at': datetime.datetime(2025, 5, 20, 20, 3, 1), 'result': '0.022040596627344873', 'result_long': None, 'result_double': None}] Qualite : 0.022040596627344873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23178882 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23178882_20-05-2025_20_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23178882 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_P23178882_20-05-2025_20_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23178889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23178890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23178891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23178892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23178893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23178894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23178895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23178896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23178897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23178898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23178899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23178900, 'pht': 3726}}" where mtr_portfolio_id = 23178882 and dashboard_run_id = 1831446 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`=23178882 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757163, 0.022040596627344873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23178882_20-05-2025_20_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23178889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23178890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23178891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23178892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23178893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23178894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23178895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23178896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23178897, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23178898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23178899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23178900, '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 = 23179240 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': 2913021, 'mtr_portfolio_id': 23179240, 'created_at': datetime.datetime(2025, 5, 20, 20, 16, 58), 'result': '0.06703586426959651', 'result_long': None, 'result_double': None}] Qualite : 0.06703586426959651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23179240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23179240_20-05-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23179240 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_P23179240_20-05-2025_20_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23179289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23179290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23179291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23179292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23179293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23179294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23179296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23179297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23179298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23179299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23179300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23179301, 'pht': 3726}}" where mtr_portfolio_id = 23179240 and dashboard_run_id = 1831446 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`=23179240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757164, 0.06703586426959651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23179240_20-05-2025_20_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23179289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23179290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23179291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23179292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23179293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23179294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23179296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23179297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23179298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23179299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23179300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23179301, '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 = 23179753 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': 2913236, 'mtr_portfolio_id': 23179753, 'created_at': datetime.datetime(2025, 5, 20, 20, 32, 59), 'result': '0.0360322055455326', 'result_long': None, 'result_double': None}] Qualite : 0.0360322055455326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23179753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23179753_20-05-2025_20_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23179753 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_P23179753_20-05-2025_20_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23179772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23179773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23179774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23179775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23179776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23179777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23179778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23179779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23179780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23179781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23179782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23179783, 'pht': 3726}}" where mtr_portfolio_id = 23179753 and dashboard_run_id = 1831446 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`=23179753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757165, 0.0360322055455326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23179753_20-05-2025_20_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23179772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23179773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23179774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23179775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23179776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23179777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23179778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23179779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23179780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23179781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23179782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23179783, '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 = 23180224 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': 2913495, 'mtr_portfolio_id': 23180224, 'created_at': datetime.datetime(2025, 5, 20, 21, 2, 59), 'result': '0.04725137479852994', 'result_long': None, 'result_double': None}] Qualite : 0.04725137479852994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23180224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23180224_20-05-2025_21_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23180224 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_P23180224_20-05-2025_21_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23180264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23180265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23180266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23180268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23180269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23180270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23180271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23180272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23180273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23180274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23180275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23180276, 'pht': 3726}}" where mtr_portfolio_id = 23180224 and dashboard_run_id = 1831446 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`=23180224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757166, 0.04725137479852994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23180224_20-05-2025_21_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23180264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23180265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23180266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23180268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23180269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23180270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23180271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23180272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23180273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23180274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23180275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23180276, '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 = 23181348 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 = 23181348 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 = 23181348 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23181348 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 = 23181348 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 = 23181348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23181348_20-05-2025_21_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23181348 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_P23181348_20-05-2025_21_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23181351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23181352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23181353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23181354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23181355, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23181356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23181357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23181358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23181359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23181360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23181361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23181362, 'pht': 3726}}" where mtr_portfolio_id = 23181348 and dashboard_run_id = 1831446 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 = 23181509 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': 2914086, 'mtr_portfolio_id': 23181509, 'created_at': datetime.datetime(2025, 5, 20, 21, 34, 59), 'result': '0.038355534757784804', 'result_long': None, 'result_double': None}] Qualite : 0.038355534757784804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23181509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23181509_20-05-2025_21_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23181509 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_P23181509_20-05-2025_21_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23181513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23181514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23181515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23181516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23181517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23181518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23181519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23181520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23181521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23181522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23181523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23181524, 'pht': 3726}}" where mtr_portfolio_id = 23181509 and dashboard_run_id = 1831446 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`=23181509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10757168, 0.038355534757784804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23181509_20-05-2025_21_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23181513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23181514, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23181515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23181516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23181517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23181518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23181519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23181520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23181521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23181522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23181523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23181524, '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 = 23182228 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 = 23182228 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 = 23182228 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23182228 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 = 23182228 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 = 23182228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23182228_20-05-2025_22_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23182228 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_P23182228_20-05-2025_22_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23182233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23182234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23182235, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23182236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23182237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23182238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23182239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23182240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23182241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23182242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23182243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23182244, 'pht': 3726}}" where mtr_portfolio_id = 23182228 and dashboard_run_id = 1831446 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 = 23182476 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 = 23182476 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 = 23182476 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23182476 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 = 23182476 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 = 23182476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23182476_20-05-2025_22_09_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23182476 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_P23182476_20-05-2025_22_09_01.pdf'}" where mtr_portfolio_id = 23182476 and dashboard_run_id = 1831446 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23148156,23150574,23150983,23151453,23151856,23152505,23153069,23153614,23154137,23154854,23155663,23156379,23157241,23157946,23158455,23159074,23160766,23161118,23161565,23161888,23162625,23163328,23163901,23164435,23164754,23165157,23165759,23167273,23167439,23167741,23168087,23168481,23169091,23169661,23170312,23170903,23171365,23171907,23172384,23172892,23173620,23174737,23175640,23175778,23176118,23176567,23177023,23177719,23178323,23178882,23179240,23179753,23180224,23181348,23181509,23182228,23182476) result : ((1359697510,), (1359697516,), (1359697518,), (1359699306,), (1359699411,), (1359699691,), (1359699725,), (1359700270,), (1359702672,), (1359745594,), (1359745597,), (1359745627,), (1359745774,), (1359745776,), (1359745778,), (1359745803,), (1359745804,), (1359745805,), (1359745931,), (1359745971,), (1359745997,), (1359746335,), (1359746338,), (1359746342,), (1359746395,), (1359746439,), (1359746465,), (1359746888,), (1359746954,), (1359747065,), (1359747110,), (1359747158,), (1359747358,), (1359747500,), (1359747758,), (1359747761,), (1359747772,), (1359747773,), (1359747945,), (1359747966,), (1359747993,), (1359748017,), (1359748038,), (1359748064,), (1359748374,), (1359748399,), (1359748425,), (1359748482,), (1359748507,), (1359748620,), (1359748646,), (1359748672,), (1359748696,), (1359748777,), (1359748781,), (1359748784,), (1359748787,), (1359748791,), (1359748798,), (1359748953,), (1359748988,), (1359749030,), (1359749087,), (1359749495,), (1359749506,), (1359749520,), (1359749523,), (1359749527,), (1359749528,), (1359749661,), (1359749650,), (1359749653,), (1359749656,), (1359749659,), (1359749687,), (1359749712,), (1359749745,), (1359749792,), (1359750082,), (1359750107,), (1359750130,), (1359750155,), (1359750180,), (1359750223,), (1359750728,), (1359750778,), (1359750832,), (1359750881,), (1359750928,), (1359751116,), (1359751141,), (1359751165,), (1359751175,), (1359751525,), (1359751550,), (1359751585,), (1359751638,), (1359751685,), (1359751693,), (1359751878,), (1359751915,), (1359751951,), (1359751975,), (1359751995,), (1359752025,), (1359752032,), (1359752037,), (1359752042,), (1359752045,), (1359752050,), (1359752108,), (1359752110,), (1359752112,), (1359752114,), (1359752141,), (1359752144,), (1359752146,), (1359752148,), (1359752150,), (1359752152,), (1359752192,), (1359752194,), (1359752196,), (1359752198,), (1359752200,), (1359752202,), (1359752225,), (1359752227,), (1359752229,), (1359752231,), (1359752232,), (1359752254,), (1359752256,), (1359752258,), (1359752267,), (1359752275,), (1359752291,), (1359752297,), (1359752298,), (1359752301,), (1359752347,), (1359752424,), (1359752451,), (1359752454,), (1359752455,), (1359752457,), (1359752459,), (1359752461,), (1359752570,), (1359752580,), (1359752582,), (1359752596,), (1359752709,), (1359752728,), (1359752740,), (1359752748,), (1359752754,), (1359752755,), (1359752775,), (1359752777,), (1359752780,), (1359752782,), (1359752803,), (1359752808,), (1359752811,), (1359752812,), (1359752814,), (1359752829,), (1359752831,), (1359752832,), (1359752834,), (1359752837,), (1359752867,), (1359752872,), (1359752874,), (1359752876,), (1359752877,), (1359752924,), (1359752926,), (1359752934,), (1359752939,), (1359752959,), (1359752961,), (1359752963,), (1359752964,), (1359752965,), (1359752966,), (1359752981,), (1359752984,), (1359752993,), (1359752996,), (1359752998,), (1359753446,), (1359753459,), (1359753461,), (1359753464,), (1359753466,), (1359754036,), (1359753768,), (1359753833,), (1359753909,), (1359754483,), (1359754496,), (1359754584,), (1359754657,), (1359754709,), (1359754760,), (1359754782,), (1359754783,), (1359754789,), (1359754791,), (1359754799,), (1359754801,), (1359754804,), (1359754807,), (1359754810,), (1359754814,), (1359754820,), (1359754828,), (1359754853,), (1359754875,), (1359754884,), (1359754890,), (1359754893,), (1359754895,), (1359754904,), (1359754907,), (1359754913,), (1359754918,), (1359754921,), (1359754925,), (1359754931,), (1359754933,), (1359754934,), (1359754937,), (1359754940,), (1359754943,), (1359754954,), (1359754958,), (1359754962,), (1359754964,), (1359754966,), (1359754968,), (1359754976,), (1359754979,), (1359754982,), (1359754988,), (1359754991,), (1359754994,), (1359755001,), (1359755002,), (1359755006,), (1359755012,), (1359755017,), (1359755062,), (1359755076,), (1359755085,), (1359755087,), (1359755089,), (1359755094,), (1359755113,), (1359755116,), (1359755120,), (1359755123,), (1359755166,), (1359755171,), (1359755173,), (1359755176,), (1359755178,), (1359755180,), (1359755208,), (1359755211,), (1359755214,), (1359755217,), (1359755471,), (1359755499,), (1359755523,), (1359755547,), (1359755571,), (1359755594,), (1359755847,), (1359755886,), (1359755917,), (1359755946,), (1359755977,), (1359756161,), (1359756205,), (1359756286,), (1359756340,), (1359756395,), (1359756435,), (1359756806,), (1359756667,), (1359756711,), (1359756760,), (1359757225,), (1359757252,), (1359757284,), (1359757335,), (1359757382,), (1359757635,), (1359757638,), (1359757643,), (1359757647,), (1359757651,), (1359757678,), (1359757704,), (1359757731,), (1359757759,), (1359757784,), (1359757812,), (1359758063,), (1359758091,), (1359758127,), (1359758151,), (1359758297,), (1359758301,), (1359758303,), (1359758305,), (1359758308,), (1359758309,), (1359758321,), (1359758323,), (1359758354,), (1359758378,), (1359758672,), (1359758689,), (1359758709,), (1359758713,), (1359758715,), (1359758717,), (1359758757,), (1359758759,), (1359758767,), (1359758769,), (1359758771,), (1359758792,), (1359758795,), (1359758798,), (1359758800,), (1359758813,), (1359758815,), (1359758817,), (1359758819,), (1359758821,), (1359758823,), (1359758839,), (1359758841,), (1359758843,), (1359758845,), (1359758893,), (1359758895,), (1359758897,), (1359758899,), (1359758901,), (1359758902,), (1359758930,), (1359758932,), (1359758934,), (1359758936,), (1359758947,), (1359758953,), (1359758958,), (1359758960,), (1359758963,), (1359758966,), (1359759004,), (1359758997,), (1359758999,), (1359759001,), (1359759003,), (1359759020,), (1359759025,), (1359759027,), (1359759029,), (1359759030,), (1359759033,), (1359759049,), (1359759050,), (1359759052,), (1359759064,), (1359759066,), (1359759068,), (1359759070,), (1359759072,), (1359759074,), (1359759089,), (1359759092,), (1359759094,), (1359759096,), (1359759113,), (1359759116,), (1359759119,), (1359759121,), (1359759123,), (1359759130,), (1359759160,), (1359759167,), (1359759169,), (1359759175,), (1359759241,), (1359759245,), (1359759248,), (1359759251,), (1359759256,), (1359759304,), (1359759318,), (1359759326,), (1359759327,), (1359759329,), (1359759331,), (1359759334,), (1359759346,), (1359759348,), (1359759350,), (1359759352,), (1359759354,), (1359759355,), (1359759378,), (1359759385,), (1359759392,), (1359759394,), (1359759395,), (1359759408,), (1359759420,), (1359759427,), (1359759430,), (1359759432,), (1359759476,), (1359759513,), (1359759524,), (1359759526,), (1359759527,), (1359759576,), (1359759578,), (1359759580,), (1359759583,), (1359759588,), (1359759604,), (1359759607,), (1359759610,), (1359759612,), (1359759917,), (1359759810,), (1359759835,), (1359759867,), (1359759894,), (1359760184,), (1359760211,), (1359760238,), (1359760264,), (1359760464,), (1359760488,), (1359760519,), (1359760544,), (1359760554,), (1359760688,), (1359760713,), (1359760739,), (1359760763,), (1359760788,), (1359760857,), (1359760881,), (1359760905,), (1359760933,), (1359760951,), (1359760980,), (1359760983,), (1359760985,), (1359760987,), (1359760988,), (1359760990,), (1359761014,), (1359761036,), (1359761062,), (1359761089,), (1359761366,), (1359761392,), (1359761416,), (1359761440,), (1359761465,), (1359761489,), (1359761737,), (1359761762,), (1359761787,), (1359761816,), (1359761846,), (1359761871,), (1359762120,), (1359762122,), (1359762124,), (1359762126,), (1359762144,), (1359762146,), (1359762148,), (1359762150,), (1359762152,), (1359762153,), (1359762321,), (1359762557,), (1359762633,), (1359762658,), (1359762912,), (1359762921,), (1359762929,), (1359762931,), (1359762932,), (1359762939,), (1359763203,), (1359763254,), (1359763313,), (1359763365,), (1359763414,), (1359764008,), (1359763918,), (1359763975,), (1359764004,), (1359764304,), (1359764330,), (1359764376,), (1359764417,), (1359764441,), (1359764664,), (1359764667,), (1359764670,), (1359764674,), (1359764677,), (1359764875,), (1359764879,), (1359764884,), (1359764888,), (1359764891,), (1359764909,), (1359764913,), (1359764918,), (1359764922,), (1359764925,), (1359764929,), (1359764949,), (1359764953,), (1359764957,), (1359764961,), (1359764979,), (1359764991,), (1359764995,), (1359765000,), (1359765003,), (1359765037,), (1359765042,), (1359765046,), (1359765049,), (1359765085,), (1359765088,), (1359765093,), (1359765098,), (1359765101,), (1359765121,), (1359765124,), (1359765196,), (1359765202,), (1359765235,), (1359765249,), (1359765252,), (1359765258,), (1359765262,), (1359765265,), (1359765278,), (1359765282,), (1359765286,), (1359765290,), (1359765293,), (1359765296,), (1359765320,), (1359765329,), (1359765335,), (1359765341,), (1359765376,), (1359765380,), (1359765403,), (1359765432,), (1359765443,), (1359765542,), (1359765510,), (1359765518,), (1359765523,), (1359765527,), (1359765532,), (1359765592,), (1359765608,), (1359765622,), (1359765671,), (1359765675,), (1359765687,), (1359765691,), (1359765695,), (1359765699,), (1359765770,), (1359765774,), (1359765779,), (1359765784,), (1359765786,), (1359765790,), (1359765808,), (1359765811,), (1359765823,), (1359765876,), (1359765918,), (1359765930,), (1359765935,), (1359765939,), (1359765943,), (1359766143,), (1359766149,), (1359766154,), (1359766158,), (1359766260,), (1359766263,), (1359766268,), (1359766275,), (1359766283,), (1359766293,), (1359766434,), (1359766444,), (1359766457,), (1359766471,), (1359766499,), (1359766532,), (1359766555,), (1359766606,), (1359766611,), (1359766616,), (1359766684,), (1359766789,), (1359766834,), (1359766911,), (1359766933,), (1359766936,), (1359766939,), (1359766950,), (1359766954,), (1359766957,), (1359766961,), (1359766970,), (1359766973,), (1359766975,), (1359766978,), (1359766981,), (1359766984,), (1359767024,), (1359767029,), (1359767033,), (1359767083,), (1359767087,), (1359767091,), (1359767096,), (1359767098,), (1359767125,), (1359767133,), (1359767139,), (1359767144,), (1359767150,), (1359767223,), (1359767205,), (1359767209,), (1359767213,), (1359767217,), (1359767220,), (1359767245,), (1359767254,), (1359767266,), (1359767275,), (1359767310,), (1359767314,), (1359767317,), (1359767321,), (1359767323,), (1359767328,), (1359767434,), (1359767449,), (1359767475,), (1359767489,), (1359767585,), (1359767607,), (1359767629,), (1359767659,), (1359767663,), (1359767667,), (1359767672,), (1359767676,), (1359767679,), (1359767712,), (1359767717,), (1359767742,), (1359767778,), (1359768044,), (1359768072,), (1359768109,), (1359768510,), (1359768538,), (1359768564,), (1359768597,), (1359768628,), (1359768659,), (1359768930,), (1359768938,), (1359768944,), (1359768949,), (1359768978,), (1359768987,), (1359769024,), (1359769048,), (1359769074,), (1359769100,), (1359769358,), (1359769390,), (1359769425,), (1359769457,), (1359769474,), (1359769488,), (1359769551,), (1359769662,), (1359769694,), (1359769735,), (1359769761,), (1359769781,), (1359769785,), (1359769790,), (1359769794,), (1359769797,), (1359770053,), (1359770077,), (1359770104,), (1359770130,), (1359770145,), (1359770178,), (1359770171,), (1359770175,), (1359770229,), (1359770236,), (1359770242,), (1359770246,), (1359770249,), (1359770251,), (1359770369,), (1359770373,), (1359770379,), (1359770385,), (1359770408,), (1359770412,), (1359770416,), (1359770419,), (1359770421,), (1359770425,), (1359770495,), (1359770511,), (1359770515,), (1359770645,), (1359770673,), (1359770695,), (1359770699,), (1359770703,), (1359770708,), (1359770738,), (1359770744,), (1359770750,), (1359770754,), (1359770757,), (1359770761,), (1359770791,), (1359770794,), (1359770798,), (1359770802,), (1359770851,), (1359770866,), (1359770870,), (1359770873,), (1359770876,), (1359770880,), (1359770963,), (1359770966,), (1359770971,), (1359770976,), (1359770979,), (1359771000,), (1359771003,), (1359771007,), (1359771012,), (1359771046,), (1359771053,), (1359771060,), (1359771140,), (1359771152,), (1359772093,), (1359772777,), (1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,), (1359773877,), (1359773880,), (1359773883,), (1359773886,), (1359773887,), (1359773930,), (1359773936,), (1359773940,), (1359773944,), (1359773946,), (1359773950,), (1359774043,), (1359774045,), (1359774061,), (1359774094,), (1359774154,), (1359774158,), (1359774168,), (1359774173,), (1359774182,), (1359774191,), (1359774567,), (1359774596,), (1359774624,), (1359774651,), (1359774667,), (1359774795,), (1359774813,), (1359774849,), (1359774859,), (1359774864,), (1359774868,), (1359775031,), (1359775019,), (1359775022,), (1359775026,), (1359775057,), (1359775060,), (1359775064,), (1359775080,), (1359775158,), (1359775237,), (1359775306,), (1359775309,), (1359775313,), (1359775317,), (1359775321,), (1359775415,), (1359775468,), (1359775472,), (1359775484,), (1359775494,), (1359775497,), (1359775559,), (1359775574,), (1359775602,), (1359775639,), (1359775678,), (1359775684,), (1359775819,), (1359775844,), (1359775849,), (1359775854,), (1359776016,), (1359776044,), (1359776068,), (1359776072,), (1359776229,), (1359776233,), (1359776236,), (1359776241,), (1359776246,), (1359776274,), (1359776278,), (1359776282,), (1359776287,), (1359776315,), (1359776322,), (1359776326,), (1359776329,), (1359776541,), (1359776551,), (1359776555,), (1359776570,), (1359776573,), (1359776576,), (1359776602,), (1359776606,), (1359776615,), (1359776648,), (1359776847,), (1359776851,), (1359776855,), (1359776860,), (1359776864,), (1359776868,), (1359776903,), (1359776906,), (1359776911,), (1359776916,), (1359776941,), (1359776955,), (1359776962,), (1359776967,), (1359777002,), (1359777037,), (1359777023,), (1359777026,), (1359777028,), (1359777033,), (1359777036,), (1359777063,), (1359777067,), (1359777069,), (1359777073,), (1359777098,), (1359777101,), (1359777104,), (1359777107,), (1359777108,), (1359777110,), (1359777131,), (1359777133,), (1359777136,), (1359777139,), (1359777255,), (1359777258,), (1359777261,), (1359777264,), (1359777267,), (1359777269,), (1359777355,), (1359777358,), (1359777363,), (1359777367,), (1359777370,), (1359777436,), (1359777512,), (1359777564,), (1359777566,), (1359777569,), (1359777571,), (1359777633,), (1359777638,), (1359777645,), (1359777651,), (1359777654,), (1359777779,), (1359777782,), (1359777787,), (1359777791,), (1359777793,), (1359777795,), (1359777831,), (1359777837,), (1359777840,), (1359777843,), (1359777856,), (1359777955,), (1359777984,), (1359777996,), (1359778008,), (1359778023,), (1359778096,), (1359778098,), (1359778101,), (1359778104,), (1359778105,), (1359778109,), (1359778137,), (1359778141,), (1359778144,), (1359778199,), (1359778203,), (1359778207,), (1359778210,), (1359778214,), (1359778218,), (1359778342,), (1359778349,), (1359778355,), (1359778358,), (1359778413,), (1359778386,), (1359778388,), (1359778391,), (1359778396,), (1359778407,), (1359778433,), (1359778435,), (1359778438,), (1359778460,), (1359778462,), (1359778465,), (1359778468,), (1359778470,), (1359778472,), (1359778491,), (1359778493,), (1359778496,), (1359778499,), (1359778501,), (1359778539,), (1359778553,), (1359778580,), (1359778587,), (1359778588,), (1359778616,), (1359778618,), (1359778622,), (1359778626,), (1359778629,), (1359778631,), (1359778679,), (1359778682,), (1359778685,), (1359778689,), (1359778731,), (1359778735,), (1359778738,), (1359778740,), (1359778742,), (1359778744,), (1359778769,), (1359778772,), (1359778775,), (1359778781,), (1359778823,), (1359778828,), (1359778833,), (1359778838,), (1359778842,), (1359778846,), (1359779184,), (1359779190,), (1359779204,), (1359779207,), (1359779282,), (1359779287,), (1359779291,), (1359779297,), (1359779300,), (1359779303,), (1359779413,), (1359779444,), (1359779473,), (1359779506,), (1359779925,), (1359779957,), (1359779977,), (1359779985,), (1359779996,), (1359780011,), (1359780070,), (1359784998,), (1359785003,), (1359785006,), (1359785081,), (1359785108,), (1359785131,), (1359785134,), (1359785137,), (1359785140,), (1359785175,), (1359785179,), (1359785184,), (1359785188,), (1359785216,), (1359785219,), (1359785223,), (1359785228,), (1359785234,), (1359785260,), (1359785270,), (1359785274,), (1359785278,), (1359785281,), (1359785314,), (1359785320,), (1359785325,), (1359785328,), (1359785331,), (1359785332,), (1359785368,), (1359785371,), (1359785375,), (1359785380,), (1359785383,), (1359785488,), (1359785501,), (1359785505,), (1359785507,), (1359785510,), (1359785542,), (1359785545,), (1359785549,), (1359785554,), (1359785558,), (1359785561,), (1359785594,), (1359785599,), (1359785604,), (1359785639,), (1359785644,), (1359785648,), (1359785651,), (1359785657,), (1359785661,), (1359785694,), (1359785698,), (1359785701,), (1359785704,), (1359785706,), (1359785709,), (1359785734,), (1359785737,), (1359785741,), (1359785744,), (1359785795,), (1359785800,), (1359785802,), (1359785805,), (1359785809,), (1359785841,), (1359785835,), (1359785838,), (1359785945,), (1359786024,), (1359786085,), (1359786088,), (1359786092,), (1359786130,), (1359786133,), (1359786137,), (1359786141,), (1359786144,), (1359786145,), (1359786170,), (1359786173,), (1359786177,), (1359786180,), (1359786216,), (1359786219,), (1359786226,), (1359786235,), (1359786242,), (1359786253,), (1359786279,), (1359786305,), (1359786311,), (1359786317,), (1359786345,), (1359786358,), (1359786364,), (1359786370,), (1359786375,), (1359786400,), (1359786407,), (1359786413,), (1359786420,), (1359786425,), (1359786428,), (1359786449,), (1359786452,), (1359786457,), (1359786522,), (1359786527,), (1359786531,), (1359786534,), (1359786537,), (1359786681,), (1359786684,), (1359786695,), (1359786700,), (1359786703,), (1359786723,), (1359786726,), (1359786730,), (1359786734,), (1359786738,), (1359786762,), (1359786766,), (1359786771,), (1359786776,), (1359786781,), (1359786885,), (1359786915,), (1359786951,), (1359786959,), (1359786965,), (1359786973,), (1359786990,), (1359786994,), (1359786998,), (1359787002,), (1359787033,), (1359787009,), (1359787012,), (1359787017,), (1359787022,), (1359787027,), (1359787074,), (1359787080,), (1359787085,), (1359787089,), (1359787113,), (1359787117,), (1359787121,), (1359787126,), (1359787132,), (1359787135,), (1359787153,), (1359787157,), (1359787162,), (1359787189,), (1359787193,), (1359787197,), (1359787201,), (1359787203,), (1359787207,), (1359787231,), (1359787236,), (1359787241,), (1359787247,), (1359787270,), (1359787275,), (1359787280,), (1359787284,), (1359787290,), (1359787292,), (1359787317,), (1359787327,), (1359787332,), (1359787336,), (1359787340,), (1359787376,), (1359787380,), (1359787384,), (1359787388,), (1359787391,), (1359787668,), (1359787695,), (1359787722,), (1359787757,), (1359787787,), (1359788169,), (1359788195,), (1359788228,), (1359788260,), (1359788288,), (1359788316,), (1359788555,), (1359788584,), (1359788605,), (1359788631,), (1359788652,), (1359788680,), (1359788712,), (1359788992,), (1359789041,), (1359789113,), (1359789155,), (1359789157,), (1359789244,), (1359789247,), (1359789250,), (1359789254,), (1359789256,), (1359789259,), (1359789401,), (1359789359,), (1359789383,), (1359789395,), (1359789398,), (1359789455,), (1359789463,), (1359789465,), (1359789468,), (1359789471,), (1359789474,), (1359789488,), (1359789510,), (1359789516,), (1359789531,), (1359789691,), (1359789719,), (1359789805,), (1359789961,), (1359790110,), (1359790218,), (1359790736,), (1359790755,), (1359790762,), (1359790772,), (1359790919,), (1359790994,), (1359791012,), (1359791042,), (1359791083,), (1359791110,), (1359791136,), (1359791139,), (1359791142,), (1359791144,), (1359791182,), (1359791188,), (1359791194,), (1359791196,), (1359791239,), (1359791247,), (1359791257,), (1359791266,), (1359791268,), (1359791270,), (1359791428,), (1359791439,), (1359791458,), (1359791476,), (1359791486,), (1359791517,), (1359791519,), (1359791522,), (1359791525,), (1359791528,), (1359791559,), (1359791563,), (1359791569,), (1359791574,), (1359791578,), (1359791582,), (1359791623,), (1359791631,), (1359791638,), (1359791642,), (1359791762,), (1359791765,), (1359791769,), (1359791773,), (1359791776,), (1359791779,), (1359791792,), (1359791798,), (1359791808,), (1359791816,), (1359792161,), (1359792106,), (1359792110,), (1359792114,), (1359792119,), (1359792133,), (1359792244,), (1359792247,), (1359792250,), (1359792253,), (1359792256,), (1359792277,), (1359792281,), (1359792285,), (1359792289,), (1359792312,), (1359792316,), (1359792714,), (1359792722,), (1359792726,), (1359792729,), (1359792733,), (1359792764,), (1359792768,), (1359792773,), (1359792778,), (1359792781,), (1359792802,), (1359792805,), (1359792813,), (1359792816,), (1359792819,), (1359792821,), (1359792833,), (1359792842,), (1359792849,), (1359792853,), (1359792856,), (1359792859,), (1359792883,), (1359792885,), (1359792889,), (1359792893,), (1359792952,), (1359792956,), (1359792961,), (1359792966,), (1359792972,), (1359792975,), (1359792994,), (1359792997,), (1359793001,), (1359793004,), (1359793022,), (1359793024,), (1359793031,), (1359793039,), (1359793041,), (1359793044,), (1359793064,), (1359793069,), (1359793073,), (1359793076,), (1359793080,), (1359793124,), (1359793106,), (1359793110,), (1359793114,), (1359793118,), (1359793121,), (1359793143,), (1359793146,), (1359793151,), (1359793155,), (1359793171,), (1359793173,), (1359793179,), (1359793185,), (1359793187,), (1359793213,), (1359793216,), (1359793221,), (1359793226,), (1359793243,), (1359793246,), (1359793250,), (1359793257,), (1359793264,), (1359793271,), (1359793361,), (1359793364,), (1359793368,), (1359793372,), (1359793403,), (1359793406,), (1359793409,), (1359793412,), (1359793415,), (1359793435,), (1359793439,), (1359793443,), (1359793447,), (1359793450,), (1359793453,), (1359793473,), (1359793478,), (1359793489,), (1359793494,), (1359793514,), (1359793517,), (1359793523,), (1359793526,), (1359793530,), (1359793533,), (1359793568,), (1359793574,), (1359793577,), (1359793581,), (1359793599,), (1359793605,), (1359793610,), (1359793621,), (1359793622,), (1359793623,), (1359793639,), (1359793641,), (1359793648,), (1359793651,), (1359793653,), (1359794030,), (1359794059,), (1359794089,), (1359794122,), (1359794154,), (1359794387,), (1359794323,), (1359794354,), (1359794580,), (1359794585,), (1359794593,), (1359794598,), (1359794602,), (1359794606,), (1359794624,), (1359794628,), (1359794633,), (1359794640,), (1359794646,), (1359794700,), (1359794703,), (1359794706,), (1359794710,), (1359794722,), (1359794724,), (1359794745,), (1359794752,), (1359794760,), (1359794767,), (1359794771,), (1359794793,), (1359794798,), (1359794803,), (1359794807,), (1359794812,), (1359794870,), (1359794875,), (1359794891,), (1359794904,), (1359795019,), (1359795025,), (1359795030,), (1359795036,), (1359795043,), (1359795046,), (1359795069,), (1359795074,), (1359795080,), (1359795085,), (1359795108,), (1359795112,), (1359795116,), (1359795124,), (1359795132,), (1359795135,), (1359795174,), (1359795178,), (1359795182,), (1359795186,), (1359795564,), (1359795645,), (1359795723,), (1359795802,), (1359795845,), (1359795881,), (1359795913,), (1359795919,), (1359795925,), (1359795939,), (1359795967,), (1359795971,), (1359795976,), (1359795981,), (1359796007,), (1359796014,), (1359796020,), (1359796027,), (1359796032,), (1359796038,), (1359796060,), (1359796056,), (1359796082,), (1359796086,), (1359796091,), (1359796097,), (1359796107,), (1359796111,), (1359796127,), (1359796130,), (1359796135,), (1359796140,), (1359796144,), (1359796148,), (1359796166,), (1359796170,), (1359796174,), (1359796211,), (1359796214,), (1359796217,), (1359796220,), (1359796223,), (1359796225,), (1359796245,), (1359796248,), (1359796252,), (1359796289,), (1359796293,), (1359796297,), (1359796301,), (1359796304,), (1359796307,), (1359796330,), (1359796334,), (1359796338,), (1359796342,), (1359796348,), (1359796352,), (1359796388,), (1359796392,), (1359796396,), (1359796400,), (1359796458,), (1359796462,), (1359796467,), (1359796473,), (1359796478,), (1359796482,), (1359796505,), (1359796512,), (1359796518,), (1359796524,), (1359796542,), (1359796546,), (1359796551,), (1359796556,), (1359796558,), (1359796560,), (1359796576,), (1359796584,), (1359796588,), (1359796593,), (1359796622,), (1359796646,), (1359796650,), (1359796654,), (1359796658,), (1359796661,), (1359796682,), (1359796686,), (1359796692,), (1359796695,), (1359796699,), (1359796731,), (1359796726,), (1359796766,), (1359796772,), (1359796800,), (1359796804,), (1359796809,), (1359796814,), (1359796837,), (1359796842,), (1359796847,), (1359796851,), (1359796854,), (1359796868,), (1359796872,), (1359796878,), (1359796885,), (1359796916,), (1359796921,), (1359796925,), (1359796931,), (1359796934,), (1359796953,), (1359796957,), (1359796962,), (1359796967,), (1359796970,), (1359796989,), (1359796995,), (1359797001,), (1359797006,), (1359797027,), (1359797031,), (1359797035,), (1359797040,), (1359797044,), (1359797061,), (1359797064,), (1359797070,), (1359797076,), (1359797080,), (1359797102,), (1359797106,), (1359797110,), (1359797115,), (1359797136,), (1359797139,), (1359797143,), (1359797148,), (1359797153,), (1359797157,), (1359797171,), (1359797175,), (1359797182,), (1359797186,), (1359797190,), (1359797235,), (1359797238,), (1359797243,), (1359797249,), (1359797292,), (1359797306,), (1359797326,), (1359797333,), (1359797339,), (1359797385,), (1359797365,), (1359797367,), (1359797372,), (1359797377,), (1359797381,), (1359797402,), (1359797406,), (1359797410,), (1359797415,), (1359797417,), (1359797446,), (1359797449,), (1359797453,), (1359797457,), (1359797461,), (1359797464,), (1359797482,), (1359797486,), (1359797490,), (1359797494,), (1359797799,), (1359797830,), (1359797836,), (1359797854,), (1359797860,), (1359797864,), (1359797885,), (1359797890,), (1359797895,), (1359797900,), (1359798051,), (1359798071,), (1359798151,), (1359798155,), (1359798167,), (1359798174,), (1359798203,), (1359798207,), (1359798214,), (1359798216,), (1359798220,), (1359798245,), (1359798249,), (1359798253,), (1359798256,), (1359798259,), (1359798263,), (1359798284,), (1359798289,), (1359798294,), (1359798300,), (1359798305,), (1359798326,), (1359798331,), (1359798336,), (1359798340,), (1359798345,), (1359798365,), (1359798370,), (1359798374,), (1359798379,), (1359798384,), (1359798417,), (1359798420,), (1359798426,), (1359798432,), (1359798475,), (1359798480,), (1359798485,), (1359798503,), (1359798510,), (1359798534,), (1359798718,), (1359798722,), (1359798726,), (1359798751,), (1359798756,), (1359798759,), (1359798763,), (1359798770,), (1359798774,), (1359798786,), (1359798789,), (1359798795,), (1359798829,), (1359798834,), (1359798838,), (1359798843,), (1359798847,), (1359798852,), (1359798872,), (1359798877,), (1359798882,), (1359798888,), (1359798909,), (1359798913,), (1359798919,), (1359798923,), (1359799785,), (1359805093,), (1359805464,), (1359805469,), (1359805473,), (1359805477,), (1359806152,), (1359806162,), (1359806281,), (1359806287,), (1359806292,), (1359806323,), (1359806340,), (1359806345,), (1359806350,), (1359806353,), (1359806356,), (1359806382,), (1359806387,), (1359806392,), (1359806437,), (1359806531,), (1359806535,), (1359806539,), (1359806542,), (1359806546,), (1359806550,), (1359806574,), (1359806580,), (1359806587,), (1359806593,), (1359806597,), (1359806628,), (1359806632,), (1359806682,), (1359806666,), (1359806672,), (1359806677,), (1359806706,), (1359806711,), (1359806718,), (1359806723,), (1359806727,), (1359806748,), (1359806752,), (1359806756,), (1359806760,), (1359806792,), (1359806795,), (1359806798,), (1359806825,), (1359806832,), (1359806835,), (1359806838,), (1359806841,), (1359806846,), (1359806882,), (1359806884,), (1359806887,), (1359806890,), (1359806995,), (1359806997,), (1359807000,), (1359807143,), (1359807147,), (1359807199,), (1359807206,), (1359807209,), (1359807311,), (1359807341,), (1359807345,), (1359807366,), (1359807467,), (1359807472,), (1359807478,), (1359807495,), (1359807498,), (1359807500,), (1359807508,), (1359807551,), (1359807540,), (1359807545,), (1359807548,), (1359807591,), (1359807594,), (1359807598,), (1359807602,), (1359807605,), (1359807632,), (1359807635,), (1359807639,), (1359807643,), (1359807646,), (1359807685,), (1359807699,), (1359807703,), (1359807715,), (1359807727,), (1359807762,), (1359807765,), (1359807766,), (1359807767,), (1359807831,), (1359807832,), (1359807859,), (1359807863,), (1359807866,), (1359807875,), (1359807878,), (1359807905,), (1359807910,), (1359807913,), (1359807916,), (1359807919,), (1359807920,), (1359808194,), (1359808198,), (1359808203,), (1359808241,), (1359808245,), (1359808250,), (1359808254,), (1359808257,), (1359808294,), (1359808301,), (1359808303,), (1359808306,), (1359808309,), (1359808311,), (1359808333,), (1359808335,), (1359808338,), (1359808367,), (1359808369,), (1359808376,), (1359808386,), (1359808396,), (1359808423,), (1359808426,), (1359808429,), (1359808432,), (1359808436,), (1359808440,), (1359808487,), (1359808468,), (1359808473,), (1359808478,), (1359808483,), (1359808505,), (1359808929,), (1359808964,), (1359808974,), (1359809051,), (1359809092,), (1359809094,), (1359809098,), (1359809101,), (1359809165,), (1359809146,), (1359809151,), (1359809156,), (1359809161,), (1359809163,), (1359809194,), (1359809200,), (1359809205,), (1359809317,), (1359809347,), (1359809564,), (1359809591,), (1359809640,), (1359809697,), (1359809741,), (1359810070,), (1359810073,), (1359810086,), (1359810114,), (1359810142,), (1359810400,), (1359810438,), (1359810472,), (1359810485,), (1359810489,), (1359810495,), (1359810699,), (1359810728,), (1359810783,), (1359810902,), (1359810907,), (1359810910,), (1359810914,), (1359810924,), (1359811084,), (1359811126,), (1359811246,), (1359811275,), (1359811501,), (1359811534,), (1359811634,), (1359811777,), (1359812135,), (1359812138,), (1359812140,), (1359812143,), (1359812148,), (1359812372,), (1359812414,), (1359812446,), (1359812479,), (1359812505,), (1359812531,), (1359812603,), (1359812605,), (1359812609,), (1359812612,), (1359812812,), (1359812816,), (1359812820,), (1359812825,), (1359812830,), (1359812931,), (1359812959,), (1359812986,), (1359813013,), (1359813038,), (1359813066,), (1359813173,), (1359813161,), (1359813167,), (1359813170,), (1359813201,), (1359813204,), (1359813209,), (1359813210,), (1359813239,), (1359813243,), (1359813249,), (1359813254,), (1359813258,), (1359813287,), (1359813291,), (1359813296,), (1359813301,), (1359813305,), (1359813343,), (1359813355,), (1359813518,), (1359813521,), (1359813524,), (1359813538,), (1359813567,), (1359813597,), (1359813640,), (1359813645,), (1359813649,), (1359813653,), (1359813657,), (1359813661,), (1359813691,), (1359813702,), (1359813708,), (1359813712,), (1359813743,), (1359813753,), (1359813756,), (1359813759,), (1359813763,), (1359813767,), (1359813784,), (1359813788,), (1359813793,), (1359813798,), (1359813801,), (1359813805,), (1359813837,), (1359813842,), (1359813848,), (1359813854,), (1359813883,), (1359813888,), (1359813914,), (1359813917,), (1359813923,), (1359813950,), (1359813954,), (1359813958,), (1359813962,), (1359814154,), (1359814186,), (1359814221,), (1359814263,), (1359814295,), (1359814793,), (1359814628,), (1359814666,), (1359814725,), (1359814762,), (1359814890,), (1359814893,), (1359814898,), (1359814903,), (1359815200,), (1359815216,), (1359815224,), (1359815229,), (1359815476,), (1359815490,), (1359815495,), (1359815501,), (1359815504,), (1359815530,), (1359815554,), (1359815840,), (1359815846,), (1359815939,), (1359815947,), (1359815955,), (1359816008,), (1359816017,), (1359816061,), (1359816066,), (1359816141,), (1359816154,), (1359816285,), (1359816290,), (1359816295,), (1359816300,), (1359816304,), (1359816325,), (1359816449,), (1359816487,), (1359816520,), (1359816553,), (1359816585,), (1359816708,), (1359816713,), (1359816716,), (1359816743,), (1359816748,), (1359816752,), (1359816809,), (1359816796,), (1359816801,), (1359816806,), (1359816837,), (1359816849,), (1359816852,), (1359816857,), (1359816863,), (1359816961,), (1359816965,), (1359816970,), (1359816975,), (1359817020,), (1359817024,), (1359817030,), (1359817035,), (1359817040,), (1359817258,), (1359817293,), (1359817323,), (1359817343,), (1359817348,), (1359817417,), (1359817429,), (1359817436,), (1359817440,), (1359817443,), (1359817446,), (1359817474,), (1359817492,), (1359817500,), (1359817506,), (1359817533,), (1359817554,), (1359817583,), (1359817613,), (1359817641,), (1359817678,), (1359817874,), (1359817877,), (1359817883,), (1359817976,), (1359817986,), (1359817992,), (1359817998,), (1359818003,), (1359818034,), (1359818076,), (1359818091,), (1359818120,), (1359818128,), (1359818248,), (1359818253,), (1359818279,), (1359818296,), (1359818300,), (1359818406,), (1359818431,), (1359818438,), (1359818452,), (1359818482,), (1359818488,), (1359818494,), (1359818694,), (1359818524,), (1359818584,), (1359818588,), (1359818594,), (1359818777,), (1359818893,), (1359818922,), (1359819042,), (1359819045,), (1359819050,), (1359819079,), (1359819083,), (1359819421,), (1359819428,), (1359819442,), (1359819447,), (1359819459,), (1359819543,), (1359819549,), (1359819568,), (1359819573,), (1359819587,), (1359819615,), (1359819627,), (1359819633,), (1359819641,), (1359819647,), (1359819653,), (1359819680,), (1359819684,), (1359819689,), (1359819837,), (1359819852,), (1359819870,), (1359819873,), (1359819902,), (1359819921,), (1359820007,), (1359820012,), (1359820016,), (1359820115,), (1359820127,), (1359820134,), (1359820138,), (1359820141,), (1359820145,), (1359820174,), (1359820177,), (1359820182,), (1359820191,), (1359820197,), (1359820238,), (1359820222,), (1359820227,), (1359820232,), (1359820267,), (1359820270,), (1359820274,), (1359820278,), (1359820283,), (1359820315,), (1359820320,), (1359820325,), (1359820330,), (1359820334,), (1359820338,), (1359820374,), (1359820377,), (1359820382,), (1359820449,), (1359820457,), (1359820461,), (1359820468,), (1359820473,), (1359820512,), (1359820517,), (1359820522,), (1359820526,), (1359820559,), (1359820567,), (1359820573,), (1359820577,), (1359820582,), (1359820622,), (1359820626,), (1359820632,), (1359820663,), (1359820680,), (1359820750,), (1359820781,), (1359820940,), (1359820966,), (1359821101,), (1359821104,), (1359821109,), (1359821238,), (1359821242,), (1359821310,), (1359821296,), (1359821300,), (1359821305,), (1359821340,), (1359821346,), (1359821351,), (1359821389,), (1359821396,), (1359821404,), (1359821410,), (1359821443,), (1359821448,), (1359821454,), (1359821459,), (1359821469,), (1359821473,), (1359821555,), (1359821574,), (1359821593,), (1359821600,), (1359821613,), (1359821682,), (1359821686,), (1359821691,), (1359821696,), (1359821734,), (1359821737,), (1359821741,), (1359821745,), (1359821749,), (1359821753,), (1359821772,), (1359821777,), (1359821782,), (1359821790,), (1359821818,), (1359821858,), (1359822046,), (1359822051,), (1359822057,), (1359822061,), (1359822065,), (1359822069,), (1359822104,), (1359822108,), (1359822139,), (1359822151,), (1359822329,), (1359822338,), (1359822376,), (1359822395,), (1359822398,), (1359822431,), (1359822535,), (1359822538,), (1359822551,), (1359822563,), (1359822567,), (1359822607,), (1359822640,), (1359822681,), (1359822714,), (1359822850,), (1359822856,), (1359822863,), (1359822866,), (1359822871,), (1359822873,), (1359822908,), (1359822912,), (1359822917,), (1359822922,), (1359822967,), (1359822951,), (1359822955,), (1359822958,), (1359822961,), (1359822965,), (1359822987,), (1359822992,), (1359822994,), (1359822998,), (1359823028,), (1359823032,), (1359823035,), (1359823038,), (1359823042,), (1359823046,), (1359823092,), (1359823095,), (1359823098,), (1359823101,), (1359823106,), (1359823175,), (1359823179,), (1359823183,), (1359823223,), (1359823227,), (1359823230,), (1359823598,), (1359823662,), (1359823667,), (1359823670,), (1359823673,), (1359823676,), (1359823753,), (1359823755,), (1359823758,), (1359823761,), (1359823763,), (1359823793,), (1359823796,), (1359823995,), (1359823997,), (1359824000,), (1359824003,), (1359824006,), (1359824008,), (1359824042,), (1359824047,), (1359824053,), (1359824057,), (1359824061,), (1359824081,), (1359824085,), (1359824087,), (1359824175,), (1359824177,), (1359824181,), (1359824209,), (1359824237,), (1359824249,), (1359824289,), (1359824291,), (1359824295,), (1359824298,), (1359824358,), (1359824649,), (1359824653,), (1359824658,), (1359824664,), (1359824715,), (1359824695,), (1359824699,), (1359824702,), (1359824706,), (1359824711,), (1359824739,), (1359824779,), (1359824798,), (1359824805,), (1359824917,), (1359824925,), (1359824928,), (1359824939,), (1359824977,), (1359824997,), (1359825031,), (1359825035,), (1359825040,), (1359825045,), (1359825050,), (1359825054,), (1359825091,), (1359825104,), (1359825108,), (1359825111,), (1359825113,), (1359825116,), (1359825297,), (1359825433,), (1359825527,), (1359825578,), (1359825955,), (1359825957,), (1359825960,), (1359825963,), (1359826013,), (1359826018,), (1359826022,), (1359826024,), (1359826058,), (1359826248,), (1359826253,), (1359826256,), (1359826258,), (1359826337,), (1359826367,), (1359826396,), (1359826422,), (1359826457,), (1359826486,), (1359826664,), (1359826667,), (1359826670,), (1359826675,), (1359826679,), (1359826683,), (1359826737,), (1359826741,), (1359826744,), (1359826755,), (1359826764,), (1359826775,), (1359826962,), (1359826974,), (1359826998,), (1359827363,), (1359827434,), (1359827437,), (1359827439,), (1359827454,), (1359827483,), (1359827604,), (1359827611,), (1359827637,), (1359827642,), (1359827645,), (1359827763,), (1359827750,), (1359827752,), (1359827755,), (1359827758,), (1359827761,), (1359827848,), (1359827849,), (1359827854,), (1359827883,), (1359828031,), (1359828032,), (1359828037,), (1359828040,), (1359828042,), (1359828046,), (1359828074,), (1359828080,), (1359828084,), (1359828167,), (1359828171,), (1359828174,), (1359828176,), (1359828178,), (1359828181,), (1359828211,), (1359828225,), (1359828339,), (1359828346,), (1359828352,), (1359828354,), (1359828441,), (1359828453,), (1359828464,), (1359828469,), (1359828477,), (1359828505,), (1359828779,), (1359828781,), (1359828784,), (1359828787,), (1359828792,), (1359828903,), (1359828909,), (1359828914,), (1359828922,), (1359833186,), (1359833142,), (1359833160,), (1359833174,), (1359833297,), (1359833326,), (1359833337,), (1359833348,), (1359833357,), (1359833362,), (1359833453,), (1359833465,), (1359833473,), (1359833542,), (1359833571,), (1359833601,), (1359833632,), (1359833663,), (1359833686,), (1359833722,), (1359833728,), (1359833734,), (1359833739,), (1359833755,), (1359833774,), (1359833777,), (1359833781,), (1359833785,), (1359833817,), (1359833821,), (1359833825,), (1359833829,), (1359833833,), (1359833860,), (1359833867,), (1359833874,), (1359833882,), (1359833941,), (1359833944,), (1359833948,), (1359833957,), (1359833982,), (1359834035,), (1359834041,), (1359834047,), (1359834051,), (1359834069,), (1359834074,), (1359834075,), (1359834078,), (1359834082,), (1359834084,), (1359834107,), (1359834111,), (1359834115,), (1359834119,), (1359834123,), (1359834125,), (1359834153,), (1359834157,), (1359834160,), (1359834192,), (1359834205,), (1359834215,), (1359834218,), (1359834223,), (1359834256,), (1359836338,), (1359836342,), (1359836376,), (1359836379,), (1359836383,), (1359836387,), (1359836389,), (1359836412,), (1359836566,), (1359836570,), (1359836574,), (1359836621,), (1359836632,), (1359836638,), (1359836643,), (1359836646,), (1359836752,), (1359836757,), (1359836761,), (1359836764,), (1359836767,), (1359836919,), (1359836923,), (1359836928,), (1359837007,), (1359837017,), (1359837029,), (1359837032,), (1359837258,), (1359837290,), (1359837319,), (1359837348,), (1359837379,), (1359837749,), (1359837658,), (1359837690,), (1359837719,), (1359838089,), (1359838091,), (1359838093,), (1359838094,), (1359838249,), (1359838275,), (1359838297,), (1359838324,), (1359838358,), (1359838378,), (1359838472,), (1359838475,), (1359838478,), (1359838509,), (1359838513,), (1359838515,), (1359838542,), (1359838545,), (1359838549,), (1359838551,), (1359838554,), (1359838555,), (1359838694,), (1359838721,), (1359838751,), (1359838784,), (1359839487,), (1359839599,), (1359839710,), (1359839961,), (1359839971,), (1359839996,), (1359840035,), (1359840044,), (1359840046,), (1359840049,), (1359840052,), (1359840055,), (1359840073,), (1359840075,), (1359840079,), (1359840083,), (1359840085,), (1359840088,), (1359840141,), (1359840143,), (1359840162,), (1359840190,), (1359840621,), (1359840651,), (1359840679,), (1359840707,), (1359840733,), (1359840998,), (1359841002,), (1359841006,), (1359841010,), (1359841012,), (1359841033,), (1359841035,), (1359841038,), (1359841070,), (1359841063,), (1359841066,), (1359841104,), (1359841108,), (1359841115,), (1359841150,), (1359841153,), (1359841157,), (1359841161,), (1359841163,), (1359841166,), (1359841205,), (1359841207,), (1359841211,), (1359841246,), (1359841250,), (1359841255,), (1359841260,), (1359841264,), (1359841268,), (1359841290,), (1359841291,), (1359841294,), (1359841297,), (1359841300,), (1359841349,), (1359841378,), (1359841406,), (1359841426,), (1359841430,), (1359841455,), (1359841469,), (1359841474,), (1359841477,), (1359841499,), (1359841503,), (1359841506,), (1359841510,), (1359841513,), (1359841531,), (1359841532,), (1359841537,), (1359841542,), (1359841547,), (1359841569,), (1359841573,), (1359841646,), (1359841649,), (1359841652,), (1359841656,), (1359841734,), (1359841763,), (1359841792,), (1359841828,), (1359842049,), (1359842100,), (1359842274,), (1359842279,), (1359842284,), (1359842289,), (1359842314,), (1359842564,), (1359842606,), (1359842608,), (1359842610,), (1359842614,), (1359842618,), (1359842621,), (1359842734,), (1359842752,), (1359842755,), (1359842765,), (1359842795,), (1359842798,), (1359842801,), (1359842805,), (1359842834,), (1359842837,), (1359842840,), (1359842945,), (1359842947,), (1359842985,), (1359842988,), (1359842992,), (1359842995,), (1359842998,), (1359843051,), (1359843062,), (1359843068,), (1359843072,), (1359843073,), (1359843077,), (1359843185,), (1359843218,), (1359843347,), (1359843350,), (1359843353,), (1359843356,), (1359843387,), (1359843418,), (1359843468,), (1359843472,), (1359843476,), (1359843479,), (1359843513,), (1359843515,), (1359843518,), (1359843521,), (1359843524,), (1359843526,), (1359843724,), (1359843752,), (1359843762,), (1359844102,), (1359844106,), (1359844112,), (1359844118,), (1359844128,), (1359844133,), (1359844136,), (1359844140,), (1359844179,), (1359844165,), (1359844168,), (1359844172,), (1359844175,), (1359844207,), (1359844216,), (1359844219,), (1359844222,), (1359844256,), (1359844260,), (1359844263,), (1359844265,), (1359844296,), (1359844300,), (1359844304,), (1359844308,), (1359844311,), (1359844344,), (1359844346,), (1359844349,), (1359844352,), (1359844389,), (1359844392,), (1359844396,), (1359844400,), (1359844401,), (1359844560,), (1359844561,), (1359844562,), (1359844564,), (1359844567,), (1359844606,), (1359844611,), (1359844617,), (1359844620,), (1359844621,), (1359844623,), (1359844647,), (1359844650,), (1359844653,), (1359844656,), (1359844709,), (1359844721,), (1359844727,), (1359844730,), (1359844756,), (1359844854,), (1359844856,), (1359844859,), (1359844862,), (1359844864,), (1359844909,), (1359844912,), (1359844922,), (1359844952,), (1359845036,), (1359845299,), (1359845303,), (1359845307,), (1359845311,), (1359845314,), (1359845317,), (1359845340,), (1359845342,), (1359845346,), (1359845350,), (1359845421,), (1359845430,), (1359845434,), (1359845437,), (1359846284,), (1359846217,), (1359846256,), (1359846627,), (1359846669,), (1359846696,), (1359846950,), (1359846955,), (1359846958,), (1359846962,), (1359847019,), (1359847022,), (1359847026,), (1359847030,), (1359847033,), (1359847069,), (1359847074,), (1359847080,), (1359847094,), (1359847181,), (1359847259,), (1359847263,), (1359847267,), (1359847272,), (1359847276,), (1359847310,), (1359847314,), (1359847318,), (1359847492,), (1359847496,), (1359847504,), (1359847509,), (1359847513,), (1359847541,), (1359847547,), (1359847554,), (1359847557,), (1359847563,), (1359847565,), (1359847591,), (1359847596,), (1359847599,), (1359847603,), (1359847729,), (1359847734,), (1359847739,), (1359847765,), (1359847768,), (1359847773,), (1359847778,), (1359847782,), (1359847814,), (1359847824,), (1359847829,), (1359847833,), (1359847838,), (1359847843,), (1359847976,), (1359847945,), (1359847964,), (1359847969,), (1359848027,), (1359848031,), (1359848036,), (1359848041,), (1359848044,), (1359848049,), (1359848066,), (1359848071,), (1359848075,), (1359848079,), (1359848083,), (1359848151,), (1359848159,), (1359848164,), (1359848168,), (1359848172,), (1359848200,), (1359848204,), (1359848207,), (1359848211,), (1359848215,), (1359848241,), (1359848249,), (1359848259,), (1359848269,), (1359848274,), (1359848530,), (1359848602,), (1359848606,), (1359848688,), (1359848713,), (1359848781,), (1359848786,), (1359848794,), (1359848801,), (1359848822,), (1359848827,), (1359848833,), (1359848837,), (1359848840,), (1359848867,), (1359848876,), (1359848885,), (1359848892,), (1359848897,), (1359848922,), (1359848926,), (1359848931,), (1359848960,), (1359848969,), (1359848976,), (1359848980,), (1359848983,), (1359849002,), (1359849006,), (1359849009,), (1359849076,), (1359849093,), (1359849099,), (1359849111,), (1359849119,), (1359849143,), (1359849146,), (1359849150,), (1359849201,), (1359849184,), (1359849188,), (1359849192,), (1359849195,), (1359849198,), (1359849223,), (1359849230,), (1359849232,), (1359849234,), (1359849236,), (1359849241,), (1359849264,), (1359849279,), (1359849282,), (1359849315,), (1359849319,), (1359849361,), (1359849365,), (1359849369,), (1359849372,), (1359849375,), (1359849410,), (1359849412,), (1359849415,), (1359849418,), (1359849420,), (1359849421,), (1359849446,), (1359849449,), (1359849453,), (1359849457,), (1359849461,), (1359849488,), (1359849531,), (1359849533,), (1359849537,), (1359849566,), (1359849570,), (1359849575,), (1359849581,), (1359849586,), (1359849590,), (1359849616,), (1359849619,), (1359849624,), (1359849627,), (1359849657,), (1359849660,), (1359849663,), (1359849665,), (1359849668,), (1359849694,), (1359849699,), (1359849712,), (1359849799,), (1359849835,), (1359849841,), (1359849863,), (1359850042,), (1359849976,), (1359849980,), (1359849983,), (1359850037,), (1359850073,), (1359850077,), (1359850081,), (1359850100,), (1359850205,), (1359850236,), (1359850259,), (1359850262,), (1359850265,), (1359850267,), (1359850357,), (1359850364,), (1359850383,), (1359850388,), (1359850401,), (1359850569,), (1359850574,), (1359850713,), (1359850717,), (1359850722,), (1359850726,), (1359850729,), (1359850883,), (1359850914,), (1359850944,), (1359850974,), (1359851033,), (1359851038,), (1359851043,), (1359851045,), (1359851049,), (1359851051,), (1359851100,), (1359851104,), (1359851107,), (1359851384,), (1359851458,), (1359851571,), (1359851793,), (1359851840,), (1359851843,), (1359851870,), (1359851975,), (1359851977,), (1359851980,), (1359851984,), (1359851987,), (1359851996,), (1359852393,), (1359852398,), (1359852407,), (1359852438,), (1359852476,), (1359852481,), (1359852487,), (1359852492,), (1359852525,), (1359852531,), (1359852535,), (1359852539,), (1359852544,), (1359852547,), (1359852575,), (1359852567,), (1359852571,), (1359852609,), (1359852612,), (1359852615,), (1359852618,), (1359852667,), (1359852676,), (1359852688,), (1359852695,), (1359852699,), (1359852733,), (1359852737,), (1359852741,), (1359852745,), (1359852750,), (1359852751,), (1359852772,), (1359852782,), (1359852789,), (1359852922,), (1359852927,), (1359852931,), (1359852935,), (1359852959,), (1359852969,), (1359852979,), (1359852983,), (1359852988,), (1359853006,), (1359853011,), (1359853016,), (1359853045,), (1359853178,), (1359853182,), (1359853188,), (1359853206,), (1359853235,), (1359853238,), (1359853245,), (1359853317,), (1359853322,), (1359853376,), (1359853382,), (1359853416,), (1359853422,), (1359853425,), (1359853430,), (1359853435,), (1359853504,), (1359853509,), (1359853742,), (1359853749,), (1359853755,), (1359853886,), (1359854514,), (1359854524,), (1359854529,), (1359854594,), (1359854598,), (1359854603,), (1359854628,), (1359854632,), (1359854640,), (1359854686,), (1359854692,), (1359854699,), (1359854705,), (1359854710,), (1359854748,), (1359854752,), (1359854759,), (1359854798,), (1359854913,), (1359854919,), (1359854924,), (1359854927,), (1359854933,), (1359855034,), (1359855047,), (1359855089,), (1359855220,), (1359855225,), (1359855230,), (1359855233,), (1359855237,), (1359855239,), (1359855259,), (1359855265,), (1359855270,), (1359855276,), (1359855326,), (1359855395,), (1359857955,), (1359857639,), (1359858968,), (1359859228,), (1359859332,), (1359859404,), (1359859447,), (1359859450,), (1359859454,), (1359859993,), (1359859893,), (1359860203,), (1359860205,), (1359860303,), (1359860424,), (1359860562,), (1359860716,), (1359860841,), (1359861727,), (1359861720,), (1359864038,), (1359864947,), (1359865472,), (1359865480,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20052025': {'nb_upload': 3, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23182476]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1359865480, 1359865472, 1359864947] map_info['map_portfolio_photo'] : {23182476: [1359865480, 1359865472, 1359864947]} final : True mtd_id 4302 list_pids : [1359865480, 1359865472, 1359864947] Looping around the photos to save general results len do output : 1 /23182476Didn'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, '2914235') ('4302', '23182476', '1359865480', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359865472', None, None, None, None, None, '2914235') ('4302', None, None, None, None, None, None, None, '2914235') ('4302', '23182476', '1359864947', None, None, None, None, None, '2914235') 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', None, '23182476', 'None', None, None, None, None, '2914235'), ('4302', '23182476', '1359865480', None, None, None, None, None, '2914235'), ('4302', '23182476', '1359865472', None, None, None, None, None, '2914235'), ('4302', '23182476', '1359864947', None, None, None, None, None, '2914235')] time used for this insertion : 0.020239591598510742 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2292633056640625 time spend to save output : 0.020439863204956055 total time spend for step 5 : 3.2497031688690186 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 (2914235) 1.86user 2.45system 0:10.72elapsed 40%CPU (0avgtext+0avgdata 157060maxresident)k 248inputs+2576outputs (1major+64204minor)pagefaults 0swaps