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 : 2770230 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 (2611076) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2611076) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20784610 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2611076'] with mtr_portfolio_ids : ['20784610'] and first list_photo_ids : [] new path : /proc/2770230/ Name: python3 Umask: 0002 State: R (running) Tgid: 2770230 Ngid: 0 Pid: 2770230 PPid: 2770229 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2770230 NSpid: 2770230 NSpgid: 2768107 NSsid: 2768107 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99968 kB VmRSS: 99968 kB RssAnon: 59760 kB RssFile: 40208 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 85 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2770230', 'Ngid': '0', 'Pid': '2770230', 'PPid': '2770229', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2770230', 'NSpid': '2770230', 'NSpgid': '2768107', 'NSsid': '2768107', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99968 kB', 'VmRSS': '99968 kB', 'RssAnon': '59760 kB', 'RssFile': '40208 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '85', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '2770230', '1106932', '0', '1106932', '865680', '99968', b'', 'marlene', '2611076') 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 (20784610) 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 (2611076 ) ) 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 (20784610) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339313498, 'portfolio_id': 20784610}, {'photo_id': 1339312958, 'portfolio_id': 20784610}, {'photo_id': 1339312946, 'portfolio_id': 20784610}, {'photo_id': 1339312928, 'portfolio_id': 20784610}, {'photo_id': 1339312926, 'portfolio_id': 20784610}, {'photo_id': 1339312919, 'portfolio_id': 20784610}, {'photo_id': 1339312898, 'portfolio_id': 20784610}, {'photo_id': 1339312896, 'portfolio_id': 20784610}, {'photo_id': 1339312889, 'portfolio_id': 20784610}, {'photo_id': 1339312609, 'portfolio_id': 20784610}] map_portfolio_id_photo_id: {20784610: [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609]} ##### 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.018274784088134766 #### 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 Feb 25 00:40:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20784610) 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 : 20784610 get user id for portfolio 20784610 get sub ptf for main ptf 20784610, type 3726 and hashtags ['Carton_gris', 'kraft', 'environnement', 'papier', 'autre_refus', 'Carton_brun', 'Teint_Dans_La_Masse', 'cartonnette', 'plastique', 'flou', 'metal', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20784610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) 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`=20784610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_3726_mal_croppe_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)[[20784610, 20785433, 3726, 0.5, 2107753020, 979], [20784610, 20785434, 3726, 0.5, 493202403, 979], [20784610, 20785435, 3726, 0.5, 493012381, 979], [20784610, 20785436, 3726, 0.5, 492668766, 979], [20784610, 20785437, 3726, 0.5, 2107752406, 979], [20784610, 20785438, 3726, 0.5, 2107753024, 979], [20784610, 20785439, 3726, 0.5, 2107752385, 979], [20784610, 20785440, 3726, 0.5, 702398920, 979], [20784610, 20785441, 3726, 0.5, 492725882, 979], [20784610, 20785442, 3726, 0.5, 492777938, 979], [20784610, 20785443, 3726, 0.5, 492628673, 979], [20784610, 20785444, 3726, 0.5, 2107755527, 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`=20784610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) 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`=20784610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20784610, 'sub_port_id': 20785433, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424709, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'kraft': {'main_port_id': 20784610, 'sub_port_id': 20785434, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424710, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'environnement': {'main_port_id': 20784610, 'sub_port_id': 20785435, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424711, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'papier': {'main_port_id': 20784610, 'sub_port_id': 20785436, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424712, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'autre_refus': {'main_port_id': 20784610, 'sub_port_id': 20785437, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424713, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'Carton_brun': {'main_port_id': 20784610, 'sub_port_id': 20785438, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424714, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20784610, 'sub_port_id': 20785439, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424715, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'cartonnette': {'main_port_id': 20784610, 'sub_port_id': 20785440, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424716, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'plastique': {'main_port_id': 20784610, 'sub_port_id': 20785441, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424717, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'flou': {'main_port_id': 20784610, 'sub_port_id': 20785442, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424718, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'metal': {'main_port_id': 20784610, 'sub_port_id': 20785443, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424719, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}, 'mal_croppe': {'main_port_id': 20784610, 'sub_port_id': 20785444, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424720, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20785433 , 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=20784610 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 (20785433) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785434 , 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=20784610 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 (20785434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785435 , 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=20784610 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 (20785435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785436 , 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=20784610 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 (20785436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785437 , 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=20784610 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 (20785437) result : ((1339312955,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785438 , 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=20784610 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 (20785438) result : ((1339312956,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785439 , 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=20784610 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 (20785439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785440 , 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=20784610 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 (20785440) result : ((1339313335,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785441 , 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=20784610 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 (20785441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785442 , 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=20784610 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 (20785442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785443 , 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=20784610 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 (20785443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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 20785444 , 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=20784610 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 (20785444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610) result : ((1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,)) 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`=20784610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) 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`=20784610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_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__24022025_05_00_14_10223_4417_mal_croppe_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)[[20784610, 20785445, 4417, 0.5, 2107753020, 979], [20784610, 20785446, 4417, 0.5, 493202403, 979], [20784610, 20785447, 4417, 0.5, 493012381, 979], [20784610, 20785448, 4417, 0.5, 492668766, 979], [20784610, 20785449, 4417, 0.5, 2107752406, 979], [20784610, 20785450, 4417, 0.5, 2107753024, 979], [20784610, 20785451, 4417, 0.5, 2107752385, 979], [20784610, 20785452, 4417, 0.5, 702398920, 979], [20784610, 20785453, 4417, 0.5, 492725882, 979], [20784610, 20785454, 4417, 0.5, 492777938, 979], [20784610, 20785455, 4417, 0.5, 492628673, 979], [20784610, 20785456, 4417, 0.5, 2107755527, 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`=20784610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) 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`=20784610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','environnement','papier','autre_refus','Carton_brun','Teint_Dans_La_Masse','cartonnette','plastique','flou','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 20784610, 'sub_port_id': 20785445, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424721, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'kraft': {'main_port_id': 20784610, 'sub_port_id': 20785446, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424722, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'environnement': {'main_port_id': 20784610, 'sub_port_id': 20785447, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424723, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'papier': {'main_port_id': 20784610, 'sub_port_id': 20785448, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424724, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'autre_refus': {'main_port_id': 20784610, 'sub_port_id': 20785449, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424725, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'Carton_brun': {'main_port_id': 20784610, 'sub_port_id': 20785450, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424726, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20784610, 'sub_port_id': 20785451, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424727, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'cartonnette': {'main_port_id': 20784610, 'sub_port_id': 20785452, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424728, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'plastique': {'main_port_id': 20784610, 'sub_port_id': 20785453, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424729, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'flou': {'main_port_id': 20784610, 'sub_port_id': 20785454, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424730, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'metal': {'main_port_id': 20784610, 'sub_port_id': 20785455, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424731, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}, 'mal_croppe': {'main_port_id': 20784610, 'sub_port_id': 20785456, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13424732, 'last_updated_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 0, 40, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 0, 40, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785445,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20785456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20785444 lien utilise dans velours : https://www.fotonower.com/velours/20785445,20785446,20785447,20785448,20785449,20785450,20785451,20785452,20785453,20785454,20785455,20785456?tags=Carton_gris,kraft,environnement,papier,autre_refus,Carton_brun,Teint_Dans_La_Masse,cartonnette,plastique,flou,metal,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20784610]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] map_info['map_portfolio_photo'] : {20784610: [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609]} final : False mtd_id 4302 list_pids : [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] Looping around the photos to save general results len do output : 1 /20784610. 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, '2611076') ('4302', '20784610', '1339313498', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312958', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312946', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312928', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312926', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312919', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312898', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312896', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312889', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312609', None, None, None, None, None, '2611076') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20784610', "{'Carton_gris': 20785433, 'kraft': 20785434, 'environnement': 20785435, 'papier': 20785436, 'autre_refus': 20785437, 'Carton_brun': 20785438, 'Teint_Dans_La_Masse': 20785439, 'cartonnette': 20785440, 'plastique': 20785441, 'flou': 20785442, 'metal': 20785443, 'mal_croppe': 20785444}", None, None, None, None, '2611076'), ('4302', '20784610', '1339313498', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312958', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312946', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312928', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312926', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312919', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312898', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312896', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312889', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312609', None, None, None, None, None, '2611076')] time used for this insertion : 0.01455068588256836 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9295151233673096 time spend to save output : 0.014812469482421875 total time spend for step 1 : 1.9443275928497314 step2:final Tue Feb 25 00:40:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20784610) 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 20784610 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339312609,1339312889,1339312898,1339312896,1339312919,1339312928,1339312926,1339312946,1339312958,1339313498); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20784610]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} new output for save of step final : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] map_info['map_portfolio_photo'] : {20784610: [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609]} final : False mtd_id 4302 list_pids : [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] Looping around the photos to save general results len do output : 10 /1339313498.Didn't retrieve data . /1339312958.Didn't retrieve data . /1339312946.Didn't retrieve data . /1339312928.Didn't retrieve data . /1339312926.Didn't retrieve data . /1339312919.Didn't retrieve data . /1339312898.Didn't retrieve data . /1339312896.Didn't retrieve data . /1339312889.Didn't retrieve data . /1339312609.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, '2611076') ('4302', '20784610', '1339313498', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312958', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312946', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312928', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312926', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312919', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312898', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312896', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312889', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312609', None, None, None, None, None, '2611076') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '20784610', '1339313498', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312958', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312946', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312928', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312926', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312919', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312898', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312896', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312889', '0.037121230287397895', None, None, None, None, '2611076'), ('4302', '20784610', '1339312609', '0.037121230287397895', None, None, None, None, '2611076')] time used for this insertion : 0.015040874481201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.03136157989501953 time spend to save output : 0.01563096046447754 total time spend for step 2 : 0.04699254035949707 step3:velours_tree Tue Feb 25 00:40:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20784610: [{'Carton_gris': 20785433, 'kraft': 20785434, 'environnement': 20785435, 'papier': 20785436, 'autre_refus': 20785437, 'Carton_brun': 20785438, 'Teint_Dans_La_Masse': 20785439, 'cartonnette': 20785440, 'plastique': 20785441, 'flou': 20785442, 'metal': 20785443, 'mal_croppe': 20785444}]} input_args_next_step : {20784610: ()} output_args : {20784610: [{'Carton_gris': 20785433, 'kraft': 20785434, 'environnement': 20785435, 'papier': 20785436, 'autre_refus': 20785437, 'Carton_brun': 20785438, 'Teint_Dans_La_Masse': 20785439, 'cartonnette': 20785440, 'plastique': 20785441, 'flou': 20785442, 'metal': 20785443, 'mal_croppe': 20785444}]} args : 20784610 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 : ({'Carton_gris': 20785433, 'kraft': 20785434, 'environnement': 20785435, 'papier': 20785436, 'autre_refus': 20785437, 'Carton_brun': 20785438, 'Teint_Dans_La_Masse': 20785439, 'cartonnette': 20785440, 'plastique': 20785441, 'flou': 20785442, 'metal': 20785443, 'mal_croppe': 20785444},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20784610) 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([20784610]) 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.3157811164855957 time spend to save output : 5.650520324707031e-05 total time spend for step 3 : 0.3158376216888428 step4:send_mail_cod Tue Feb 25 00:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} input_args_next_step : {1339313498: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339313498 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312958 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312946 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312928 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312926 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312919 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312898 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312896 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312889 depend.output_id : 0 input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ()} output_args : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',)} args : 1339312609 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 : {20784610: [{'Carton_gris': 20785433, 'kraft': 20785434, 'environnement': 20785435, 'papier': 20785436, 'autre_refus': 20785437, 'Carton_brun': 20785438, 'Teint_Dans_La_Masse': 20785439, 'cartonnette': 20785440, 'plastique': 20785441, 'flou': 20785442, 'metal': 20785443, 'mal_croppe': 20785444}]} input_args_next_step : {1339313498: ('0.037121230287397895',), 1339312958: ('0.037121230287397895',), 1339312946: ('0.037121230287397895',), 1339312928: ('0.037121230287397895',), 1339312926: ('0.037121230287397895',), 1339312919: ('0.037121230287397895',), 1339312898: ('0.037121230287397895',), 1339312896: ('0.037121230287397895',), 1339312889: ('0.037121230287397895',), 1339312609: ('0.037121230287397895',), 20784610: ()} output_args : {20784610: [{'Carton_gris': 20785433, 'kraft': 20785434, 'environnement': 20785435, 'papier': 20785436, 'autre_refus': 20785437, 'Carton_brun': 20785438, 'Teint_Dans_La_Masse': 20785439, 'cartonnette': 20785440, 'plastique': 20785441, 'flou': 20785442, 'metal': 20785443, 'mal_croppe': 20785444}]} args : 20784610 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 :11, first value : ('0.037121230287397895',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20784610) 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 (1339313498,1339312958,1339312946,1339312928,1339312926,1339312919,1339312898,1339312896,1339312889,1339312609) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339312609 begin to download photo : 1339312898 begin to download photo : 1339312928 begin to download photo : 1339313498 download finish for photo 1339312928 begin to download photo : 1339312946 download finish for photo 1339313498 download finish for photo 1339312609 begin to download photo : 1339312889 download finish for photo 1339312898 begin to download photo : 1339312919 download finish for photo 1339312946 begin to download photo : 1339312958 download finish for photo 1339312889 begin to download photo : 1339312896 download finish for photo 1339312919 begin to download photo : 1339312926 download finish for photo 1339312958 download finish for photo 1339312896 download finish for photo 1339312926 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette207854341740440459/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P20784610_25-02-2025_00_40_59.pdf 20785434 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=20785434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207854341740440459 20785437 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=20785437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339312955: '1740370251_3752393_1339312609_d125c5d77c750755fe206689fe541c31_rle_crop_3685030394_0.png'} change filename to text .imagette207854371740440459/ imagette207854371740440459/1740370251_3752393_1339312609_d125c5d77c750755fe206689fe541c31_rle_crop_3685030394_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/14914c1cf1712f3e33f030d02f562d12_61978085.png imagette207854371740440459 20785440 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=20785440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339313335: '1740370633_3755666_1339312926_e61fd449f3bd857eadfc14749fd61d18_rle_crop_3685033288_0.png'} change filename to text .imagette207854401740440459/ imagette207854401740440459/1740370633_3755666_1339312926_e61fd449f3bd857eadfc14749fd61d18_rle_crop_3685033288_0.png.png imagette207854411740440459/ imagette207854421740440459/ imagette207854431740440459/ imagette207854441740440459/ imagette207854331740440459/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/5351bc40854b858107520d20ad908df1_34352022.png imagette207854401740440459 20785441 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=20785441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207854411740440459 20785442 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=20785442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207854421740440459 20785443 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=20785443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207854431740440459 20785444 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=20785444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207854441740440459 20785433 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=20785433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207854331740440459 20785438 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=20785438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339312956: '1740370251_3752393_1339312609_d125c5d77c750755fe206689fe541c31_rle_crop_3685030402_0.png'} change filename to text .imagette207854381740440459/ imagette207854381740440459/1740370251_3752393_1339312609_d125c5d77c750755fe206689fe541c31_rle_crop_3685030402_0.png.png imagette207854391740440459/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/4564c807ad924dadfdef689ccdd616af_26646421.png imagette207854381740440459 20785439 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=20785439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207854391740440459 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20784610 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20785445,20785446,20785447,20785448,20785449,20785450,20785451,20785452,20785453,20785454,20785455,20785456?tags=Carton_gris,kraft,environnement,papier,autre_refus,Carton_brun,Teint_Dans_La_Masse,cartonnette,plastique,flou,metal,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1339313498] : ('0.037121230287397895',) no score found for photo 1339313498 We are sending mail with results at report@fotonower.com args[1339312958] : ('0.037121230287397895',) no score found for photo 1339312958 We are sending mail with results at report@fotonower.com args[1339312946] : ('0.037121230287397895',) no score found for photo 1339312946 We are sending mail with results at report@fotonower.com args[1339312928] : ('0.037121230287397895',) no score found for photo 1339312928 We are sending mail with results at report@fotonower.com args[1339312926] : ('0.037121230287397895',) no score found for photo 1339312926 We are sending mail with results at report@fotonower.com args[1339312919] : ('0.037121230287397895',) no score found for photo 1339312919 We are sending mail with results at report@fotonower.com args[1339312898] : ('0.037121230287397895',) no score found for photo 1339312898 We are sending mail with results at report@fotonower.com args[1339312896] : ('0.037121230287397895',) no score found for photo 1339312896 We are sending mail with results at report@fotonower.com args[1339312889] : ('0.037121230287397895',) no score found for photo 1339312889 We are sending mail with results at report@fotonower.com args[1339312609] : ('0.037121230287397895',) no score found for photo 1339312609 We are sending mail with results at report@fotonower.com refus_total : 0.037121230287397895 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=20784610 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_P20784610_25-02-2025_00_40_59.pdf results_Auto_P20784610_25-02-2025_00_40_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784610_25-02-2025_00_40_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20784610','results_Auto_P20784610_25-02-2025_00_40_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784610_25-02-2025_00_40_59.pdf','pdf','','0.11','0.037121230287397895') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20784610]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] map_info['map_portfolio_photo'] : {20784610: [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609]} final : False mtd_id 4302 list_pids : [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] 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, '2611076') ('4302', '20784610', '1339313498', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312958', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312946', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312928', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312926', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312919', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312898', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312896', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312889', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312609', None, None, None, None, None, '2611076') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '20784610', '1339313498', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312958', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312946', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312928', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312926', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312919', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312898', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312896', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312889', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312609', None, None, None, None, None, '2611076')] time used for this insertion : 0.016731739044189453 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9756801128387451 time spend to save output : 0.016934633255004883 total time spend for step 4 : 1.99261474609375 step5:split_time_score Tue Feb 25 00:41: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 : ['20784610'] 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 : [('20784610',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20784610) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339313498: {'path': 'temp/1740440459_2770230_1339313498_0ad1a6a704a42ff53ab2c4533849baa7.jpg', 'extension': 'jpg'}, 1339312928: {'path': 'temp/1740440459_2770230_1339312928_22b4f6d7fdbdcb1ced0fc429d90084f5.jpg', 'extension': 'jpg'}, 1339312946: {'path': 'temp/1740440459_2770230_1339312946_baf2dc98b08861a517584d7b7d95ac4f.jpg', 'extension': 'jpg'}, 1339312958: {'path': 'temp/1740440459_2770230_1339312958_6ea4319bff9c618d01eae15f3caffe13.jpg', 'extension': 'jpg'}, 1339312609: {'path': 'temp/1740440459_2770230_1339312609_d125c5d77c750755fe206689fe541c31.jpg', 'extension': 'jpg'}, 1339312889: {'path': 'temp/1740440459_2770230_1339312889_0e84b443917e670b12d00095903bc7c5.jpg', 'extension': 'jpg'}, 1339312896: {'path': 'temp/1740440459_2770230_1339312896_1c5f6f9070401c0b1acbd90e7f5cec7e.jpg', 'extension': 'jpg'}, 1339312898: {'path': 'temp/1740440459_2770230_1339312898_810d1f3ec0afcb16524b969bb33e7095.jpg', 'extension': 'jpg'}, 1339312919: {'path': 'temp/1740440459_2770230_1339312919_4e1778f10bfbca4bb6cb0b262b5f0112.jpg', 'extension': 'jpg'}, 1339312926: {'path': 'temp/1740440459_2770230_1339312926_e61fd449f3bd857eadfc14749fd61d18.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 = 20784610; (('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 = 20784610 group by h (('05', 10),) 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=20784610 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 (20784610) 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 (20784610) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24022025 20784610 Nombre de photos uploadées : 10 / 23040 (0%) 24022025 20784610 Nombre de photos taguées (types de déchets): 0 / 10 (0%) 24022025 20784610 Nombre de photos taguées (volume) : 0 / 10 (0%) [{'photo_id': 1339312609, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/d125c5d77c750755fe206689fe541c31.jpg', 'username': None, 'uploaded_at': 1740369691, 'text': 'image_24022025_05_00_14_010222m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339312889, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/0e84b443917e670b12d00095903bc7c5.jpg', 'username': None, 'uploaded_at': 1740369750, 'text': 'image_24022025_05_00_24_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339312898, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/810d1f3ec0afcb16524b969bb33e7095.jpg', 'username': None, 'uploaded_at': 1740369810, 'text': 'image_24022025_05_01_14_9122.jpg'}, {'photo_id': 1339312896, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/24/1c5f6f9070401c0b1acbd90e7f5cec7e.jpg', 'username': None, 'uploaded_at': 1740369810, 'text': 'image_24022025_05_02_44_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ?????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005185604095458984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20784610, '2025-02-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1620556,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023261547088623047 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= 1620556 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784610, 'dashboard_result_id': 9036154, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784612, 'dashboard_result_id': 9036155, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784666, 'dashboard_result_id': 9036156, '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_P20784666_25-02-2025_00_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785404, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784685, 'dashboard_result_id': 9036157, '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_P20784685_25-02-2025_00_40_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20785369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785380, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784686, 'dashboard_result_id': 9036158, '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_P20784686_25-02-2025_00_39_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785332, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784687, 'dashboard_result_id': 9036159, '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_P20784687_25-02-2025_00_38_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785283, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784688, 'dashboard_result_id': 9036160, '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_P20784688_25-02-2025_00_39_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785308, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784689, 'dashboard_result_id': 9036161, '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_P20784689_25-02-2025_00_38_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785258, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784690, 'dashboard_result_id': 9036162, '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_P20784690_25-02-2025_00_37_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785234, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784691, 'dashboard_result_id': 9036163, '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_P20784691_25-02-2025_00_36_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785161, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784692, 'dashboard_result_id': 9036164, '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_P20784692_25-02-2025_00_36_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785185, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784693, 'dashboard_result_id': 9036165, '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_P20784693_25-02-2025_00_37_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785209, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784694, 'dashboard_result_id': 9036166, '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_P20784694_25-02-2025_00_35_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785137, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784695, 'dashboard_result_id': 9036167, '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_P20784695_25-02-2025_00_35_09.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785113, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784696, 'dashboard_result_id': 9036168, '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_P20784696_25-02-2025_00_34_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785089, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784697, 'dashboard_result_id': 9036169, '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_P20784697_25-02-2025_00_33_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785040, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784698, 'dashboard_result_id': 9036170, '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_P20784698_25-02-2025_00_34_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785064, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784699, 'dashboard_result_id': 9036171, '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_P20784699_25-02-2025_00_33_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785015, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784700, 'dashboard_result_id': 9036172, '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_P20784700_25-02-2025_00_33_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784991, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784701, 'dashboard_result_id': 9036173, '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_P20784701_25-02-2025_00_32_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784967, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784702, 'dashboard_result_id': 9036174, '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_P20784702_25-02-2025_00_31_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20784884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784895, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784703, 'dashboard_result_id': 9036175, '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_P20784703_25-02-2025_00_31_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784919, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784704, 'dashboard_result_id': 9036176, '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_P20784704_25-02-2025_00_32_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784943, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784705, 'dashboard_result_id': 9036177, '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_P20784705_25-02-2025_00_30_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784871, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784706, 'dashboard_result_id': 9036178, '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_P20784706_25-02-2025_00_30_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784834, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784845, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784707, 'dashboard_result_id': 9036179, '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_P20784707_25-02-2025_00_28_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784772, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784708, 'dashboard_result_id': 9036180, '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_P20784708_25-02-2025_00_29_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784796, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784709, 'dashboard_result_id': 9036181, '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_P20784709_25-02-2025_00_29_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784821, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784710, 'dashboard_result_id': 9036182, '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_P20784710_25-02-2025_00_28_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20784737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784748, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20784711, 'dashboard_result_id': 9036183, '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_P20784711_25-02-2025_00_27_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784723, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20774289, 'dashboard_result_id': 9036184, '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_P20774289_24-02-2025_15_56_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774495, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20774290, 'dashboard_result_id': 9036185, '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_P20774290_24-02-2025_15_56_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774461, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20774291, 'dashboard_result_id': 9036186, '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_P20774291_24-02-2025_15_55_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20774418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774429, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20774292, 'dashboard_result_id': 9036187, '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_P20774292_24-02-2025_15_56_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20774392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774403, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20774509, 'dashboard_result_id': 9036188, '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_P20774509_24-02-2025_16_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774542, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20775009, 'dashboard_result_id': 9036189, '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_P20775009_24-02-2025_16_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775052, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20775939, 'dashboard_result_id': 9036190, '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_P20775939_24-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775953, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20776308, 'dashboard_result_id': 9036191, '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_P20776308_24-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776322, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20776731, 'dashboard_result_id': 9036192, '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_P20776731_24-02-2025_17_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776750, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20777457, 'dashboard_result_id': 9036193, '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_P20777457_24-02-2025_17_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20777485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20777486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20777487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20777488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20777489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20777490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20777491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20777492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20777493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20777494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20777495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20777496, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20778025, 'dashboard_result_id': 9036194, '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_P20778025_24-02-2025_18_07_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20778031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20778032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20778033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20778034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20778035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20778036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20778037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20778038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20778039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20778040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20778041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20778042, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20779305, 'dashboard_result_id': 9036195, '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_P20779305_24-02-2025_18_25_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20779306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20779307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20779308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20779309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20779310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20779311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20779312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20779313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20779314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20779315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20779316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20779317, 'pht': 3726}}"}, {'dashboat_entry_day': 1620556, 'dashboard_run_id': 1629363, 'mtr_portfolio_id': 20783679, 'dashboard_result_id': 9036196, '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_P20783679_24-02-2025_22_54_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20783680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20783681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20783682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20783683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20783684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20783685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20783686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20783687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20783688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20783689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20783690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20783691, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20784610 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': 2611076, 'mtr_portfolio_id': 20784610, 'created_at': datetime.datetime(2025, 2, 25, 0, 40, 58), 'result': '0.037121230287397895', 'result_long': None, 'result_double': None}] Qualite : 0.037121230287397895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784610_25-02-2025_00_40_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784610 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_P20784610_25-02-2025_00_40_59.pdf'}" where mtr_portfolio_id = 20784610 and dashboard_run_id = 1629363 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`=20784610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036154, 0.037121230287397895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784610_25-02-2025_00_40_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785444, '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 = 20784612 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 = 20784612 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784612 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20784612%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784612 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 20784612 and dashboard_run_id = 1629363 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20784666 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': 2611078, 'mtr_portfolio_id': 20784666, 'created_at': datetime.datetime(2025, 2, 25, 0, 40, 31), 'result': '0.054909780332271355', 'result_long': None, 'result_double': None}] Qualite : 0.054909780332271355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784666 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784666_25-02-2025_00_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784666 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_P20784666_25-02-2025_00_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785404, 'pht': 3726}}" where mtr_portfolio_id = 20784666 and dashboard_run_id = 1629363 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`=20784666 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036156, 0.054909780332271355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784666_25-02-2025_00_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785404, '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 = 20784685 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': 2611079, 'mtr_portfolio_id': 20784685, 'created_at': datetime.datetime(2025, 2, 25, 0, 40, 1), 'result': '0.05704277257615152', 'result_long': None, 'result_double': None}] Qualite : 0.05704277257615152 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784685_25-02-2025_00_40_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784685 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_P20784685_25-02-2025_00_40_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20785369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785380, 'pht': 3726}}" where mtr_portfolio_id = 20784685 and dashboard_run_id = 1629363 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`=20784685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036157, 0.05704277257615152, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784685_25-02-2025_00_40_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20785369, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785380, '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 = 20784686 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': 2611080, 'mtr_portfolio_id': 20784686, 'created_at': datetime.datetime(2025, 2, 25, 0, 39, 29), 'result': '0.045677482548803', 'result_long': None, 'result_double': None}] Qualite : 0.045677482548803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784686_25-02-2025_00_39_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784686 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_P20784686_25-02-2025_00_39_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785332, 'pht': 3726}}" where mtr_portfolio_id = 20784686 and dashboard_run_id = 1629363 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`=20784686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036158, 0.045677482548803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784686_25-02-2025_00_39_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785332, '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 = 20784687 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': 2611081, 'mtr_portfolio_id': 20784687, 'created_at': datetime.datetime(2025, 2, 25, 0, 38, 29), 'result': '0.04458218431442033', 'result_long': None, 'result_double': None}] Qualite : 0.04458218431442033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784687_25-02-2025_00_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784687 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_P20784687_25-02-2025_00_38_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785283, 'pht': 3726}}" where mtr_portfolio_id = 20784687 and dashboard_run_id = 1629363 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`=20784687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036159, 0.04458218431442033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784687_25-02-2025_00_38_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785278, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785283, '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 = 20784688 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': 2611082, 'mtr_portfolio_id': 20784688, 'created_at': datetime.datetime(2025, 2, 25, 0, 39, 1), 'result': '0.04200427948667155', 'result_long': None, 'result_double': None}] Qualite : 0.04200427948667155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784688_25-02-2025_00_39_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784688 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_P20784688_25-02-2025_00_39_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785308, 'pht': 3726}}" where mtr_portfolio_id = 20784688 and dashboard_run_id = 1629363 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`=20784688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036160, 0.04200427948667155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784688_25-02-2025_00_39_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785308, '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 = 20784689 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': 2611083, 'mtr_portfolio_id': 20784689, 'created_at': datetime.datetime(2025, 2, 25, 0, 38, 5), 'result': '0.05383145581716124', 'result_long': None, 'result_double': None}] Qualite : 0.05383145581716124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784689_25-02-2025_00_38_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784689 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_P20784689_25-02-2025_00_38_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785258, 'pht': 3726}}" where mtr_portfolio_id = 20784689 and dashboard_run_id = 1629363 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`=20784689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036161, 0.05383145581716124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784689_25-02-2025_00_38_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785258, '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 = 20784690 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': 2611084, 'mtr_portfolio_id': 20784690, 'created_at': datetime.datetime(2025, 2, 25, 0, 37, 30), 'result': '0.03918277013081906', 'result_long': None, 'result_double': None}] Qualite : 0.03918277013081906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784690_25-02-2025_00_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784690 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_P20784690_25-02-2025_00_37_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785234, 'pht': 3726}}" where mtr_portfolio_id = 20784690 and dashboard_run_id = 1629363 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`=20784690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036162, 0.03918277013081906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784690_25-02-2025_00_37_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785234, '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 = 20784691 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': 2611085, 'mtr_portfolio_id': 20784691, 'created_at': datetime.datetime(2025, 2, 25, 0, 35, 58), 'result': '0.04093450841738866', 'result_long': None, 'result_double': None}] Qualite : 0.04093450841738866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784691_25-02-2025_00_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784691 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_P20784691_25-02-2025_00_36_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785161, 'pht': 3726}}" where mtr_portfolio_id = 20784691 and dashboard_run_id = 1629363 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`=20784691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036163, 0.04093450841738866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784691_25-02-2025_00_36_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785158, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785161, '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 = 20784692 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': 2611086, 'mtr_portfolio_id': 20784692, 'created_at': datetime.datetime(2025, 2, 25, 0, 36, 29), 'result': '0.05065664320657417', 'result_long': None, 'result_double': None}] Qualite : 0.05065664320657417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784692_25-02-2025_00_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784692 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_P20784692_25-02-2025_00_36_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785185, 'pht': 3726}}" where mtr_portfolio_id = 20784692 and dashboard_run_id = 1629363 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`=20784692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036164, 0.05065664320657417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784692_25-02-2025_00_36_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785180, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785184, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785185, '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 = 20784693 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': 2611087, 'mtr_portfolio_id': 20784693, 'created_at': datetime.datetime(2025, 2, 25, 0, 37, 2), 'result': '0.05282634044794729', 'result_long': None, 'result_double': None}] Qualite : 0.05282634044794729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784693_25-02-2025_00_37_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784693 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_P20784693_25-02-2025_00_37_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785209, 'pht': 3726}}" where mtr_portfolio_id = 20784693 and dashboard_run_id = 1629363 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`=20784693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036165, 0.05282634044794729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784693_25-02-2025_00_37_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785203, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785209, '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 = 20784694 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': 2611088, 'mtr_portfolio_id': 20784694, 'created_at': datetime.datetime(2025, 2, 25, 0, 35, 27), 'result': '0.04252532492978796', 'result_long': None, 'result_double': None}] Qualite : 0.04252532492978796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784694_25-02-2025_00_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784694 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_P20784694_25-02-2025_00_35_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785137, 'pht': 3726}}" where mtr_portfolio_id = 20784694 and dashboard_run_id = 1629363 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`=20784694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036166, 0.04252532492978796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784694_25-02-2025_00_35_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785132, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785137, '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 = 20784695 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': 2611089, 'mtr_portfolio_id': 20784695, 'created_at': datetime.datetime(2025, 2, 25, 0, 35, 5), 'result': '0.04650208166806337', 'result_long': None, 'result_double': None}] Qualite : 0.04650208166806337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784695_25-02-2025_00_35_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784695 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_P20784695_25-02-2025_00_35_09.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785113, 'pht': 3726}}" where mtr_portfolio_id = 20784695 and dashboard_run_id = 1629363 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`=20784695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036167, 0.04650208166806337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784695_25-02-2025_00_35_09.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785113, '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 = 20784696 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': 2611090, 'mtr_portfolio_id': 20784696, 'created_at': datetime.datetime(2025, 2, 25, 0, 34, 28), 'result': '0.05401566217558275', 'result_long': None, 'result_double': None}] Qualite : 0.05401566217558275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784696_25-02-2025_00_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784696 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_P20784696_25-02-2025_00_34_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785089, 'pht': 3726}}" where mtr_portfolio_id = 20784696 and dashboard_run_id = 1629363 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`=20784696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036168, 0.05401566217558275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784696_25-02-2025_00_34_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785086, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785089, '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 = 20784697 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': 2611091, 'mtr_portfolio_id': 20784697, 'created_at': datetime.datetime(2025, 2, 25, 0, 33, 29), 'result': '0.04309748390064892', 'result_long': None, 'result_double': None}] Qualite : 0.04309748390064892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784697_25-02-2025_00_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784697 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_P20784697_25-02-2025_00_33_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785040, 'pht': 3726}}" where mtr_portfolio_id = 20784697 and dashboard_run_id = 1629363 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`=20784697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036169, 0.04309748390064892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784697_25-02-2025_00_33_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785033, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785040, '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 = 20784698 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': 2611092, 'mtr_portfolio_id': 20784698, 'created_at': datetime.datetime(2025, 2, 25, 0, 33, 58), 'result': '0.03680059966818347', 'result_long': None, 'result_double': None}] Qualite : 0.03680059966818347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784698_25-02-2025_00_34_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784698 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_P20784698_25-02-2025_00_34_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785064, 'pht': 3726}}" where mtr_portfolio_id = 20784698 and dashboard_run_id = 1629363 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`=20784698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036170, 0.03680059966818347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784698_25-02-2025_00_34_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785064, '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 = 20784699 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': 2611093, 'mtr_portfolio_id': 20784699, 'created_at': datetime.datetime(2025, 2, 25, 0, 33, 2), 'result': '0.02936419787483886', 'result_long': None, 'result_double': None}] Qualite : 0.02936419787483886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784699_25-02-2025_00_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784699 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_P20784699_25-02-2025_00_33_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785015, 'pht': 3726}}" where mtr_portfolio_id = 20784699 and dashboard_run_id = 1629363 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`=20784699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036171, 0.02936419787483886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784699_25-02-2025_00_33_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785011, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785015, '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 = 20784700 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': 2611094, 'mtr_portfolio_id': 20784700, 'created_at': datetime.datetime(2025, 2, 25, 0, 33), 'result': '0.04403221788587721', 'result_long': None, 'result_double': None}] Qualite : 0.04403221788587721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784700_25-02-2025_00_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784700 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_P20784700_25-02-2025_00_33_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784991, 'pht': 3726}}" where mtr_portfolio_id = 20784700 and dashboard_run_id = 1629363 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`=20784700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036172, 0.04403221788587721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784700_25-02-2025_00_33_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784991, '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 = 20784701 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': 2611095, 'mtr_portfolio_id': 20784701, 'created_at': datetime.datetime(2025, 2, 25, 0, 32, 33), 'result': '0.047894354401495975', 'result_long': None, 'result_double': None}] Qualite : 0.047894354401495975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784701 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784701_25-02-2025_00_32_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784701 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_P20784701_25-02-2025_00_32_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784967, 'pht': 3726}}" where mtr_portfolio_id = 20784701 and dashboard_run_id = 1629363 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`=20784701 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036173, 0.047894354401495975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784701_25-02-2025_00_32_36.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784967, '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 = 20784702 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': 2611096, 'mtr_portfolio_id': 20784702, 'created_at': datetime.datetime(2025, 2, 25, 0, 30, 59), 'result': '0.04417095555652234', 'result_long': None, 'result_double': None}] Qualite : 0.04417095555652234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784702_25-02-2025_00_31_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784702 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_P20784702_25-02-2025_00_31_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20784884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784895, 'pht': 3726}}" where mtr_portfolio_id = 20784702 and dashboard_run_id = 1629363 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`=20784702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036174, 0.04417095555652234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784702_25-02-2025_00_31_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20784884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784895, '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 = 20784703 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': 2611097, 'mtr_portfolio_id': 20784703, 'created_at': datetime.datetime(2025, 2, 25, 0, 31, 28), 'result': '0.0391785207770495', 'result_long': None, 'result_double': None}] Qualite : 0.0391785207770495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784703_25-02-2025_00_31_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784703 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_P20784703_25-02-2025_00_31_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784919, 'pht': 3726}}" where mtr_portfolio_id = 20784703 and dashboard_run_id = 1629363 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`=20784703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036175, 0.0391785207770495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784703_25-02-2025_00_31_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784919, '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 = 20784704 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': 2611098, 'mtr_portfolio_id': 20784704, 'created_at': datetime.datetime(2025, 2, 25, 0, 31, 59), 'result': '0.046774379943178714', 'result_long': None, 'result_double': None}] Qualite : 0.046774379943178714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784704_25-02-2025_00_32_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784704 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_P20784704_25-02-2025_00_32_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784943, 'pht': 3726}}" where mtr_portfolio_id = 20784704 and dashboard_run_id = 1629363 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`=20784704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036176, 0.046774379943178714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784704_25-02-2025_00_32_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784934, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784943, '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 = 20784705 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': 2611099, 'mtr_portfolio_id': 20784705, 'created_at': datetime.datetime(2025, 2, 25, 0, 30, 29), 'result': '0.059187785653509066', 'result_long': None, 'result_double': None}] Qualite : 0.059187785653509066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784705_25-02-2025_00_30_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784705 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_P20784705_25-02-2025_00_30_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784871, 'pht': 3726}}" where mtr_portfolio_id = 20784705 and dashboard_run_id = 1629363 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`=20784705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036177, 0.059187785653509066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784705_25-02-2025_00_30_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784871, '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 = 20784706 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': 2611100, 'mtr_portfolio_id': 20784706, 'created_at': datetime.datetime(2025, 2, 25, 0, 30), 'result': '0.030450565904320166', 'result_long': None, 'result_double': None}] Qualite : 0.030450565904320166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784706_25-02-2025_00_30_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784706 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_P20784706_25-02-2025_00_30_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784834, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784845, 'pht': 3726}}" where mtr_portfolio_id = 20784706 and dashboard_run_id = 1629363 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`=20784706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036178, 0.030450565904320166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784706_25-02-2025_00_30_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784834, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784845, '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 = 20784707 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': 2611101, 'mtr_portfolio_id': 20784707, 'created_at': datetime.datetime(2025, 2, 25, 0, 28, 30), 'result': '0.046902207736061366', 'result_long': None, 'result_double': None}] Qualite : 0.046902207736061366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784707 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784707_25-02-2025_00_28_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784707 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_P20784707_25-02-2025_00_28_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784772, 'pht': 3726}}" where mtr_portfolio_id = 20784707 and dashboard_run_id = 1629363 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`=20784707 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036179, 0.046902207736061366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784707_25-02-2025_00_28_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784772, '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 = 20784708 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': 2611102, 'mtr_portfolio_id': 20784708, 'created_at': datetime.datetime(2025, 2, 25, 0, 29), 'result': '0.05508572110083149', 'result_long': None, 'result_double': None}] Qualite : 0.05508572110083149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784708_25-02-2025_00_29_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784708 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_P20784708_25-02-2025_00_29_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784796, 'pht': 3726}}" where mtr_portfolio_id = 20784708 and dashboard_run_id = 1629363 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`=20784708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036180, 0.05508572110083149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784708_25-02-2025_00_29_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784792, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784795, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784796, '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 = 20784709 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': 2611103, 'mtr_portfolio_id': 20784709, 'created_at': datetime.datetime(2025, 2, 25, 0, 29, 31), 'result': '0.04379738000478873', 'result_long': None, 'result_double': None}] Qualite : 0.04379738000478873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784709 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784709_25-02-2025_00_29_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784709 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_P20784709_25-02-2025_00_29_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784821, 'pht': 3726}}" where mtr_portfolio_id = 20784709 and dashboard_run_id = 1629363 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`=20784709 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036181, 0.04379738000478873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784709_25-02-2025_00_29_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20784810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784821, '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 = 20784710 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': 2611104, 'mtr_portfolio_id': 20784710, 'created_at': datetime.datetime(2025, 2, 25, 0, 27, 59), 'result': '0.038505721060971644', 'result_long': None, 'result_double': None}] Qualite : 0.038505721060971644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784710_25-02-2025_00_28_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784710 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_P20784710_25-02-2025_00_28_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20784737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784748, 'pht': 3726}}" where mtr_portfolio_id = 20784710 and dashboard_run_id = 1629363 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`=20784710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036182, 0.038505721060971644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784710_25-02-2025_00_28_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20784737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784748, '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 = 20784711 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': 2611105, 'mtr_portfolio_id': 20784711, 'created_at': datetime.datetime(2025, 2, 25, 0, 27, 31), 'result': '0.06053616114707388', 'result_long': None, 'result_double': None}] Qualite : 0.06053616114707388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20784711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784711_25-02-2025_00_27_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20784711 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_P20784711_25-02-2025_00_27_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784723, 'pht': 3726}}" where mtr_portfolio_id = 20784711 and dashboard_run_id = 1629363 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`=20784711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036183, 0.06053616114707388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20784711_25-02-2025_00_27_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20784712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20784713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20784714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20784715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20784716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20784717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20784718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20784719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20784720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20784721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20784722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20784723, '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 = 20774289 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': 2609916, 'mtr_portfolio_id': 20774289, 'created_at': datetime.datetime(2025, 2, 24, 15, 56, 30), 'result': '0.041370366729867075', 'result_long': None, 'result_double': None}] Qualite : 0.041370366729867075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20774289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774289_24-02-2025_15_56_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20774289 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_P20774289_24-02-2025_15_56_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774495, 'pht': 3726}}" where mtr_portfolio_id = 20774289 and dashboard_run_id = 1629363 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`=20774289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036184, 0.041370366729867075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774289_24-02-2025_15_56_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774495, '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 = 20774290 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': 2609917, 'mtr_portfolio_id': 20774290, 'created_at': datetime.datetime(2025, 2, 24, 15, 56, 1), 'result': '0.03702778709645679', 'result_long': None, 'result_double': None}] Qualite : 0.03702778709645679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20774290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774290_24-02-2025_15_56_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20774290 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_P20774290_24-02-2025_15_56_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774461, 'pht': 3726}}" where mtr_portfolio_id = 20774290 and dashboard_run_id = 1629363 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`=20774290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036185, 0.03702778709645679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774290_24-02-2025_15_56_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774453, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774461, '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 = 20774291 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': 2609918, 'mtr_portfolio_id': 20774291, 'created_at': datetime.datetime(2025, 2, 24, 15, 55, 31), 'result': '0.039222261202072506', 'result_long': None, 'result_double': None}] Qualite : 0.039222261202072506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20774291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774291_24-02-2025_15_55_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20774291 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_P20774291_24-02-2025_15_55_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20774418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774429, 'pht': 3726}}" where mtr_portfolio_id = 20774291 and dashboard_run_id = 1629363 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`=20774291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036186, 0.039222261202072506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774291_24-02-2025_15_55_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20774418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774428, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774429, '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 = 20774292 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': 2609919, 'mtr_portfolio_id': 20774292, 'created_at': datetime.datetime(2025, 2, 24, 15, 56, 58), 'result': '0.03376373454442496', 'result_long': None, 'result_double': None}] Qualite : 0.03376373454442496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20774292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774292_24-02-2025_15_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20774292 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_P20774292_24-02-2025_15_56_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20774392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774403, 'pht': 3726}}" where mtr_portfolio_id = 20774292 and dashboard_run_id = 1629363 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`=20774292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036187, 0.03376373454442496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774292_24-02-2025_15_56_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20774392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774403, '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 = 20774509 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': 2609944, 'mtr_portfolio_id': 20774509, 'created_at': datetime.datetime(2025, 2, 24, 16, 2, 59), 'result': '0.0419938698210807', 'result_long': None, 'result_double': None}] Qualite : 0.0419938698210807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20774509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774509_24-02-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20774509 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_P20774509_24-02-2025_16_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774542, 'pht': 3726}}" where mtr_portfolio_id = 20774509 and dashboard_run_id = 1629363 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`=20774509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036188, 0.0419938698210807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20774509_24-02-2025_16_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20774531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20774532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20774533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20774534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20774535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20774536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20774537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20774538, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20774539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20774540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20774541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20774542, '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 = 20775009 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': 2610056, 'mtr_portfolio_id': 20775009, 'created_at': datetime.datetime(2025, 2, 24, 16, 22, 59), 'result': '0.04247487164839394', 'result_long': None, 'result_double': None}] Qualite : 0.04247487164839394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20775009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775009_24-02-2025_16_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20775009 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_P20775009_24-02-2025_16_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775052, 'pht': 3726}}" where mtr_portfolio_id = 20775009 and dashboard_run_id = 1629363 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`=20775009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036189, 0.04247487164839394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775009_24-02-2025_16_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775047, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775052, '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 = 20775939 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': 2610127, 'mtr_portfolio_id': 20775939, 'created_at': datetime.datetime(2025, 2, 24, 16, 32, 59), 'result': '0.04219419557097414', 'result_long': None, 'result_double': None}] Qualite : 0.04219419557097414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20775939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775939_24-02-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20775939 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_P20775939_24-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775953, 'pht': 3726}}" where mtr_portfolio_id = 20775939 and dashboard_run_id = 1629363 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`=20775939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036190, 0.04219419557097414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20775939_24-02-2025_16_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20775942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20775943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20775944, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20775945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20775946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20775947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20775948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20775949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20775950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20775951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20775952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20775953, '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 = 20776308 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': 2610171, 'mtr_portfolio_id': 20776308, 'created_at': datetime.datetime(2025, 2, 24, 16, 48, 59), 'result': '0.044373387629729096', 'result_long': None, 'result_double': None}] Qualite : 0.044373387629729096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20776308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776308_24-02-2025_16_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20776308 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_P20776308_24-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776322, 'pht': 3726}}" where mtr_portfolio_id = 20776308 and dashboard_run_id = 1629363 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`=20776308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036191, 0.044373387629729096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776308_24-02-2025_16_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776313, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776319, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776322, '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 = 20776731 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': 2610234, 'mtr_portfolio_id': 20776731, 'created_at': datetime.datetime(2025, 2, 24, 17, 2, 58), 'result': '0.04509847832713662', 'result_long': None, 'result_double': None}] Qualite : 0.04509847832713662 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20776731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776731_24-02-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20776731 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_P20776731_24-02-2025_17_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776750, 'pht': 3726}}" where mtr_portfolio_id = 20776731 and dashboard_run_id = 1629363 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`=20776731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036192, 0.04509847832713662, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20776731_24-02-2025_17_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20776739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20776740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20776741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20776742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20776743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20776744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20776745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20776746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20776747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20776748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20776749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20776750, '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 = 20777457 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': 2610323, 'mtr_portfolio_id': 20777457, 'created_at': datetime.datetime(2025, 2, 24, 17, 18, 56), 'result': '0.055696169424489225', 'result_long': None, 'result_double': None}] Qualite : 0.055696169424489225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20777457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20777457_24-02-2025_17_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20777457 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_P20777457_24-02-2025_17_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20777485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20777486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20777487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20777488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20777489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20777490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20777491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20777492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20777493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20777494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20777495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20777496, 'pht': 3726}}" where mtr_portfolio_id = 20777457 and dashboard_run_id = 1629363 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`=20777457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036193, 0.055696169424489225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20777457_24-02-2025_17_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20777485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20777486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20777487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20777488, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20777489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20777490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20777491, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20777492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20777493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20777494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20777495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20777496, '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 = 20778025 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': 2610367, 'mtr_portfolio_id': 20778025, 'created_at': datetime.datetime(2025, 2, 24, 18, 7, 1), 'result': '0.04483554863549958', 'result_long': None, 'result_double': None}] Qualite : 0.04483554863549958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20778025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20778025_24-02-2025_18_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20778025 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_P20778025_24-02-2025_18_07_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20778031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20778032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20778033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20778034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20778035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20778036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20778037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20778038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20778039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20778040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20778041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20778042, 'pht': 3726}}" where mtr_portfolio_id = 20778025 and dashboard_run_id = 1629363 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`=20778025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036194, 0.04483554863549958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20778025_24-02-2025_18_07_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20778031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20778032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20778033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20778034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20778035, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20778036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20778037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20778038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20778039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20778040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20778041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20778042, '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 = 20779305 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': 2610497, 'mtr_portfolio_id': 20779305, 'created_at': datetime.datetime(2025, 2, 24, 18, 24, 59), 'result': '0.04914134830235099', 'result_long': None, 'result_double': None}] Qualite : 0.04914134830235099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20779305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20779305_24-02-2025_18_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20779305 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_P20779305_24-02-2025_18_25_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20779306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20779307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20779308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20779309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20779310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20779311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20779312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20779313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20779314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20779315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20779316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20779317, 'pht': 3726}}" where mtr_portfolio_id = 20779305 and dashboard_run_id = 1629363 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`=20779305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036195, 0.04914134830235099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20779305_24-02-2025_18_25_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20779306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20779307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20779308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20779309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20779310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20779311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20779312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20779313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20779314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20779315, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20779316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20779317, '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 = 20783679 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': 2610962, 'mtr_portfolio_id': 20783679, 'created_at': datetime.datetime(2025, 2, 24, 22, 54, 58), 'result': '0.028396906762794053', 'result_long': None, 'result_double': None}] Qualite : 0.028396906762794053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20783679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20783679_24-02-2025_22_54_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20783679 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_P20783679_24-02-2025_22_54_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20783680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20783681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20783682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20783683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20783684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20783685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20783686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20783687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20783688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20783689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20783690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20783691, 'pht': 3726}}" where mtr_portfolio_id = 20783679 and dashboard_run_id = 1629363 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`=20783679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9036196, 0.028396906762794053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20783679_24-02-2025_22_54_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20783680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20783681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20783682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20783683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20783684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20783685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20783686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20783687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20783688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20783689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20783690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20783691, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20784610,20784612,20784666,20784685,20784686,20784687,20784688,20784689,20784690,20784691,20784692,20784693,20784694,20784695,20784696,20784697,20784698,20784699,20784700,20784701,20784702,20784703,20784704,20784705,20784706,20784707,20784708,20784709,20784710,20784711,20774289,20774290,20774291,20774292,20774509,20775009,20775939,20776308,20776731,20777457,20778025,20779305,20783679) result : ((1339350143,), (1339350148,), (1339350153,), (1339350157,), (1339350178,), (1339350184,), (1339350190,), (1339350220,), (1339350224,), (1339350228,), (1339350231,), (1339350236,), (1339350273,), (1339350277,), (1339350305,), (1339350310,), (1339350315,), (1339350349,), (1339350356,), (1339350360,), (1339350363,), (1339350397,), (1339350400,), (1339350403,), (1339350406,), (1339350410,), (1339350428,), (1339350432,), (1339350463,), (1339350466,), (1339350469,), (1339350472,), (1339350476,), (1339350555,), (1339350562,), (1339350571,), (1339350572,), (1339350573,), (1339350576,), (1339350625,), (1339350602,), (1339350611,), (1339350621,), (1339350645,), (1339350649,), (1339350652,), (1339350655,), (1339350672,), (1339350675,), (1339350678,), (1339350681,), (1339350685,), (1339350687,), (1339350701,), (1339350704,), (1339350707,), (1339350710,), (1339351447,), (1339351450,), (1339351738,), (1339351744,), (1339351810,), (1339351820,), (1339351838,), (1339351843,), (1339351846,), (1339351850,), (1339351853,), (1339351869,), (1339351872,), (1339351875,), (1339351878,), (1339351881,), (1339351884,), (1339351898,), (1339351902,), (1339351906,), (1339351911,), (1339351915,), (1339351940,), (1339351945,), (1339351948,), (1339351952,), (1339351974,), (1339351979,), (1339351983,), (1339351986,), (1339351991,), (1339351996,), (1339352010,), (1339352015,), (1339352018,), (1339352022,), (1339352026,), (1339352030,), (1339352045,), (1339352049,), (1339352051,), (1339352055,), (1339352075,), (1339352079,), (1339352081,), (1339352109,), (1339352114,), (1339352116,), (1339352119,), (1339352122,), (1339352151,), (1339352138,), (1339352142,), (1339352145,), (1339352148,), (1339352538,), (1339352546,), (1339352665,), (1339352669,), (1339352672,), (1339352708,), (1339352718,), (1339352721,), (1339352751,), (1339352756,), (1339352764,), (1339352768,), (1339352773,), (1339352807,), (1339352815,), (1339352819,), (1339352822,), (1339352826,), (1339352831,), (1339352863,), (1339352866,), (1339352869,), (1339352875,), (1339352882,), (1339352907,), (1339352911,), (1339352913,), (1339352921,), (1339352925,), (1339352955,), (1339352960,), (1339352964,), (1339352973,), (1339353005,), (1339353011,), (1339353018,), (1339353038,), (1339353042,), (1339353046,), (1339353050,), (1339353064,), (1339353068,), (1339353070,), (1339353073,), (1339353077,), (1339353093,), (1339353096,), (1339353098,), (1339353101,), (1339353105,), (1339353128,), (1339353133,), (1339353137,), (1339353154,), (1339353159,), (1339353163,), (1339353184,), (1339353189,), (1339353194,), (1339353198,), (1339353230,), (1339353217,), (1339353220,), (1339353223,), (1339353226,), (1339353258,), (1339353261,), (1339353264,), (1339353267,), (1339353270,), (1339353273,), (1339353288,), (1339353292,), (1339353295,), (1339353444,), (1339353721,), (1339354070,), (1339354118,), (1339354123,), (1339354165,), (1339354180,), (1339354182,), (1339354206,), (1339354209,), (1339354212,), (1339354214,), (1339354251,), (1339354261,), (1339354266,), (1339354302,), (1339354306,), (1339354311,), (1339354315,), (1339354325,), (1339354327,), (1339354349,), (1339354361,), (1339354368,), (1339354371,), (1339354375,), (1339354378,), (1339354415,), (1339354419,), (1339354422,), (1339354458,), (1339354461,), (1339354464,), (1339354467,), (1339354469,), (1339354485,), (1339354488,), (1339354491,), (1339354494,), (1339354497,), (1339354499,), (1339354514,), (1339354517,), (1339354521,), (1339354524,), (1339354558,), (1339354562,), (1339354564,), (1339354583,), (1339354586,), (1339354595,), (1339354609,), (1339354613,), (1339354616,), (1339354619,), (1339354649,), (1339354653,), (1339354657,), (1339354660,), (1339354896,), (1339354673,), (1339354676,), (1339354679,), (1339354818,), (1339355072,), (1339355075,), (1339355120,), (1339355135,), (1339355156,), (1339355159,), (1339355162,), (1339355165,), (1339355168,), (1339355170,), (1339355189,), (1339355193,), (1339355196,), (1339355199,), (1339355203,), (1339355206,), (1339355219,), (1339355223,), (1339355227,), (1339355230,), (1339355234,), (1339355248,), (1339355251,), (1339355254,), (1339355257,), (1339355260,), (1339355274,), (1339355277,), (1339355280,), (1339355284,), (1339355298,), (1339355329,), (1339355332,), (1339355335,), (1339355339,), (1339355359,), (1339355363,), (1339355366,), (1339355390,), (1339355394,), (1339355398,), (1339355404,), (1339355408,), (1339355424,), (1339355427,), (1339355430,), (1339355432,), (1339355437,), (1339355456,), (1339355461,), (1339355466,), (1339355469,), (1339355502,), (1339355507,), (1339355516,), (1339355519,), (1339355522,), (1339355602,), (1339355605,), (1339355609,), (1339355610,), (1339355613,), (1339355616,), (1339355622,), (1339355625,), (1339355669,), (1339355652,), (1339355654,), (1339355663,), (1339355666,), (1339355686,), (1339355690,), (1339355692,), (1339355696,), (1339355700,), (1339355703,), (1339356387,), (1339356390,), (1339356393,), (1339356428,), (1339356437,), (1339357704,), (1339358418,), (1339358410,), (1339358414,), (1339358643,), (1339358660,), (1339358664,), (1339358705,), (1339358712,), (1339358721,), (1339358725,), (1339358729,), (1339358755,), (1339358759,), (1339358763,), (1339358766,), (1339358783,), (1339358788,), (1339358794,), (1339358801,), (1339358822,), (1339358825,), (1339358828,), (1339358831,), (1339358835,), (1339358858,), (1339358863,), (1339358867,), (1339358872,), (1339358895,), (1339358898,), (1339358901,), (1339358919,), (1339358930,), (1339358935,), (1339358941,), (1339358945,), (1339358949,), (1339358994,), (1339358997,), (1339359002,), (1339359006,), (1339359010,), (1339359155,), (1339359145,), (1339359149,), (1339359153,), (1339359195,), (1339359198,), (1339359201,), (1339359203,), (1339359204,), (1339359214,), (1339359226,), (1339359230,), (1339359233,), (1339359236,), (1339359239,), (1339359264,), (1339359266,), (1339359268,), (1339359270,), (1339359273,), (1339359288,), (1339359293,), (1339359307,), (1339359312,), (1339359329,), (1339359339,), (1339359360,), (1339359363,), (1339359456,), (1339359462,), (1339359466,), (1339359471,), (1339359486,), (1339359490,), (1339359494,), (1339359498,), (1339359512,), (1339359515,), (1339359527,), (1339359539,), (1339359542,), (1339359551,), (1339359609,), (1339359614,), (1339359638,), (1339359641,), (1339359644,), (1339359650,), (1339359658,), (1339359680,), (1339359684,), (1339359686,), (1339359694,), (1339359703,), (1339359741,), (1339359745,), (1339359749,), (1339359753,), (1339359757,), (1339359786,), (1339359766,), (1339359770,), (1339359774,), (1339359780,), (1339359784,), (1339359792,), (1339359797,), (1339359801,), (1339360111,), (1339360115,), (1339360119,), (1339360140,), (1339360144,), (1339360146,), (1339360157,), (1339360162,), (1339360165,), (1339360215,), (1339360225,), (1339360229,), (1339360242,), (1339360246,), (1339360276,), (1339360302,), (1339360310,), (1339360314,), (1339360318,), (1339360322,), (1339360336,), (1339360338,), (1339360341,), (1339360344,), (1339360392,), (1339360396,), (1339360400,), (1339360405,), (1339360422,), (1339360426,), (1339360441,), (1339360452,), (1339360500,), (1339360505,), (1339360508,), (1339360581,), (1339360587,), (1339360591,), (1339360594,), (1339360597,), (1339360600,), (1339360612,), (1339360616,), (1339360619,), (1339360621,), (1339360706,), (1339360715,), (1339360719,), (1339360728,), (1339360738,), (1339360926,), (1339360933,), (1339360942,), (1339360954,), (1339361017,), (1339361011,), (1339361014,), (1339361056,), (1339361059,), (1339361062,), (1339361079,), (1339361082,), (1339361085,), (1339361087,), (1339361211,), (1339361233,), (1339361265,), (1339361268,), (1339361281,), (1339361284,), (1339361312,), (1339361317,), (1339361323,), (1339361327,), (1339361330,), (1339361334,), (1339361995,), (1339362000,), (1339362003,), (1339362006,), (1339362009,), (1339362307,), (1339362324,), (1339362326,), (1339362331,), (1339362335,), (1339362338,), (1339362353,), (1339362366,), (1339362370,), (1339362373,), (1339362375,), (1339362377,), (1339362392,), (1339362395,), (1339362398,), (1339362402,), (1339362424,), (1339362432,), (1339362436,), (1339362448,), (1339362454,), (1339362457,), (1339362508,), (1339362513,), (1339362522,), (1339362528,), (1339362534,), (1339362541,), (1339362695,), (1339362699,), (1339362702,), (1339362706,), (1339362737,), (1339362742,), (1339362745,), (1339362748,), (1339362750,), (1339363049,), (1339363056,), (1339363065,), (1339363097,), (1339363099,), (1339363101,), (1339363204,), (1339363207,), (1339363210,), (1339363588,), (1339363561,), (1339363571,), (1339363575,), (1339363583,), (1339363586,), (1339363610,), (1339363612,), (1339363617,), (1339363624,), (1339363627,), (1339363630,), (1339364044,), (1339364283,), (1339364287,), (1339364290,), (1339364480,), (1339364486,), (1339364523,), (1339364527,), (1339364531,), (1339364566,), (1339364578,), (1339364582,), (1339364591,), (1339364596,), (1339364599,), (1339364636,), (1339364663,), (1339364667,), (1339364681,), (1339364923,), (1339365016,), (1339365109,), (1339365239,), (1339365243,), (1339365246,), (1339365414,), (1339365420,), (1339365477,), (1339365481,), (1339365492,), (1339365497,), (1339365501,), (1339365519,), (1339365547,), (1339365555,), (1339365560,), (1339365617,), (1339365627,), (1339365632,), (1339365654,), (1339365658,), (1339365662,), (1339365665,), (1339365680,), (1339365684,), (1339365687,), (1339365690,), (1339365694,), (1339365696,), (1339365852,), (1339365856,), (1339365862,), (1339365865,), (1339365885,), (1339365896,), (1339365901,), (1339365904,), (1339365907,), (1339368446,), (1339368439,), (1339369339,), (1339369343,), (1339369363,), (1339369392,), (1339369426,), (1339369585,), (1339369674,), (1339369679,), (1339371004,), (1339424521,), (1339425258,), (1339426329,), (1339426359,), (1339426615,), (1339426730,), (1339426812,), (1339428903,), (1339312609,), (1339312889,), (1339312896,), (1339312898,), (1339312919,), (1339312926,), (1339312928,), (1339312946,), (1339312958,), (1339313498,), (1339313486,), (1339313493,), (1339313496,), (1339313502,), (1339313504,), (1339313506,), (1339313507,), (1339313512,), (1339313513,), (1339313516,), (1339313526,), (1339313528,), (1339313529,), (1339313531,), (1339313533,), (1339313537,), (1339313539,), (1339313541,), (1339313543,), (1339313545,), (1339313547,), (1339313550,), (1339313552,), (1339313554,), (1339313565,), (1339313559,), (1339313561,), (1339313563,), (1339313569,), (1339313571,), (1339313572,), (1339313574,), (1339313576,), (1339313578,), (1339314067,), (1339314070,), (1339314072,), (1339314074,), (1339314238,), (1339314240,), (1339314242,), (1339314244,), (1339314246,), (1339314276,), (1339314278,), (1339314280,), (1339314311,), (1339314313,), (1339314315,), (1339314317,), (1339314328,), (1339314332,), (1339314333,), (1339314335,), (1339314338,), (1339314342,), (1339314348,), (1339314350,), (1339314351,), (1339314357,), (1339314359,), (1339314361,), (1339314363,), (1339314365,), (1339314367,), (1339314369,), (1339314371,), (1339314373,), (1339314374,), (1339314377,), (1339314379,), (1339314381,), (1339314383,), (1339314385,), (1339314387,), (1339314391,), (1339314394,), (1339314402,), (1339314412,), (1339314414,), (1339314433,), (1339314436,), (1339314439,), (1339314442,), (1339314444,), (1339314452,), (1339314454,), (1339314467,), (1339314471,), (1339314502,), (1339314504,), (1339314506,), (1339314508,), (1339314510,), (1339314513,), (1339314523,), (1339314515,), (1339314517,), (1339314519,), (1339314521,), (1339314526,), (1339314528,), (1339314530,), (1339314531,), (1339314533,), (1339314535,), (1339314994,), (1339314996,), (1339314998,), (1339315000,), (1339315139,), (1339315141,), (1339315143,), (1339315144,), (1339315146,), (1339315148,), (1339315159,), (1339315161,), (1339315163,), (1339315165,), (1339315202,), (1339315204,), (1339315206,), (1339315208,), (1339315210,), (1339315212,), (1339315243,), (1339315245,), (1339315260,), (1339315268,), (1339315274,), (1339315296,), (1339315298,), (1339315300,), (1339315302,), (1339315305,), (1339315312,), (1339315314,), (1339315316,), (1339315318,), (1339315320,), (1339315322,), (1339315324,), (1339315325,), (1339315328,), (1339315330,), (1339315334,), (1339315336,), (1339315338,), (1339315340,), (1339315342,), (1339315344,), (1339315346,), (1339315348,), (1339315350,), (1339315352,), (1339315354,), (1339315357,), (1339315366,), (1339315372,), (1339315374,), (1339315375,), (1339315408,), (1339315409,), (1339315410,), (1339315412,), (1339315414,), (1339315428,), (1339315629,), (1339315579,), (1339315618,), (1339315627,), (1339315632,), (1339315634,), (1339315636,), (1339315637,), (1339315640,), (1339315642,), (1339315644,), (1339315646,), (1339315648,), (1339315650,), (1339315654,), (1339315656,), (1339315658,), (1339315660,), (1339315662,), (1339315664,), (1339315666,), (1339315667,), (1339315669,), (1339315671,), (1339315676,), (1339315678,), (1339315680,), (1339315682,), (1339315684,), (1339315686,), (1339315688,), (1339315690,), (1339315692,), (1339315694,), (1339315696,), (1339315699,), (1339315701,), (1339315703,), (1339315705,), (1339315707,), (1339315710,), (1339315711,), (1339315713,), (1339315715,), (1339315717,), (1339315719,), (1339315722,), (1339315725,), (1339315727,), (1339315730,), (1339315732,), (1339315733,), (1339315735,), (1339315737,), (1339315740,), (1339315743,), (1339315750,), (1339315753,), (1339315755,), (1339315758,), (1339315766,), (1339315769,), (1339315772,), (1339315776,), (1339315780,), (1339315788,), (1339315791,), (1339315794,), (1339315797,), (1339315800,), (1339315807,), (1339315809,), (1339315812,), (1339315821,), (1339315819,), (1339315830,), (1339315833,), (1339315835,), (1339316299,), (1339316302,), (1339316305,), (1339316399,), (1339316418,), (1339316470,), (1339316473,), (1339316476,), (1339316479,), (1339316491,), (1339316494,), (1339316497,), (1339316500,), (1339316503,), (1339316505,), (1339316509,), (1339316510,), (1339316513,), (1339316516,), (1339316520,), (1339316531,), (1339316534,), (1339316537,), (1339316540,), (1339316543,), (1339316548,), (1339316550,), (1339316553,), (1339316556,), (1339316559,), (1339316562,), (1339316565,), (1339316568,), (1339316571,), (1339316574,), (1339316581,), (1339316584,), (1339316587,), (1339316590,), (1339316592,), (1339316595,), (1339316600,), (1339316601,), (1339316604,), (1339316607,), (1339316617,), (1339316620,), (1339316622,), (1339316625,), (1339316628,), (1339316632,), (1339316634,), (1339316636,), (1339316638,), (1339316640,), (1339316645,), (1339316648,), (1339316651,), (1339316654,), (1339316656,), (1339316662,), (1339316665,), (1339316668,), (1339316672,), (1339316673,), (1339316677,), (1339316693,), (1339316684,), (1339316687,), (1339316690,), (1339316700,), (1339316703,), (1339316706,), (1339316709,), (1339316717,), (1339316719,), (1339316723,), (1339316728,), (1339316730,), (1339316732,), (1339316734,), (1339316737,), (1339316740,), (1339316743,), (1339316746,), (1339316751,), (1339316755,), (1339316758,), (1339316760,), (1339316763,), (1339316766,), (1339316770,), (1339316772,), (1339316775,), (1339316778,), (1339316781,), (1339316790,), (1339316794,), (1339316798,), (1339316801,), (1339316806,), (1339316809,), (1339316812,), (1339316814,), (1339316817,), (1339316820,), (1339316824,), (1339316827,), (1339316830,), (1339316832,), (1339316840,), (1339316843,), (1339316845,), (1339316849,), (1339316851,), (1339316858,), (1339316861,), (1339316864,), (1339316866,), (1339316869,), (1339316876,), (1339316879,), (1339316882,), (1339316885,), (1339316887,), (1339316893,), (1339316896,), (1339316900,), (1339316902,), (1339316905,), (1339316907,), (1339316913,), (1339316916,), (1339316919,), (1339316922,), (1339316924,), (1339316931,), (1339316934,), (1339316936,), (1339316939,), (1339316944,), (1339316946,), (1339316954,), (1339316949,), (1339316951,), (1339316967,), (1339316971,), (1339316975,), (1339316979,), (1339316981,), (1339316985,), (1339316988,), (1339316991,), (1339316994,), (1339316998,), (1339317007,), (1339317010,), (1339317013,), (1339317016,), (1339317023,), (1339317025,), (1339317027,), (1339317030,), (1339317033,), (1339317036,), (1339317042,), (1339317044,), (1339317046,), (1339317049,), (1339317052,), (1339317059,), (1339317062,), (1339317065,), (1339317067,), (1339317068,), (1339317075,), (1339317078,), (1339317081,), (1339317083,), (1339317085,), (1339317090,), (1339317093,), (1339317095,), (1339317099,), (1339317105,), (1339317108,), (1339317111,), (1339317114,), (1339317117,), (1339317119,), (1339317123,), (1339317126,), (1339317129,), (1339317132,), (1339317139,), (1339317142,), (1339317145,), (1339317148,), (1339317151,), (1339317153,), (1339317157,), (1339317160,), (1339317162,), (1339317165,), (1339317187,), (1339317189,), (1339317191,), (1339317193,), (1339317194,), (1339317197,), (1339317204,), (1339317207,), (1339317214,), (1339317216,), (1339317232,), (1339317222,), (1339317224,), (1339317228,), (1339317558,), (1339317562,), (1339317565,), (1339317569,), (1339317608,), (1339317611,), (1339317614,), (1339317652,), (1339317708,), (1339317717,), (1339317773,), (1339317776,), (1339317856,), (1339317897,), (1339317939,), (1339317959,), (1339317961,), (1339317963,), (1339318008,), (1339318010,), (1339318864,), (1339318845,), (1339318854,), (1339319032,), (1339319037,), (1339319043,), (1339319047,), (1339319052,), (1339319055,), (1339319094,), (1339319097,), (1339319100,), (1339319102,), (1339319105,), (1339319123,), (1339319127,), (1339319129,), (1339319131,), (1339319136,), (1339319139,), (1339319152,), (1339319154,), (1339319157,), (1339319162,), (1339319176,), (1339319180,), (1339319184,), (1339319188,), (1339319192,), (1339319194,), (1339319210,), (1339319216,), (1339319221,), (1339319223,), (1339319241,), (1339319245,), (1339319247,), (1339319251,), (1339319253,), (1339319256,), (1339319269,), (1339319272,), (1339319275,), (1339319278,), (1339319295,), (1339319299,), (1339319302,), (1339319305,), (1339319309,), (1339319310,), (1339319324,), (1339319328,), (1339319332,), (1339319336,), (1339319354,), (1339319358,), (1339319363,), (1339319367,), (1339319371,), (1339319375,), (1339319398,), (1339319384,), (1339319388,), (1339319393,), (1339319416,), (1339319989,), (1339320018,), (1339320020,), (1339320022,), (1339320025,), (1339320029,), (1339320058,), (1339320062,), (1339320065,), (1339320068,), (1339320071,), (1339320098,), (1339320101,), (1339320111,), (1339320119,), (1339320250,), (1339320296,), (1339320302,), (1339320306,), (1339320345,), (1339320350,), (1339320356,), (1339320372,), (1339320375,), (1339320378,), (1339320391,), (1339320394,), (1339320397,), (1339320400,), (1339320403,), (1339320421,), (1339320423,), (1339320428,), (1339320433,), (1339320437,), (1339320468,), (1339320456,), (1339320460,), (1339320463,), (1339320466,), (1339320483,), (1339320487,), (1339320490,), (1339320493,), (1339320512,), (1339320515,), (1339320519,), (1339320523,), (1339320527,), (1339320530,), (1339320546,), (1339320549,), (1339320553,), (1339320557,), (1339320577,), (1339320593,), (1339320595,), (1339320599,), (1339320603,), (1339320609,), (1339320632,), (1339320638,), (1339320647,), (1339320651,), (1339320655,), (1339320670,), (1339320674,), (1339320677,), (1339320682,), (1339320692,), (1339320730,), (1339320734,), (1339320739,), (1339320742,), (1339320751,), (1339320762,), (1339320778,), (1339320782,), (1339320785,), (1339320788,), (1339320791,), (1339320806,), (1339320809,), (1339320812,), (1339320814,), (1339320818,), (1339320822,), (1339320841,), (1339320845,), (1339320849,), (1339320852,), (1339320855,), (1339320878,), (1339320881,), (1339320885,), (1339320889,), (1339320905,), (1339320908,), (1339320911,), (1339320914,), (1339320918,), (1339320921,), (1339320949,), (1339320952,), (1339320955,), (1339320958,), (1339320962,), (1339320966,), (1339320996,), (1339320998,), (1339321000,), (1339321003,), (1339320977,), (1339320981,), (1339320985,), (1339320989,), (1339320992,), (1339321010,), (1339321014,), (1339321017,), (1339321020,), (1339321438,), (1339321473,), (1339321535,), (1339321539,), (1339321543,), (1339321630,), (1339321633,), (1339321636,), (1339321639,), (1339321642,), (1339321645,), (1339321657,), (1339321661,), (1339321664,), (1339321668,), (1339321686,), (1339321690,), (1339321693,), (1339321698,), (1339321702,), (1339321706,), (1339321724,), (1339321728,), (1339321733,), (1339321736,), (1339321755,), (1339321757,), (1339321760,), (1339321764,), (1339321769,), (1339321773,), (1339321790,), (1339321793,), (1339321796,), (1339321815,), (1339321818,), (1339321822,), (1339321827,), (1339321831,), (1339321867,), (1339321870,), (1339321873,), (1339321876,), (1339321880,), (1339321883,), (1339321921,), (1339321923,), (1339321926,), (1339321929,), (1339321933,), (1339321970,), (1339321974,), (1339321978,), (1339321981,), (1339321985,), (1339321988,), (1339322029,), (1339322040,), (1339322047,), (1339322051,), (1339322091,), (1339322097,), (1339322100,), (1339322103,), (1339322106,), (1339322158,), (1339322138,), (1339322143,), (1339322145,), (1339322149,), (1339322152,), (1339322186,), (1339322190,), (1339322196,), (1339322205,), (1339322226,), (1339322230,), (1339322234,), (1339322238,), (1339322241,), (1339322716,), (1339322720,), (1339322723,), (1339322796,), (1339322840,), (1339322920,), (1339322924,), (1339322927,), (1339322930,), (1339322933,), (1339322945,), (1339322949,), (1339322951,), (1339322955,), (1339322975,), (1339322979,), (1339322982,), (1339322985,), (1339322989,), (1339322991,), (1339323008,), (1339323011,), (1339323014,), (1339323018,), (1339323022,), (1339323042,), (1339323045,), (1339323049,), (1339323052,), (1339323055,), (1339323075,), (1339323079,), (1339323082,), (1339323085,), (1339323087,), (1339323101,), (1339323104,), (1339323106,), (1339323109,), (1339323140,), (1339323145,), (1339323149,), (1339323153,), (1339323163,), (1339323198,), (1339323202,), (1339323203,), (1339323211,), (1339323219,), (1339323251,), (1339323255,), (1339323263,), (1339323273,), (1339323277,), (1339323280,), (1339323304,), (1339323310,), (1339323315,), (1339323328,), (1339323391,), (1339323375,), (1339323379,), (1339323382,), (1339323385,), (1339323389,), (1339323426,), (1339323430,), (1339323434,), (1339323439,), (1339323459,), (1339323464,), (1339323469,), (1339323472,), (1339323476,), (1339323479,), (1339324050,), (1339324053,), (1339324303,), (1339324310,), (1339324341,), (1339324347,), (1339324387,), (1339324408,), (1339324411,), (1339324414,), (1339324463,), (1339324467,), (1339324486,), (1339324489,), (1339324492,), (1339324495,), (1339324499,), (1339324513,), (1339324516,), (1339324520,), (1339324544,), (1339324548,), (1339324552,), (1339324573,), (1339324577,), (1339324581,), (1339324585,), (1339324588,), (1339324613,), (1339324621,), (1339324623,), (1339324626,), (1339324629,), (1339324632,), (1339324656,), (1339324647,), (1339324650,), (1339324653,), (1339324672,), (1339324674,), (1339324676,), (1339324678,), (1339324688,), (1339324693,), (1339324696,), (1339324699,), (1339324702,), (1339324717,), (1339324720,), (1339324723,), (1339324743,), (1339324746,), (1339324750,), (1339324751,), (1339324754,), (1339324758,), (1339324770,), (1339324774,), (1339324778,), (1339324782,), (1339324800,), (1339324805,), (1339324809,), (1339324811,), (1339324813,), (1339324817,), (1339324832,), (1339324837,), (1339324841,), (1339324862,), (1339324866,), (1339324869,), (1339324872,), (1339324875,), (1339324878,), (1339324890,), (1339324893,), (1339324898,), (1339324900,), (1339324925,), (1339324929,), (1339324932,), (1339324934,), (1339324936,), (1339324938,), (1339324952,), (1339324958,), (1339324963,), (1339324965,), (1339324968,), (1339324983,), (1339324987,), (1339324989,), (1339324990,), (1339325027,), (1339325033,), (1339325037,), (1339325040,), (1339325044,), (1339325046,), (1339325063,), (1339327404,), (1339327487,), (1339327492,), (1339327497,), (1339327500,), (1339327521,), (1339327526,), (1339327531,), (1339327536,), (1339327540,), (1339327560,), (1339327563,), (1339327566,), (1339327569,), (1339327573,), (1339327590,), (1339327594,), (1339327598,), (1339327603,), (1339327607,), (1339327610,), (1339327625,), (1339327629,), (1339327632,), (1339327635,), (1339327653,), (1339327655,), (1339327659,), (1339327663,), (1339327667,), (1339327671,), (1339327691,), (1339327696,), (1339327700,), (1339327703,), (1339327705,), (1339327721,), (1339327727,), (1339327729,), (1339327732,), (1339327735,), (1339327739,), (1339327751,), (1339327755,), (1339327758,), (1339327761,), (1339327765,), (1339327783,), (1339327787,), (1339327791,), (1339327795,), (1339327798,), (1339327802,), (1339327823,), (1339327826,), (1339327829,), (1339327833,), (1339327836,), (1339327862,), (1339327866,), (1339327869,), (1339327873,), (1339327877,), (1339327918,), (1339327921,), (1339327923,), (1339327925,), (1339327931,), (1339327971,), (1339327980,), (1339327984,), (1339327988,), (1339327992,), (1339327996,), (1339328026,), (1339328009,), (1339328015,), (1339328021,), (1339328049,), (1339328103,), (1339328397,), (1339328407,), (1339328410,), (1339328414,), (1339328417,), (1339328451,), (1339328455,), (1339328459,), (1339328461,), (1339328468,), (1339328471,), (1339328474,), (1339328477,), (1339328478,), (1339328503,), (1339328488,), (1339328492,), (1339328496,), (1339328500,), (1339328531,), (1339328535,), (1339328538,), (1339328602,), (1339328885,), (1339329051,), (1339329055,), (1339329057,), (1339329060,), (1339329063,), (1339329066,), (1339329086,), (1339329089,), (1339329092,), (1339329095,), (1339329116,), (1339329121,), (1339329126,), (1339329129,), (1339329133,), (1339329136,), (1339329152,), (1339329156,), (1339329159,), (1339329161,), (1339329182,), (1339329185,), (1339329187,), (1339329190,), (1339329193,), (1339329197,), (1339329218,), (1339329222,), (1339329226,), (1339329230,), (1339329246,), (1339329250,), (1339329255,), (1339329258,), (1339329263,), (1339329266,), (1339329284,), (1339329290,), (1339329293,), (1339329296,), (1339329314,), (1339329318,), (1339329322,), (1339329326,), (1339329330,), (1339329334,), (1339329353,), (1339329358,), (1339329361,), (1339329391,), (1339329394,), (1339329398,), (1339329400,), (1339329406,), (1339329411,), (1339329437,), (1339329443,), (1339329448,), (1339329453,), (1339329479,), (1339329485,), (1339329490,), (1339329492,), (1339329495,), (1339329528,), (1339329510,), (1339329516,), (1339329521,), (1339329524,), (1339329526,), (1339329542,), (1339329547,), (1339329755,), (1339329914,), (1339330046,), (1339330049,), (1339330051,), (1339330053,), (1339330058,), (1339330062,), (1339330077,), (1339330082,), (1339330085,), (1339330089,), (1339330115,), (1339330122,), (1339330125,), (1339330129,), (1339330132,), (1339330135,), (1339330153,), (1339330157,), (1339330160,), (1339330182,), (1339330187,), (1339330191,), (1339330195,), (1339330199,), (1339330203,), (1339330215,), (1339330219,), (1339330223,), (1339330228,), (1339330232,), (1339330247,), (1339330250,), (1339330255,), (1339330259,), (1339330263,), (1339330268,), (1339330281,), (1339330284,), (1339330287,), (1339330290,), (1339330319,), (1339330323,), (1339330327,), (1339330333,), (1339330337,), (1339330341,), (1339330358,), (1339330362,), (1339330366,), (1339330417,), (1339330462,), (1339330467,), (1339330470,), (1339330474,), (1339330523,), (1339330527,), (1339330533,), (1339330536,), (1339330540,), (1339330582,), (1339330574,), (1339330629,), (1339330634,), (1339330642,), (1339330651,), (1339330659,), (1339330690,), (1339330697,), (1339330700,), (1339330703,), (1339330707,), (1339330826,), (1339331192,), (1339331262,), (1339331280,), (1339331287,), (1339331291,), (1339331324,), (1339331331,), (1339331337,), (1339331341,), (1339331344,), (1339331367,), (1339331371,), (1339331374,), (1339331378,), (1339331382,), (1339331384,), (1339331401,), (1339331404,), (1339331410,), (1339331414,), (1339331432,), (1339331437,), (1339331441,), (1339331445,), (1339331449,), (1339331452,), (1339331466,), (1339331471,), (1339331475,), (1339331481,), (1339331506,), (1339331556,), (1339331560,), (1339331564,), (1339331580,), (1339331585,), (1339331589,), (1339331592,), (1339331595,), (1339331612,), (1339331616,), (1339331618,), (1339331622,), (1339331645,), (1339331649,), (1339331653,), (1339331692,), (1339331718,), (1339331721,), (1339331766,), (1339331759,), (1339331763,), (1339331787,), (1339331790,), (1339331794,), (1339331796,), (1339331799,), (1339331802,), (1339331819,), (1339331822,), (1339331826,), (1339331830,), (1339331849,), (1339331853,), (1339331856,), (1339331858,), (1339331862,), (1339331878,), (1339331882,), (1339331886,), (1339331889,), (1339331892,), (1339331913,), (1339331916,), (1339331919,), (1339331922,), (1339331935,), (1339331942,), (1339331977,), (1339331982,), (1339331988,), (1339331999,), (1339332002,), (1339332033,), (1339332050,), (1339332054,), (1339332057,), (1339332060,), (1339332091,), (1339332097,), (1339332100,), (1339332103,), (1339332106,), (1339332145,), (1339332154,), (1339332158,), (1339332162,), (1339332165,), (1339332168,), (1339332186,), (1339332195,), (1339332200,), (1339332203,), (1339332241,), (1339332247,), (1339332251,), (1339332255,), (1339332260,), (1339332298,), (1339332301,), (1339332304,), (1339332307,), (1339332311,), (1339332314,), (1339332351,), (1339332356,), (1339332360,), (1339332363,), (1339332403,), (1339332389,), (1339332394,), (1339332399,), (1339332425,), (1339332431,), (1339332435,), (1339332439,), (1339332443,), (1339332446,), (1339332461,), (1339332462,), (1339332465,), (1339332468,), (1339332472,), (1339333159,), (1339333163,), (1339333167,), (1339333171,), (1339333174,), (1339333440,), (1339333446,), (1339333450,), (1339333453,), (1339333455,), (1339333459,), (1339333479,), (1339333484,), (1339333487,), (1339333490,), (1339333493,), (1339333508,), (1339333515,), (1339333520,), (1339333523,), (1339333527,), (1339333532,), (1339333549,), (1339333552,), (1339333554,), (1339333557,), (1339333562,), (1339333580,), (1339333585,), (1339333590,), (1339333593,), (1339333597,), (1339333601,), (1339333621,), (1339333626,), (1339333630,), (1339333633,), (1339333637,), (1339333656,), (1339333663,), (1339333669,), (1339333675,), (1339333680,), (1339333687,), (1339333723,), (1339333728,), (1339334264,), (1339333998,), (1339334002,), (1339334067,), (1339334397,), (1339334400,), (1339334404,), (1339334431,), (1339334437,), (1339334476,), (1339334480,), (1339334507,), (1339334512,), (1339334517,), (1339334601,), (1339334609,), (1339334613,), (1339334634,), (1339334639,), (1339334641,), (1339334644,), (1339334648,), (1339334667,), (1339334673,), (1339334676,), (1339334696,), (1339334700,), (1339334702,), (1339334705,), (1339334709,), (1339334726,), (1339334730,), (1339334735,), (1339334738,), (1339334742,), (1339334745,), (1339334759,), (1339334762,), (1339334766,), (1339334770,), (1339334780,), (1339334790,), (1339334794,), (1339334797,), (1339334801,), (1339334919,), (1339334818,), (1339334822,), (1339335209,), (1339335215,), (1339335241,), (1339335245,), (1339335247,), (1339335249,), (1339335271,), (1339335276,), (1339335281,), (1339335285,), (1339335316,), (1339335321,), (1339335356,), (1339335360,), (1339335363,), (1339335366,), (1339335370,), (1339335416,), (1339335420,), (1339335426,), (1339335433,), (1339335439,), (1339335467,), (1339335471,), (1339335479,), (1339335483,), (1339335487,), (1339335495,), (1339335518,), (1339335526,), (1339335529,), (1339335532,), (1339335535,), (1339335561,), (1339335565,), (1339335568,), (1339335573,), (1339335579,), (1339335609,), (1339335613,), (1339335617,), (1339335621,), (1339335624,), (1339335627,), (1339335640,), (1339335644,), (1339335647,), (1339335650,), (1339335667,), (1339335670,), (1339335673,), (1339335676,), (1339335680,), (1339335683,), (1339335701,), (1339335704,), (1339335708,), (1339335711,), (1339335715,), (1339335751,), (1339335755,), (1339335758,), (1339335762,), (1339335766,), (1339335768,), (1339335793,), (1339335778,), (1339335782,), (1339335785,), (1339335789,), (1339335809,), (1339335813,), (1339335816,), (1339335819,), (1339335822,), (1339336309,), (1339336312,), (1339336315,), (1339336318,), (1339336322,), (1339336325,), (1339336547,), (1339336564,), (1339336567,), (1339336744,), (1339336748,), (1339336751,), (1339336755,), (1339336758,), (1339336778,), (1339336784,), (1339336787,), (1339336791,), (1339336794,), (1339336814,), (1339336818,), (1339336821,), (1339336824,), (1339336827,), (1339336843,), (1339336846,), (1339336849,), (1339336852,), (1339336854,), (1339336871,), (1339336876,), (1339336879,), (1339336884,), (1339336888,), (1339336899,), (1339336903,), (1339336907,), (1339336911,), (1339336915,), (1339336917,), (1339336929,), (1339336933,), (1339336937,), (1339336940,), (1339336943,), (1339336960,), (1339336971,), (1339336975,), (1339336979,), (1339336982,), (1339336984,), (1339336993,), (1339336997,), (1339337001,), (1339337004,), (1339337008,), (1339337012,), (1339337056,), (1339337063,), (1339337069,), (1339337071,), (1339337073,), (1339337080,), (1339337086,), (1339337089,), (1339337091,), (1339337119,), (1339337107,), (1339337111,), (1339337113,), (1339337115,), (1339337117,), (1339337149,), (1339337153,), (1339337156,), (1339337159,), (1339337200,), (1339337203,), (1339337206,), (1339337354,), (1339337614,), (1339337826,), (1339337834,), (1339337837,), (1339337841,), (1339337844,), (1339337875,), (1339337888,), (1339337898,), (1339337909,), (1339337942,), (1339337946,), (1339337952,), (1339337955,), (1339337957,), (1339337960,), (1339337977,), (1339337980,), (1339337983,), (1339337988,), (1339338007,), (1339338009,), (1339338013,), (1339338016,), (1339338018,), (1339338022,), (1339338035,), (1339338038,), (1339338041,), (1339338060,), (1339338064,), (1339338066,), (1339338069,), (1339338074,), (1339338076,), (1339338112,), (1339338115,), (1339339177,), (1339344264,), (1339344292,), (1339344297,), (1339344416,), (1339344450,), (1339344455,), (1339344485,), (1339344517,), (1339344520,), (1339344524,), (1339344529,), (1339344564,), (1339344568,), (1339344828,), (1339344738,), (1339344741,), (1339344744,), (1339344819,), (1339344902,), (1339344907,), (1339344912,), (1339344917,), (1339344948,), (1339344952,), (1339344955,), (1339344957,), (1339344959,), (1339344964,), (1339344984,), (1339344989,), (1339344995,), (1339344999,), (1339345003,), (1339345034,), (1339345046,), (1339345050,), (1339345079,), (1339345084,), (1339345087,), (1339345091,), (1339345139,), (1339345145,), (1339345151,), (1339345153,), (1339345157,), (1339345183,), (1339345188,), (1339345192,), (1339345196,), (1339345200,), (1339345227,), (1339345231,), (1339345237,), (1339345265,), (1339345270,), (1339345274,), (1339345278,), (1339345283,), (1339345286,), (1339345306,), (1339345308,), (1339345311,), (1339345314,), (1339345318,), (1339345322,), (1339345339,), (1339345343,), (1339345347,), (1339345362,), (1339345366,), (1339345369,), (1339345371,), (1339345372,), (1339345411,), (1339345417,), (1339345420,), (1339345425,), (1339345426,), (1339345431,), (1339345436,), (1339345439,), (1339345444,), (1339345448,), (1339345451,), (1339345470,), (1339345461,), (1339345465,), (1339345467,), (1339345494,), (1339345499,), (1339345509,), (1339345512,), (1339345515,), (1339345518,), (1339345544,), (1339345548,), (1339345552,), (1339345555,), (1339345585,), (1339345589,), (1339345598,), (1339345608,), (1339346434,), (1339346442,), (1339346453,), (1339346457,), (1339346461,), (1339346465,), (1339346761,), (1339346782,), (1339346820,), (1339346838,), (1339346845,), (1339346863,), (1339346866,), (1339346870,), (1339346875,), (1339346880,), (1339346899,), (1339346902,), (1339346905,), (1339346928,), (1339346933,), (1339346964,), (1339346968,), (1339347078,), (1339350161,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24022025': {'nb_upload': 10, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20784610]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] map_info['map_portfolio_photo'] : {20784610: [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609]} final : True mtd_id 4302 list_pids : [1339313498, 1339312958, 1339312946, 1339312928, 1339312926, 1339312919, 1339312898, 1339312896, 1339312889, 1339312609] Looping around the photos to save general results len do output : 1 /20784610Didn'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, '2611076') ('4302', '20784610', '1339313498', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312958', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312946', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312928', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312926', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312919', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312898', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312896', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312889', None, None, None, None, None, '2611076') ('4302', None, None, None, None, None, None, None, '2611076') ('4302', '20784610', '1339312609', None, None, None, None, None, '2611076') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '20784610', 'None', None, None, None, None, '2611076'), ('4302', '20784610', '1339313498', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312958', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312946', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312928', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312926', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312919', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312898', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312896', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312889', None, None, None, None, None, '2611076'), ('4302', '20784610', '1339312609', None, None, None, None, None, '2611076')] time used for this insertion : 0.014120817184448242 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.200685501098633 time spend to save output : 0.014307022094726562 total time spend for step 5 : 3.2149925231933594 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 (2611076) 2.05user 2.52system 0:09.76elapsed 46%CPU (0avgtext+0avgdata 162084maxresident)k 14640inputs+6896outputs (168major+63990minor)pagefaults 0swaps