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 : 148694 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 (2572445) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2572445) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911525 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2572445'] with mtr_portfolio_ids : ['19911525'] and first list_photo_ids : [] new path : /proc/148694/ Name: python3 Umask: 0002 State: R (running) Tgid: 148694 Ngid: 0 Pid: 148694 PPid: 148693 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 148694 NSpid: 148694 NSpgid: 148222 NSsid: 148222 VmPeak: 1106660 kB VmSize: 1106660 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97556 kB VmRSS: 97556 kB RssAnon: 59740 kB RssFile: 37816 kB RssShmem: 0 kB VmData: 865412 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 40 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '148694', 'Ngid': '0', 'Pid': '148694', 'PPid': '148693', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '148694', 'NSpid': '148694', 'NSpgid': '148222', 'NSsid': '148222', 'VmPeak': '1106660 kB', 'VmSize': '1106660 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97556 kB', 'VmRSS': '97556 kB', 'RssAnon': '59740 kB', 'RssFile': '37816 kB', 'RssShmem': '0 kB', 'VmData': '865412 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '40', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '148694', '1106660', '0', '1106660', '865412', '97556', b'', 'marlene', '2572445') 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 (19911525) 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 (2572445 ) ) 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 (19911525) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1330952962, 'portfolio_id': 19911525}, {'photo_id': 1330952912, 'portfolio_id': 19911525}, {'photo_id': 1330952909, 'portfolio_id': 19911525}, {'photo_id': 1330952842, 'portfolio_id': 19911525}, {'photo_id': 1330950013, 'portfolio_id': 19911525}, {'photo_id': 1330944378, 'portfolio_id': 19911525}, {'photo_id': 1330942688, 'portfolio_id': 19911525}, {'photo_id': 1330911201, 'portfolio_id': 19911525}, {'photo_id': 1330911197, 'portfolio_id': 19911525}, {'photo_id': 1330911195, 'portfolio_id': 19911525}] map_portfolio_id_photo_id: {19911525: [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195]} ##### 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 : 1.1716320514678955 #### 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 Mon Feb 10 22:33:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (19911525) 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 : 19911525 get user id for portfolio 19911525 get sub ptf for main ptf 19911525, type 3726 and hashtags ['Carton_brun', 'autre_refus', 'flou', 'environnement', 'plastique', 'kraft', 'papier', 'Carton_gris', 'cartonnette', 'metal', 'mal_croppe', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=19911525 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','flou','environnement','plastique','kraft','papier','Carton_gris','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse')) 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`=19911525 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','flou','environnement','plastique','kraft','papier','Carton_gris','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 19911525, 'sub_port_id': 19911617, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656040, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'Carton_brun': {'main_port_id': 19911525, 'sub_port_id': 19911618, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656041, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'plastique': {'main_port_id': 19911525, 'sub_port_id': 19911619, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656042, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'mal_croppe': {'main_port_id': 19911525, 'sub_port_id': 19911620, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656043, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'Carton_gris': {'main_port_id': 19911525, 'sub_port_id': 19911621, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656044, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'autre_refus': {'main_port_id': 19911525, 'sub_port_id': 19911622, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656045, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'metal': {'main_port_id': 19911525, 'sub_port_id': 19911623, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656046, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'cartonnette': {'main_port_id': 19911525, 'sub_port_id': 19911624, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656047, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'papier': {'main_port_id': 19911525, 'sub_port_id': 19911625, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656048, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'environnement': {'main_port_id': 19911525, 'sub_port_id': 19911626, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656049, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'flou': {'main_port_id': 19911525, 'sub_port_id': 19911627, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656050, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 19911525, 'sub_port_id': 19911628, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656051, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 19911617 , 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=19911525 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 (19911617) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911618 , 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=19911525 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 (19911618) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911619 , 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=19911525 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 (19911619) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911620 , 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=19911525 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 (19911620) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911621 , 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=19911525 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 (19911621) result : ((1336040666,), (1336040668,), (1336040669,), (1336040670,), (1336040671,), (1336040672,), (1336040673,), (1336040674,), (1336040675,), (1336040676,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911622 , 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=19911525 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 (19911622) result : ((1336040660,), (1336040661,), (1336040662,), (1336040663,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911623 , 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=19911525 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 (19911623) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911624 , 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=19911525 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 (19911624) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911625 , 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=19911525 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 (19911625) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911626 , 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=19911525 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 (19911626) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911627 , 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=19911525 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 (19911627) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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 19911628 , 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=19911525 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 (19911628) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (19911525) result : ((1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,)) 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`=19911525 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','flou','environnement','plastique','kraft','papier','Carton_gris','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse')) 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`=19911525 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','autre_refus','flou','environnement','plastique','kraft','papier','Carton_gris','cartonnette','metal','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 19911525, 'sub_port_id': 19911629, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656052, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'Carton_brun': {'main_port_id': 19911525, 'sub_port_id': 19911630, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656053, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'plastique': {'main_port_id': 19911525, 'sub_port_id': 19911631, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656054, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'mal_croppe': {'main_port_id': 19911525, 'sub_port_id': 19911632, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656055, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'Carton_gris': {'main_port_id': 19911525, 'sub_port_id': 19911633, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656056, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'autre_refus': {'main_port_id': 19911525, 'sub_port_id': 19911634, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656057, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'metal': {'main_port_id': 19911525, 'sub_port_id': 19911635, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656058, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'cartonnette': {'main_port_id': 19911525, 'sub_port_id': 19911636, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656059, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'papier': {'main_port_id': 19911525, 'sub_port_id': 19911637, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656060, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'environnement': {'main_port_id': 19911525, 'sub_port_id': 19911638, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656061, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'flou': {'main_port_id': 19911525, 'sub_port_id': 19911639, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656062, 'last_updated_at': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_desc': datetime.datetime(2025, 1, 25, 3, 23, 30), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 19911525, 'sub_port_id': 19911640, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12656063, 'last_updated_at': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 5, 54), 'last_updated_at_asc': datetime.datetime(2025, 1, 25, 3, 23, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911629,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911617 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911619 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911620 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911621 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 19911640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 19911628 lien utilise dans velours : https://www.fotonower.com/velours/19911629,19911630,19911631,19911632,19911633,19911634,19911635,19911636,19911637,19911638,19911639,19911640?tags=kraft,Carton_brun,plastique,mal_croppe,Carton_gris,autre_refus,metal,cartonnette,papier,environnement,flou,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([19911525]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] map_info['map_portfolio_photo'] : {19911525: [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195]} final : False mtd_id 4302 list_pids : [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] Looping around the photos to save general results len do output : 1 /19911525. 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, '2572445') ('4302', '19911525', '1330952962', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952912', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952909', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952842', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330950013', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330944378', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330942688', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911201', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911197', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911195', None, None, None, None, None, '2572445') 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, '19911525', "{'kraft': 19911617, 'Carton_brun': 19911618, 'plastique': 19911619, 'mal_croppe': 19911620, 'Carton_gris': 19911621, 'autre_refus': 19911622, 'metal': 19911623, 'cartonnette': 19911624, 'papier': 19911625, 'environnement': 19911626, 'flou': 19911627, 'Teint_Dans_La_Masse': 19911628}", None, None, None, None, '2572445'), ('4302', '19911525', '1330952962', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952912', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952909', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952842', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330950013', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330944378', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330942688', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911201', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911197', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911195', None, None, None, None, None, '2572445')] time used for this insertion : 0.014240503311157227 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4274284839630127 time spend to save output : 0.014502286911010742 total time spend for step 1 : 1.4419307708740234 step2:final Mon Feb 10 22:33:32 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 (19911525) 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 19911525 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1330911201,1330952962,1330911197,1330952912,1330911195,1330952909,1330942688,1330944378,1330950013,1330952842); 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([19911525]) Inside saveOutput : final : False verbose : True original output for save of step final : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} new output for save of step final : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] map_info['map_portfolio_photo'] : {19911525: [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195]} final : False mtd_id 4302 list_pids : [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] Looping around the photos to save general results len do output : 10 /1330952962.Didn't retrieve data . /1330952912.Didn't retrieve data . /1330952909.Didn't retrieve data . /1330952842.Didn't retrieve data . /1330950013.Didn't retrieve data . /1330944378.Didn't retrieve data . /1330942688.Didn't retrieve data . /1330911201.Didn't retrieve data . /1330911197.Didn't retrieve data . /1330911195.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, '2572445') ('4302', '19911525', '1330952962', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952912', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952909', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952842', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330950013', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330944378', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330942688', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911201', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911197', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911195', None, None, None, None, None, '2572445') 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', '19911525', '1330952962', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330952912', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330952909', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330952842', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330950013', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330944378', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330942688', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330911201', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330911197', '0.025869937132714644', None, None, None, None, '2572445'), ('4302', '19911525', '1330911195', '0.025869937132714644', None, None, None, None, '2572445')] time used for this insertion : 0.01271963119506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06340503692626953 time spend to save output : 0.013017416000366211 total time spend for step 2 : 0.07642245292663574 step3:velours_tree Mon Feb 10 22:33:32 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 : {19911525: [{'kraft': 19911617, 'Carton_brun': 19911618, 'plastique': 19911619, 'mal_croppe': 19911620, 'Carton_gris': 19911621, 'autre_refus': 19911622, 'metal': 19911623, 'cartonnette': 19911624, 'papier': 19911625, 'environnement': 19911626, 'flou': 19911627, 'Teint_Dans_La_Masse': 19911628}]} input_args_next_step : {19911525: ()} output_args : {19911525: [{'kraft': 19911617, 'Carton_brun': 19911618, 'plastique': 19911619, 'mal_croppe': 19911620, 'Carton_gris': 19911621, 'autre_refus': 19911622, 'metal': 19911623, 'cartonnette': 19911624, 'papier': 19911625, 'environnement': 19911626, 'flou': 19911627, 'Teint_Dans_La_Masse': 19911628}]} args : 19911525 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 19911617, 'Carton_brun': 19911618, 'plastique': 19911619, 'mal_croppe': 19911620, 'Carton_gris': 19911621, 'autre_refus': 19911622, 'metal': 19911623, 'cartonnette': 19911624, 'papier': 19911625, 'environnement': 19911626, 'flou': 19911627, 'Teint_Dans_La_Masse': 19911628},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (19911525) 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([19911525]) 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.3471693992614746 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.34722161293029785 step4:send_mail_cod Mon Feb 10 22:33:32 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 : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} input_args_next_step : {1330952962: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330952962 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330952912 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330952909 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330952842 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330950013 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330944378 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330942688 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330911201 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330911197 depend.output_id : 0 input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ()} output_args : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',)} args : 1330911195 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 : {19911525: [{'kraft': 19911617, 'Carton_brun': 19911618, 'plastique': 19911619, 'mal_croppe': 19911620, 'Carton_gris': 19911621, 'autre_refus': 19911622, 'metal': 19911623, 'cartonnette': 19911624, 'papier': 19911625, 'environnement': 19911626, 'flou': 19911627, 'Teint_Dans_La_Masse': 19911628}]} input_args_next_step : {1330952962: ('0.025869937132714644',), 1330952912: ('0.025869937132714644',), 1330952909: ('0.025869937132714644',), 1330952842: ('0.025869937132714644',), 1330950013: ('0.025869937132714644',), 1330944378: ('0.025869937132714644',), 1330942688: ('0.025869937132714644',), 1330911201: ('0.025869937132714644',), 1330911197: ('0.025869937132714644',), 1330911195: ('0.025869937132714644',), 19911525: ()} output_args : {19911525: [{'kraft': 19911617, 'Carton_brun': 19911618, 'plastique': 19911619, 'mal_croppe': 19911620, 'Carton_gris': 19911621, 'autre_refus': 19911622, 'metal': 19911623, 'cartonnette': 19911624, 'papier': 19911625, 'environnement': 19911626, 'flou': 19911627, 'Teint_Dans_La_Masse': 19911628}]} args : 19911525 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.025869937132714644',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (19911525) 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 (1330952962,1330952912,1330952909,1330952842,1330950013,1330944378,1330942688,1330911201,1330911197,1330911195) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1330911195 begin to download photo : 1330942688 begin to download photo : 1330952842 begin to download photo : 1330952962 download finish for photo 1330952842 download finish for photo 1330952962 begin to download photo : 1330952909 download finish for photo 1330911195 begin to download photo : 1330911197 download finish for photo 1330942688 begin to download photo : 1330944378 download finish for photo 1330944378 begin to download photo : 1330950013 download finish for photo 1330911197 begin to download photo : 1330911201 download finish for photo 1330952909 begin to download photo : 1330952912 download finish for photo 1330950013 download finish for photo 1330952912 download finish for photo 1330911201 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette199116171739223213/ imagette199116191739223213/ imagette199116201739223213/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P19911525_10-02-2025_22_33_33.pdf 19911617 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=19911617 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116171739223213 19911619 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=19911619 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116191739223213 19911620 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=19911620 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116201739223213 19911622 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=19911622 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336040660: '1739076516_1261733_1330952962_911b906897d8f7ba73d706284e731ca0_rle_crop_3664576172_0.png', 1336040661: '1739076516_1261733_1330952962_911b906897d8f7ba73d706284e731ca0_rle_crop_3664576171_0.png', 1336040662: '1739076516_1261733_1330911201_bf7b8dc77845839045bf9faef3d831a3_rle_crop_3664583014_0.png', 1336040663: '1739076516_1261733_1330911201_bf7b8dc77845839045bf9faef3d831a3_rle_crop_3664583013_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/ce887f1fbed8c8e83c97cfe9c397ea88_97327956.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/52ba359e3fdbfe215ffb98df0ef8cd09_52330963.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/ce887f1fbed8c8e83c97cfe9c397ea88_48031413.png change filename to text .imagette199116221739223213/ imagette199116221739223213/1739076516_1261733_1330911201_bf7b8dc77845839045bf9faef3d831a3_rle_crop_3664583014_0.png.png imagette199116221739223213/1739076516_1261733_1330911201_bf7b8dc77845839045bf9faef3d831a3_rle_crop_3664583013_0.png.png imagette199116221739223213/1739076516_1261733_1330952962_911b906897d8f7ba73d706284e731ca0_rle_crop_3664576172_0.png.png imagette199116221739223213/1739076516_1261733_1330952962_911b906897d8f7ba73d706284e731ca0_rle_crop_3664576171_0.png.png imagette199116231739223213/ imagette199116241739223213/ imagette199116271739223213/ imagette199116181739223213/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/52ba359e3fdbfe215ffb98df0ef8cd09_21906338.png imagette199116221739223213 19911623 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=19911623 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116231739223213 19911624 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=19911624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116241739223213 19911627 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=19911627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116271739223213 19911618 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=19911618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116181739223213 19911621 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=19911621 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336040666: '1739076516_1261733_1330952912_92a0422eaf81f50591eea593890af15e_rle_crop_3664577211_0.png', 1336040668: '1739076516_1261733_1330952842_cecacd12acac9c43dcbf0c5657c964ba_rle_crop_3664578926_0.png', 1336040669: '1739076516_1261733_1330952842_cecacd12acac9c43dcbf0c5657c964ba_rle_crop_3664578924_0.png', 1336040670: '1739076516_1261733_1330950013_5c52f648220fb969856d1ad95b3e083b_rle_crop_3664579489_0.png', 1336040671: '1739076516_1261733_1330950013_5c52f648220fb969856d1ad95b3e083b_rle_crop_3664579487_0.png', 1336040672: '1739076516_1261733_1330944378_3149e871b8521032dd073677f421a4bb_rle_crop_3664581141_0.png', 1336040673: '1739076516_1261733_1330944378_3149e871b8521032dd073677f421a4bb_rle_crop_3664581139_0.png', 1336040674: '1739076516_1261733_1330942688_489ec8041a5bd8fa9600c849cfcd3f6f_rle_crop_3664582692_0.png', 1336040675: '1739076516_1261733_1330942688_489ec8041a5bd8fa9600c849cfcd3f6f_rle_crop_3664582690_0.png', 1336040676: '1739076516_1261733_1330911197_72d6f821f96db84b9ef35f4d8f367e52_rle_crop_3664583183_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/b609e428a29d49276f43e5d366bebd1f_5704187.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6d16faaf8622c652d00d11790a70d3d6_6816384.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/7bd8603bb0d7dfe8444caa9f64425195_74000250.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6d16faaf8622c652d00d11790a70d3d6_9839259.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/7bd8603bb0d7dfe8444caa9f64425195_81488064.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6d16faaf8622c652d00d11790a70d3d6_2841029.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/7bd8603bb0d7dfe8444caa9f64425195_17008081.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/6d16faaf8622c652d00d11790a70d3d6_75648840.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/7bd8603bb0d7dfe8444caa9f64425195_99594754.png change filename to text .imagette199116211739223213/ imagette199116211739223213/1739076516_1261733_1330942688_489ec8041a5bd8fa9600c849cfcd3f6f_rle_crop_3664582692_0.png.png imagette199116211739223213/1739076516_1261733_1330944378_3149e871b8521032dd073677f421a4bb_rle_crop_3664581141_0.png.png imagette199116211739223213/1739076516_1261733_1330952842_cecacd12acac9c43dcbf0c5657c964ba_rle_crop_3664578924_0.png.png imagette199116211739223213/1739076516_1261733_1330944378_3149e871b8521032dd073677f421a4bb_rle_crop_3664581139_0.png.png imagette199116211739223213/1739076516_1261733_1330952912_92a0422eaf81f50591eea593890af15e_rle_crop_3664577211_0.png.png imagette199116211739223213/1739076516_1261733_1330952842_cecacd12acac9c43dcbf0c5657c964ba_rle_crop_3664578926_0.png.png imagette199116211739223213/1739076516_1261733_1330950013_5c52f648220fb969856d1ad95b3e083b_rle_crop_3664579487_0.png.png imagette199116211739223213/1739076516_1261733_1330911197_72d6f821f96db84b9ef35f4d8f367e52_rle_crop_3664583183_0.png.png imagette199116211739223213/1739076516_1261733_1330942688_489ec8041a5bd8fa9600c849cfcd3f6f_rle_crop_3664582690_0.png.png imagette199116211739223213/1739076516_1261733_1330950013_5c52f648220fb969856d1ad95b3e083b_rle_crop_3664579489_0.png.png imagette199116281739223214/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/b609e428a29d49276f43e5d366bebd1f_65674360.png imagette199116211739223213 19911628 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=19911628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette199116281739223214 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=19911525 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/19911629,19911630,19911631,19911632,19911633,19911634,19911635,19911636,19911637,19911638,19911639,19911640?tags=kraft,Carton_brun,plastique,mal_croppe,Carton_gris,autre_refus,metal,cartonnette,papier,environnement,flou,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1330952962] : ('0.025869937132714644',) no score found for photo 1330952962 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330952912] : ('0.025869937132714644',) no score found for photo 1330952912 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330952909] : ('0.025869937132714644',) no score found for photo 1330952909 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330952842] : ('0.025869937132714644',) no score found for photo 1330952842 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330950013] : ('0.025869937132714644',) no score found for photo 1330950013 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330944378] : ('0.025869937132714644',) no score found for photo 1330944378 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330942688] : ('0.025869937132714644',) no score found for photo 1330942688 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330911201] : ('0.025869937132714644',) no score found for photo 1330911201 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330911197] : ('0.025869937132714644',) no score found for photo 1330911197 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com args[1330911195] : ('0.025869937132714644',) no score found for photo 1330911195 apple ('0.025869937132714644',) We are sending mail with results at report@fotonower.com refus_total : 0.025869937132714644 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=19911525 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_P19911525_10-02-2025_22_33_33.pdf results_Auto_P19911525_10-02-2025_22_33_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911525_10-02-2025_22_33_33.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','19911525','results_Auto_P19911525_10-02-2025_22_33_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911525_10-02-2025_22_33_33.pdf','pdf','','0.11','0.025869937132714644') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([19911525]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] map_info['map_portfolio_photo'] : {19911525: [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195]} final : False mtd_id 4302 list_pids : [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] 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, '2572445') ('4302', '19911525', '1330952962', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952912', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952909', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952842', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330950013', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330944378', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330942688', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911201', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911197', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911195', None, None, None, None, None, '2572445') 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', '19911525', '1330952962', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952912', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952909', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952842', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330950013', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330944378', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330942688', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911201', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911197', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911195', None, None, None, None, None, '2572445')] time used for this insertion : 0.01287078857421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3604249954223633 time spend to save output : 0.013109683990478516 total time spend for step 4 : 3.373534679412842 step5:split_time_score Mon Feb 10 22:33:36 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 : ['19911525'] 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 : [('19911525',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (19911525) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1330952962: {'path': 'temp/1739223212_148694_1330952962_911b906897d8f7ba73d706284e731ca0.jpg', 'extension': 'jpg'}, 1330942688: {'path': 'temp/1739223212_148694_1330942688_489ec8041a5bd8fa9600c849cfcd3f6f.jpg', 'extension': 'jpg'}, 1330944378: {'path': 'temp/1739223212_148694_1330944378_3149e871b8521032dd073677f421a4bb.jpg', 'extension': 'jpg'}, 1330950013: {'path': 'temp/1739223212_148694_1330950013_5c52f648220fb969856d1ad95b3e083b.jpg', 'extension': 'jpg'}, 1330952842: {'path': 'temp/1739223212_148694_1330952842_cecacd12acac9c43dcbf0c5657c964ba.jpg', 'extension': 'jpg'}, 1330952909: {'path': 'temp/1739223212_148694_1330952909_8e72dec3bd0a19bfbf6015e240a0e617.jpg', 'extension': 'jpg'}, 1330952912: {'path': 'temp/1739223212_148694_1330952912_92a0422eaf81f50591eea593890af15e.jpg', 'extension': 'jpg'}, 1330911195: {'path': 'temp/1739223212_148694_1330911195_9c6ade1b995350ca8dc9febefabf4dfb.jpg', 'extension': 'jpg'}, 1330911197: {'path': 'temp/1739223212_148694_1330911197_72d6f821f96db84b9ef35f4d8f367e52.jpg', 'extension': 'jpg'}, 1330911201: {'path': 'temp/1739223212_148694_1330911201_bf7b8dc77845839045bf9faef3d831a3.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 = 19911525; (('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 = 19911525 group by h (('00', 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=19911525 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 (19911525) 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 (19911525) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24012025 19911525 Nombre de photos uploadées : 10 / 23040 (0%) 24012025 19911525 Nombre de photos taguées (types de déchets): 0 / 10 (0%) 24012025 19911525 Nombre de photos taguées (volume) : 0 / 10 (0%) [{'photo_id': 1330911201, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/24/bf7b8dc77845839045bf9faef3d831a3.jpg', 'username': None, 'uploaded_at': 1737681003, 'text': 'image_24012025_00_30_04_15244.jpg'}, {'photo_id': 1330952962, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/24/911b906897d8f7ba73d706284e731ca0.jpg', 'username': None, 'uploaded_at': 1737696123, 'text': 'image_24012025_00_30_04_15244.jpg'}, {'photo_id': 1330911197, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/24/72d6f821f96db84b9ef35f4d8f367e52.jpg', 'username': None, 'uploaded_at': 1737681003, 'text': 'image_24012025_00_30_34_15192.jpg'}, {'photo_id': 1330952912, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/1/24/92a0422eaf81f50591eea593890af15e.jpg', 'username': None, 'uploaded_at': 1737696063, 'text': 'image_24012025_00_30_34_15192.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005214214324951172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 19911525, '2025-01-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1548709,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022415876388549805 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= 1548709 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19911523, 'dashboard_result_id': 8500552, '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_P19911523_10-02-2025_22_32_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911677, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19911524, 'dashboard_result_id': 8500553, '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_P19911524_10-02-2025_22_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911653, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19911525, 'dashboard_result_id': 8500554, '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_P19911525_25-01-2025_05_35_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911628, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19911526, 'dashboard_result_id': 8500555, '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_P19911526_25-01-2025_05_36_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911579, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19911527, 'dashboard_result_id': 8500556, '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_P19911527_25-01-2025_05_36_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19911592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911603, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19864585, 'dashboard_result_id': 8500557, '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_P19864585_25-01-2025_05_37_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19864593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19864594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19864595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19864596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19864597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19864598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19864599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19864600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19864601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19864602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19864603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19864604, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19865964, 'dashboard_result_id': 8500558, '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_P19865964_25-01-2025_05_37_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866004, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19864619, 'dashboard_result_id': 8500559, '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_P19864619_25-01-2025_05_38_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19864628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19864629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19864630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19864631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19864632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19864633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19864634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19864635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19864636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19864637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19864638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19864639, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19865165, 'dashboard_result_id': 8500560, '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_P19865165_25-01-2025_05_41_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19865196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19865197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19865201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19865202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19865204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865205, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19865730, 'dashboard_result_id': 8500561, '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_P19865730_25-01-2025_05_41_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19865761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19865765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19865767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19865769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19865770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865772, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19866181, 'dashboard_result_id': 8500562, '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_P19866181_25-01-2025_05_42_09.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19866195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19866196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19866197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19866198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19866199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19866201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19866202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866203, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19866583, 'dashboard_result_id': 8500563, '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_P19866583_25-01-2025_05_42_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19866584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19866585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19866586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19866587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19866588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19866589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19866594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866595, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19867386, 'dashboard_result_id': 8500564, '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_P19867386_25-01-2025_05_43_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19867450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19867451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19867452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19867453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19867454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19867455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19867456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19867457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19867458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19867459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19867460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19867461, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19868241, 'dashboard_result_id': 8500565, '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_P19868241_25-01-2025_05_43_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19868270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19868271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19868272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19868273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19868276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19868280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19868285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19868289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19868290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19868291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19868292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19868293, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19868857, 'dashboard_result_id': 8500566, '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_P19868857_25-01-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19868914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19868915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19868916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19868917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19868918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19868919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19868920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19868921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19868922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19868923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19868924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19868925, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19869246, 'dashboard_result_id': 8500567, '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_P19869246_25-01-2025_05_44_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19869254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19869255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19869256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19869257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19869258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19869259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19869260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19869261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19869262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19869263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19869264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19869265, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19869826, 'dashboard_result_id': 8500568, '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_P19869826_25-01-2025_05_45_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19869857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19869858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19869859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19869860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19869861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19869862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19869863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19869864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19869865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19869866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19869867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19869868, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19870710, 'dashboard_result_id': 8500569, '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_P19870710_25-01-2025_05_45_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19870712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19870713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19870714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19870715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19870716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19870717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19870718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19870719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19870720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19870721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19870722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19870723, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19871217, 'dashboard_result_id': 8500570, '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_P19871217_25-01-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19871221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19871222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19871223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19871224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19871225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19871226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19871227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19871228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19871229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19871230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19871231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19871232, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19871694, 'dashboard_result_id': 8500571, '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_P19871694_25-01-2025_05_46_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19871705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19871706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19871707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19871708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19871709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19871710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19871711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19871712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19871713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19871714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19871715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19871716, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19872378, 'dashboard_result_id': 8500572, '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_P19872378_25-01-2025_05_47_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19872383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19872384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19872385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19872386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19872387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19872388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19872389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19872390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19872391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19872392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19872393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19872394, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19872984, 'dashboard_result_id': 8500573, '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_P19872984_25-01-2025_05_47_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19872991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19872992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19872993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19872994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19872995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19872996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19872997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19872998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19872999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19873000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19873001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19873002, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19874061, 'dashboard_result_id': 8500574, '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_P19874061_25-01-2025_05_48_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19874156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19874157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19874158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19874159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19874160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19874161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19874162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19874163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19874164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19874165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19874166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19874167, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19875079, 'dashboard_result_id': 8500575, '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_P19875079_25-01-2025_05_48_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19875107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19875108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19875109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19875110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19875111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19875112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19875113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19875114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19875115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19875116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19875117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19875118, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19875527, 'dashboard_result_id': 8500576, '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_P19875527_25-01-2025_05_49_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19875593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19875594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19875595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19875596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19875597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19875598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19875599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19875600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19875601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19875602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19875603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19875604, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19876182, 'dashboard_result_id': 8500577, '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_P19876182_25-01-2025_05_49_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19876186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19876187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19876188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19876189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19876190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19876191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19876192, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19876193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19876194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19876195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19876196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19876197, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19876572, 'dashboard_result_id': 8500578, '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_P19876572_25-01-2025_05_50_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19876662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19876664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19876665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19876666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19876667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19876668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19876669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19876670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19876671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19876672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19876673, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19877335, 'dashboard_result_id': 8500579, '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_P19877335_25-01-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19877336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19877337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19877338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19877339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19877340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19877341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19877342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19877343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19877344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19877345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19877346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19877347, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19878067, 'dashboard_result_id': 8500580, '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_P19878067_25-01-2025_05_51_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19878110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19878111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19878112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19878113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19878114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19878115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19878116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19878117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19878118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19878119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19878120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19878121, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19878819, 'dashboard_result_id': 8500581, '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_P19878819_25-01-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19878852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19878853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19878854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19878855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19878856, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19878857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19878858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19878859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19878860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19878861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19878862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19878863, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19879559, 'dashboard_result_id': 8500582, '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_P19879559_25-01-2025_05_52_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19879562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19879563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19879564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19879565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19879566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19879567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19879568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19879569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19879570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19879571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19879572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19879573, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19879760, 'dashboard_result_id': 8500583, '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_P19879760_25-01-2025_05_52_39.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19879822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19879823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19879824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19879825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19879826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19879827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19879828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19879829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19879830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19879831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19879832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19879833, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19880097, 'dashboard_result_id': 8500584, '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_P19880097_25-01-2025_05_53_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19880103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19880104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19880105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19880106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19880107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19880108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19880109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19880110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19880111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19880112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19880113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19880114, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19881418, 'dashboard_result_id': 8500585, '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_P19881418_25-01-2025_05_53_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19881423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19881424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19881425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19881426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19881427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19881428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19881429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19881430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19881431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19881432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19881433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19881434, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19881692, 'dashboard_result_id': 8500586, '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_P19881692_25-01-2025_05_54_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19881700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19881701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19881702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19881703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19881704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19881705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19881706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19881707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19881708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19881709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19881710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19881711, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19882542, 'dashboard_result_id': 8500587, '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_P19882542_25-01-2025_05_54_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19882546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19882547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19882548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19882549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19882550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19882551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19882552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19882553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19882554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19882555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19882556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19882557, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19882872, 'dashboard_result_id': 8500588, '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_P19882872_25-01-2025_05_55_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19882878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19882879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19882880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19882881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19882882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19882883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19882884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19882885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19882886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19882887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19882888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19882889, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19883670, 'dashboard_result_id': 8500589, '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_P19883670_25-01-2025_05_55_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19883774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19883775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19883776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19883777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19883778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19883779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19883780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19883781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19883782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19883783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19883784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19883785, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19884420, 'dashboard_result_id': 8500590, '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_P19884420_25-01-2025_05_56_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19884450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19884451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19884452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19884453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19884454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19884455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19884456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19884457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19884458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19884459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19884460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19884461, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19885023, 'dashboard_result_id': 8500591, '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_P19885023_25-01-2025_05_56_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19885026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19885027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19885028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19885029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19885030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19885031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19885032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19885033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19885034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19885035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19885036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19885037, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19885343, 'dashboard_result_id': 8500592, '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_P19885343_25-01-2025_05_57_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19885378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19885379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19885380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19885381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19885382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19885383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19885384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19885385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19885386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19885387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19885388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19885389, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19886258, 'dashboard_result_id': 8500593, '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_P19886258_25-01-2025_05_57_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19886263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19886264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19886265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19886266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19886267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19886268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19886269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19886270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19886271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19886272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19886273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19886274, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19886796, 'dashboard_result_id': 8500594, '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_P19886796_25-01-2025_05_58_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19886840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19886841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19886842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19886843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19886844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19886845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19886846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19886847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19886848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19886850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19886851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19886852, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19887254, 'dashboard_result_id': 8500595, '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_P19887254_25-01-2025_05_58_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19887273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19887274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19887275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19887276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19887277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19887278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19887279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19887280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19887281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19887282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19887283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19887284, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19889161, 'dashboard_result_id': 8500596, '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_P19889161_25-01-2025_05_59_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19889164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19889165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19889166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19889167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19889168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19889169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19889170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19889171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19889172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19889173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19889174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19889175, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19889758, 'dashboard_result_id': 8500597, '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_P19889758_25-01-2025_05_59_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19889762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19889763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19889764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19889765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19889766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19889767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19889768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19889769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19889770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19889771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19889772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19889773, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19890328, 'dashboard_result_id': 8500598, '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_P19890328_25-01-2025_06_00_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19890334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19890335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19890336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19890337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19890338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19890339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19890340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19890341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19890342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19890343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19890344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19890345, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19890691, 'dashboard_result_id': 8500599, '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_P19890691_25-01-2025_06_00_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19890707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19890708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19890709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19890710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19890711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19890712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19890713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19890714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19890715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19890716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19890717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19890718, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19891472, 'dashboard_result_id': 8500600, '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_P19891472_25-01-2025_06_01_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19891507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19891508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19891509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19891510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19891511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19891512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19891514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19891515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19891516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19891517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19891518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19891519, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19892043, 'dashboard_result_id': 8500601, '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_P19892043_25-01-2025_06_10_12.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19892051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19892052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19892053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19892054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19892055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19892056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19892057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19892058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19892059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19892060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19892061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19892062, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19892652, 'dashboard_result_id': 8500602, '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_P19892652_25-01-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19892665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19892666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19892667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19892668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19892669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19892670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19892671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19892672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19892673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19892674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19892675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19892676, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19893415, 'dashboard_result_id': 8500603, '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_P19893415_25-01-2025_06_11_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19893424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19893425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19893426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19893427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19893428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19893429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19893430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19893431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19893432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19893433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19893434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19893435, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19894222, 'dashboard_result_id': 8500604, '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_P19894222_25-01-2025_06_11_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19894236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19894237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19894238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19894239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19894240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19894241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19894242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19894243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19894244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19894245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19894246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19894247, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19895014, 'dashboard_result_id': 8500605, '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_P19895014_25-01-2025_06_12_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19895106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19895107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19895108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19895109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19895110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19895111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19895112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19895113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19895114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19895115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19895116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19895117, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19895776, 'dashboard_result_id': 8500606, '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_P19895776_25-01-2025_06_12_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19895782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19895783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19895784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19895785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19895786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19895787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19895788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19895789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19895790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19895791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19895792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19895793, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19896636, 'dashboard_result_id': 8500607, '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_P19896636_25-01-2025_06_13_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19896664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19896665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19896666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19896667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19896668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19896669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19896670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19896671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19896672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19896673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19896674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19896675, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19897974, 'dashboard_result_id': 8500608, '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_P19897974_25-01-2025_06_13_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19897976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19897977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19897978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19897979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19897980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19897981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19897982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19897983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19897984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19897985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19897986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19897987, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19898425, 'dashboard_result_id': 8500609, '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_P19898425_25-01-2025_06_14_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19898432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19898433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19898434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19898435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19898436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19898437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19898438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19898439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19898440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19898441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19898442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19898443, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19898973, 'dashboard_result_id': 8500610, '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_P19898973_25-01-2025_06_14_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19899010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19899011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19899012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19899013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19899014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19899015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19899016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19899017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19899018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19899019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19899020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19899021, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19899763, 'dashboard_result_id': 8500611, '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_P19899763_25-01-2025_06_15_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19899819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19899820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19899821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19899822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19899823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19899824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19899825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19899826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19899827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19899828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19899829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19899830, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19900537, 'dashboard_result_id': 8500612, '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_P19900537_25-01-2025_06_15_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19900592, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19900593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19900594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19900595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19900596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19900597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19900598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19900599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19900600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19900601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19900602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19900603, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19901362, 'dashboard_result_id': 8500613, '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_P19901362_25-01-2025_06_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19901367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19901368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19901369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19901370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19901371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19901372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19901373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19901374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19901375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19901376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19901377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19901378, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19902025, 'dashboard_result_id': 8500614, '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_P19902025_25-01-2025_06_16_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19902058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19902059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19902060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19902061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19902062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19902063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19902064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19902065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19902066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19902067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19902068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19902069, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19902677, 'dashboard_result_id': 8500615, '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_P19902677_25-01-2025_06_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19902687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19902688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19902689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19902690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19902691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19902692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19902693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19902694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19902695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19902696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19902697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19902698, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19903283, 'dashboard_result_id': 8500616, '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_P19903283_25-01-2025_06_17_40.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19903315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19903316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19903317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19903318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19903319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19903320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19903321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19903322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19903323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19903324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19903325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19903326, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19904149, 'dashboard_result_id': 8500617, '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_P19904149_25-01-2025_06_18_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19904179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19904180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19904181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19904182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19904183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19904184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19904185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19904186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19904187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19904188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19904189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19904190, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19904773, 'dashboard_result_id': 8500618, '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_P19904773_25-01-2025_06_18_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19904822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19904823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19904824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19904825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19904826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19904827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19904828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19904829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19904830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19904831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19904832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19904833, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19905950, 'dashboard_result_id': 8500619, '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_P19905950_25-01-2025_06_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19905954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19905955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19905956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19905957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19905958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19905959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19905960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19905961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19905962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19905963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19905964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19905965, 'pht': 3726}}"}, {'dashboat_entry_day': 1548709, 'dashboard_run_id': 1561474, 'mtr_portfolio_id': 19906513, 'dashboard_result_id': 8500620, '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_P19906513_25-01-2025_06_19_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19906516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19906517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19906518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19906519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19906520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19906521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19906522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19906523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19906524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19906525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19906526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19906527, '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 = 19911523 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': 2572443, 'mtr_portfolio_id': 19911523, 'created_at': datetime.datetime(2025, 2, 10, 22, 32, 30), 'result': '0.03933505642960527', 'result_long': None, 'result_double': None}] Qualite : 0.03933505642960527 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19911523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911523_10-02-2025_22_32_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19911523 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_P19911523_10-02-2025_22_32_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911677, 'pht': 3726}}" where mtr_portfolio_id = 19911523 and dashboard_run_id = 1561474 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`=19911523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500552, 0.03933505642960527, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911523_10-02-2025_22_32_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911677, '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 = 19911524 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': 2572444, 'mtr_portfolio_id': 19911524, 'created_at': datetime.datetime(2025, 2, 10, 22, 33), 'result': '0.051968581150329415', 'result_long': None, 'result_double': None}] Qualite : 0.051968581150329415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19911524 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911524_10-02-2025_22_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19911524 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_P19911524_10-02-2025_22_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911653, 'pht': 3726}}" where mtr_portfolio_id = 19911524 and dashboard_run_id = 1561474 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`=19911524 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500553, 0.051968581150329415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911524_10-02-2025_22_33_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911646, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911652, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911653, '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 = 19911525 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': 2572445, 'mtr_portfolio_id': 19911525, 'created_at': datetime.datetime(2025, 2, 10, 22, 33, 32), 'result': '0.025869937132714644', 'result_long': None, 'result_double': None}] Qualite : 0.025869937132714644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19911525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911525_10-02-2025_22_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19911525 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_P19911525_10-02-2025_22_33_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911628, 'pht': 3726}}" where mtr_portfolio_id = 19911525 and dashboard_run_id = 1561474 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`=19911525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500554, 0.025869937132714644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911525_10-02-2025_22_33_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911618, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911628, '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 = 19911526 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 = 19911526 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 19911526 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 19911526 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 19911526 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19911526 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911526_25-01-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19911526 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_P19911526_25-01-2025_05_36_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19911574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911579, 'pht': 3726}}" where mtr_portfolio_id = 19911526 and dashboard_run_id = 1561474 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 19911527 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': 2513897, 'mtr_portfolio_id': 19911527, 'created_at': datetime.datetime(2025, 1, 25, 5, 36, 30), 'result': '0.03940178574244492', 'result_long': None, 'result_double': None}] Qualite : 0.03940178574244492 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19911527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911527_25-01-2025_05_36_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19911527 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_P19911527_25-01-2025_05_36_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19911592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911603, 'pht': 3726}}" where mtr_portfolio_id = 19911527 and dashboard_run_id = 1561474 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`=19911527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500556, 0.03940178574244492, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19911527_25-01-2025_05_36_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19911592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19911593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19911594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19911595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19911596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19911597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19911598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19911599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19911600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19911601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19911602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19911603, '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 = 19864585 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': 2513898, 'mtr_portfolio_id': 19864585, 'created_at': datetime.datetime(2025, 1, 25, 5, 36, 58), 'result': '0.03284655593121886', 'result_long': None, 'result_double': None}] Qualite : 0.03284655593121886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19864585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19864585_25-01-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19864585 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_P19864585_25-01-2025_05_37_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19864593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19864594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19864595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19864596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19864597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19864598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19864599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19864600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19864601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19864602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19864603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19864604, 'pht': 3726}}" where mtr_portfolio_id = 19864585 and dashboard_run_id = 1561474 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`=19864585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500557, 0.03284655593121886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19864585_25-01-2025_05_37_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19864593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19864594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19864595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19864596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19864597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19864598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19864599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19864600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19864601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19864602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19864603, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19864604, '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 = 19865964 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': 2513899, 'mtr_portfolio_id': 19865964, 'created_at': datetime.datetime(2025, 1, 25, 5, 37, 30), 'result': '0.05484498293322041', 'result_long': None, 'result_double': None}] Qualite : 0.05484498293322041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19865964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19865964_25-01-2025_05_37_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19865964 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_P19865964_25-01-2025_05_37_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866004, 'pht': 3726}}" where mtr_portfolio_id = 19865964 and dashboard_run_id = 1561474 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`=19865964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500558, 0.05484498293322041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19865964_25-01-2025_05_37_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866004, '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 = 19864619 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': 2513900, 'mtr_portfolio_id': 19864619, 'created_at': datetime.datetime(2025, 1, 25, 5, 38, 33), 'result': '0.06343292920229619', 'result_long': None, 'result_double': None}] Qualite : 0.06343292920229619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19864619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19864619_25-01-2025_05_38_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19864619 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_P19864619_25-01-2025_05_38_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19864628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19864629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19864630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19864631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19864632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19864633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19864634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19864635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19864636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19864637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19864638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19864639, 'pht': 3726}}" where mtr_portfolio_id = 19864619 and dashboard_run_id = 1561474 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`=19864619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500559, 0.06343292920229619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19864619_25-01-2025_05_38_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19864628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19864629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19864630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19864631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19864632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19864633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19864634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19864635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19864636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19864637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19864638, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19864639, '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 = 19865165 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': 2513901, 'mtr_portfolio_id': 19865165, 'created_at': datetime.datetime(2025, 1, 25, 5, 41, 2), 'result': '0.04164166233354128', 'result_long': None, 'result_double': None}] Qualite : 0.04164166233354128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19865165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19865165_25-01-2025_05_41_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19865165 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_P19865165_25-01-2025_05_41_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19865196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19865197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19865201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19865202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19865204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865205, 'pht': 3726}}" where mtr_portfolio_id = 19865165 and dashboard_run_id = 1561474 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`=19865165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500560, 0.04164166233354128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19865165_25-01-2025_05_41_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19865196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19865197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865199, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19865201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19865202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19865204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865205, '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 = 19865730 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': 2513902, 'mtr_portfolio_id': 19865730, 'created_at': datetime.datetime(2025, 1, 25, 5, 41, 33), 'result': '0.03983985196537698', 'result_long': None, 'result_double': None}] Qualite : 0.03983985196537698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19865730 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19865730_25-01-2025_05_41_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19865730 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_P19865730_25-01-2025_05_41_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19865761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19865765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19865767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19865769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19865770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865772, 'pht': 3726}}" where mtr_portfolio_id = 19865730 and dashboard_run_id = 1561474 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`=19865730 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500561, 0.03983985196537698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19865730_25-01-2025_05_41_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19865761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19865762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19865763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19865764, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19865765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19865766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19865767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19865768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19865769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19865770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19865771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19865772, '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 = 19866181 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': 2513903, 'mtr_portfolio_id': 19866181, 'created_at': datetime.datetime(2025, 1, 25, 5, 42, 4), 'result': '0.04143817261598884', 'result_long': None, 'result_double': None}] Qualite : 0.04143817261598884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19866181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19866181_25-01-2025_05_42_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19866181 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_P19866181_25-01-2025_05_42_09.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19866195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19866196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19866197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19866198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19866199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19866201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19866202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866203, 'pht': 3726}}" where mtr_portfolio_id = 19866181 and dashboard_run_id = 1561474 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`=19866181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500562, 0.04143817261598884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19866181_25-01-2025_05_42_09.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19866195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19866196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19866197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19866198, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19866199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19866201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19866202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866203, '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 = 19866583 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': 2513904, 'mtr_portfolio_id': 19866583, 'created_at': datetime.datetime(2025, 1, 25, 5, 42, 33), 'result': '0.03831836900300309', 'result_long': None, 'result_double': None}] Qualite : 0.03831836900300309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19866583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19866583_25-01-2025_05_42_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19866583 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_P19866583_25-01-2025_05_42_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19866584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19866585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19866586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19866587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19866588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19866589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19866594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866595, 'pht': 3726}}" where mtr_portfolio_id = 19866583 and dashboard_run_id = 1561474 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`=19866583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500563, 0.03831836900300309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19866583_25-01-2025_05_42_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19866584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19866585, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19866586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19866587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19866588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19866589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19866590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19866591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19866592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19866593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19866594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19866595, '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 = 19867386 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': 2513905, 'mtr_portfolio_id': 19867386, 'created_at': datetime.datetime(2025, 1, 25, 5, 43), 'result': '0.06989506490508637', 'result_long': None, 'result_double': None}] Qualite : 0.06989506490508637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19867386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19867386_25-01-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19867386 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_P19867386_25-01-2025_05_43_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19867450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19867451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19867452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19867453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19867454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19867455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19867456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19867457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19867458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19867459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19867460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19867461, 'pht': 3726}}" where mtr_portfolio_id = 19867386 and dashboard_run_id = 1561474 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`=19867386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500564, 0.06989506490508637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19867386_25-01-2025_05_43_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19867450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19867451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19867452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19867453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19867454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19867455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19867456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19867457, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19867458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19867459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19867460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19867461, '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 = 19868241 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': 2513906, 'mtr_portfolio_id': 19868241, 'created_at': datetime.datetime(2025, 1, 25, 5, 43, 31), 'result': '0.057115076228860334', 'result_long': None, 'result_double': None}] Qualite : 0.057115076228860334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19868241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19868241_25-01-2025_05_43_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19868241 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_P19868241_25-01-2025_05_43_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19868270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19868271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19868272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19868273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19868276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19868280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19868285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19868289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19868290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19868291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19868292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19868293, 'pht': 3726}}" where mtr_portfolio_id = 19868241 and dashboard_run_id = 1561474 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`=19868241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500565, 0.057115076228860334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19868241_25-01-2025_05_43_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19868270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19868271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19868272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19868273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19868276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19868280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19868285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19868289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19868290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19868291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19868292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19868293, '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 = 19868857 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': 2513907, 'mtr_portfolio_id': 19868857, 'created_at': datetime.datetime(2025, 1, 25, 5, 44, 2), 'result': '0.03504064963186287', 'result_long': None, 'result_double': None}] Qualite : 0.03504064963186287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19868857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19868857_25-01-2025_05_44_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19868857 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_P19868857_25-01-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19868914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19868915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19868916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19868917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19868918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19868919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19868920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19868921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19868922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19868923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19868924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19868925, 'pht': 3726}}" where mtr_portfolio_id = 19868857 and dashboard_run_id = 1561474 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`=19868857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500566, 0.03504064963186287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19868857_25-01-2025_05_44_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19868914, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19868915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19868916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19868917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19868918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19868919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19868920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19868921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19868922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19868923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19868924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19868925, '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 = 19869246 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': 2513908, 'mtr_portfolio_id': 19869246, 'created_at': datetime.datetime(2025, 1, 25, 5, 44, 32), 'result': '0.03364785348302057', 'result_long': None, 'result_double': None}] Qualite : 0.03364785348302057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19869246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19869246_25-01-2025_05_44_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19869246 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_P19869246_25-01-2025_05_44_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19869254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19869255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19869256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19869257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19869258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19869259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19869260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19869261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19869262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19869263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19869264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19869265, 'pht': 3726}}" where mtr_portfolio_id = 19869246 and dashboard_run_id = 1561474 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`=19869246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500567, 0.03364785348302057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19869246_25-01-2025_05_44_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19869254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19869255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19869256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19869257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19869258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19869259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19869260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19869261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19869262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19869263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19869264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19869265, '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 = 19869826 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': 2513909, 'mtr_portfolio_id': 19869826, 'created_at': datetime.datetime(2025, 1, 25, 5, 45), 'result': '0.06885304182353555', 'result_long': None, 'result_double': None}] Qualite : 0.06885304182353555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19869826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19869826_25-01-2025_05_45_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19869826 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_P19869826_25-01-2025_05_45_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19869857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19869858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19869859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19869860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19869861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19869862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19869863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19869864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19869865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19869866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19869867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19869868, 'pht': 3726}}" where mtr_portfolio_id = 19869826 and dashboard_run_id = 1561474 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`=19869826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500568, 0.06885304182353555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19869826_25-01-2025_05_45_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19869857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19869858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19869859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19869860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19869861, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19869862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19869863, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19869864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19869865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19869866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19869867, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19869868, '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 = 19870710 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': 2513910, 'mtr_portfolio_id': 19870710, 'created_at': datetime.datetime(2025, 1, 25, 5, 45, 29), 'result': '0.07805145540219419', 'result_long': None, 'result_double': None}] Qualite : 0.07805145540219419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19870710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19870710_25-01-2025_05_45_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19870710 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_P19870710_25-01-2025_05_45_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19870712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19870713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19870714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19870715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19870716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19870717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19870718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19870719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19870720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19870721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19870722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19870723, 'pht': 3726}}" where mtr_portfolio_id = 19870710 and dashboard_run_id = 1561474 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`=19870710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500569, 0.07805145540219419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19870710_25-01-2025_05_45_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19870712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19870713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19870714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19870715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19870716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19870717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19870718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19870719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19870720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19870721, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19870722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19870723, '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 = 19871217 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': 2513911, 'mtr_portfolio_id': 19871217, 'created_at': datetime.datetime(2025, 1, 25, 5, 45, 58), 'result': '0.03728317658794521', 'result_long': None, 'result_double': None}] Qualite : 0.03728317658794521 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19871217 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19871217_25-01-2025_05_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19871217 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_P19871217_25-01-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19871221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19871222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19871223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19871224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19871225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19871226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19871227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19871228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19871229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19871230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19871231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19871232, 'pht': 3726}}" where mtr_portfolio_id = 19871217 and dashboard_run_id = 1561474 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`=19871217 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500570, 0.03728317658794521, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19871217_25-01-2025_05_46_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19871221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19871222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19871223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19871224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19871225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19871226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19871227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19871228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19871229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19871230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19871231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19871232, '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 = 19871694 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': 2513912, 'mtr_portfolio_id': 19871694, 'created_at': datetime.datetime(2025, 1, 25, 5, 46, 29), 'result': '0.032140174608842775', 'result_long': None, 'result_double': None}] Qualite : 0.032140174608842775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19871694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19871694_25-01-2025_05_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19871694 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_P19871694_25-01-2025_05_46_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19871705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19871706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19871707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19871708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19871709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19871710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19871711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19871712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19871713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19871714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19871715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19871716, 'pht': 3726}}" where mtr_portfolio_id = 19871694 and dashboard_run_id = 1561474 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`=19871694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500571, 0.032140174608842775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19871694_25-01-2025_05_46_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19871705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19871706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19871707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19871708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19871709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19871710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19871711, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19871712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19871713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19871714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19871715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19871716, '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 = 19872378 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': 2513913, 'mtr_portfolio_id': 19872378, 'created_at': datetime.datetime(2025, 1, 25, 5, 47), 'result': '0.050127316998798924', 'result_long': None, 'result_double': None}] Qualite : 0.050127316998798924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19872378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19872378_25-01-2025_05_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19872378 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_P19872378_25-01-2025_05_47_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19872383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19872384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19872385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19872386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19872387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19872388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19872389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19872390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19872391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19872392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19872393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19872394, 'pht': 3726}}" where mtr_portfolio_id = 19872378 and dashboard_run_id = 1561474 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`=19872378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500572, 0.050127316998798924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19872378_25-01-2025_05_47_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19872383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19872384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19872385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19872386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19872387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19872388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19872389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19872390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19872391, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19872392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19872393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19872394, '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 = 19872984 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': 2513914, 'mtr_portfolio_id': 19872984, 'created_at': datetime.datetime(2025, 1, 25, 5, 47, 31), 'result': '0.04395601235009015', 'result_long': None, 'result_double': None}] Qualite : 0.04395601235009015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19872984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19872984_25-01-2025_05_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19872984 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_P19872984_25-01-2025_05_47_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19872991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19872992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19872993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19872994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19872995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19872996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19872997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19872998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19872999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19873000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19873001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19873002, 'pht': 3726}}" where mtr_portfolio_id = 19872984 and dashboard_run_id = 1561474 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`=19872984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500573, 0.04395601235009015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19872984_25-01-2025_05_47_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19872991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19872992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19872993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19872994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19872995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19872996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19872997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19872998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19872999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19873000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19873001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19873002, '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 = 19874061 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': 2513915, 'mtr_portfolio_id': 19874061, 'created_at': datetime.datetime(2025, 1, 25, 5, 48, 4), 'result': '0.05249356572550721', 'result_long': None, 'result_double': None}] Qualite : 0.05249356572550721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19874061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19874061_25-01-2025_05_48_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19874061 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_P19874061_25-01-2025_05_48_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19874156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19874157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19874158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19874159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19874160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19874161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19874162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19874163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19874164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19874165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19874166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19874167, 'pht': 3726}}" where mtr_portfolio_id = 19874061 and dashboard_run_id = 1561474 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`=19874061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500574, 0.05249356572550721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19874061_25-01-2025_05_48_07.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19874156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19874157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19874158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19874159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19874160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19874161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19874162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19874163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19874164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19874165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19874166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19874167, '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 = 19875079 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': 2513916, 'mtr_portfolio_id': 19875079, 'created_at': datetime.datetime(2025, 1, 25, 5, 48, 33), 'result': '0.03694857695986497', 'result_long': None, 'result_double': None}] Qualite : 0.03694857695986497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19875079 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19875079_25-01-2025_05_48_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19875079 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_P19875079_25-01-2025_05_48_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19875107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19875108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19875109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19875110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19875111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19875112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19875113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19875114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19875115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19875116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19875117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19875118, 'pht': 3726}}" where mtr_portfolio_id = 19875079 and dashboard_run_id = 1561474 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`=19875079 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500575, 0.03694857695986497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19875079_25-01-2025_05_48_36.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19875107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19875108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19875109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19875110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19875111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19875112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19875113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19875114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19875115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19875116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19875117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19875118, '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 = 19875527 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': 2513917, 'mtr_portfolio_id': 19875527, 'created_at': datetime.datetime(2025, 1, 25, 5, 48, 59), 'result': '0.06457902862075646', 'result_long': None, 'result_double': None}] Qualite : 0.06457902862075646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19875527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19875527_25-01-2025_05_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19875527 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_P19875527_25-01-2025_05_49_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19875593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19875594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19875595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19875596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19875597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19875598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19875599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19875600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19875601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19875602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19875603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19875604, 'pht': 3726}}" where mtr_portfolio_id = 19875527 and dashboard_run_id = 1561474 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`=19875527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500576, 0.06457902862075646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19875527_25-01-2025_05_49_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19875593, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19875594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19875595, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19875596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19875597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19875598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19875599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19875600, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19875601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19875602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19875603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19875604, '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 = 19876182 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': 2513918, 'mtr_portfolio_id': 19876182, 'created_at': datetime.datetime(2025, 1, 25, 5, 49, 34), 'result': '0.07308886787040948', 'result_long': None, 'result_double': None}] Qualite : 0.07308886787040948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19876182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19876182_25-01-2025_05_49_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19876182 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_P19876182_25-01-2025_05_49_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19876186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19876187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19876188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19876189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19876190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19876191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19876192, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19876193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19876194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19876195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19876196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19876197, 'pht': 3726}}" where mtr_portfolio_id = 19876182 and dashboard_run_id = 1561474 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`=19876182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500577, 0.07308886787040948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19876182_25-01-2025_05_49_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19876186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19876187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19876188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19876189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19876190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19876191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19876192, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19876193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19876194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19876195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19876196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19876197, '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 = 19876572 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': 2513919, 'mtr_portfolio_id': 19876572, 'created_at': datetime.datetime(2025, 1, 25, 5, 50, 3), 'result': '0.06521042451492472', 'result_long': None, 'result_double': None}] Qualite : 0.06521042451492472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19876572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19876572_25-01-2025_05_50_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19876572 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_P19876572_25-01-2025_05_50_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19876662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19876664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19876665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19876666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19876667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19876668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19876669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19876670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19876671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19876672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19876673, 'pht': 3726}}" where mtr_portfolio_id = 19876572 and dashboard_run_id = 1561474 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`=19876572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500578, 0.06521042451492472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19876572_25-01-2025_05_50_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19876662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19876664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19876665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19876666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19876667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19876668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19876669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19876670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19876671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19876672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19876673, '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 = 19877335 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': 2513920, 'mtr_portfolio_id': 19877335, 'created_at': datetime.datetime(2025, 1, 25, 5, 50, 33), 'result': '0.03655986955237179', 'result_long': None, 'result_double': None}] Qualite : 0.03655986955237179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19877335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19877335_25-01-2025_05_50_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19877335 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_P19877335_25-01-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19877336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19877337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19877338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19877339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19877340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19877341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19877342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19877343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19877344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19877345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19877346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19877347, 'pht': 3726}}" where mtr_portfolio_id = 19877335 and dashboard_run_id = 1561474 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`=19877335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500579, 0.03655986955237179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19877335_25-01-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19877336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19877337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19877338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19877339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19877340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19877341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19877342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19877343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19877344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19877345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19877346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19877347, '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 = 19878067 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': 2513921, 'mtr_portfolio_id': 19878067, 'created_at': datetime.datetime(2025, 1, 25, 5, 51, 3), 'result': '0.04124071138918501', 'result_long': None, 'result_double': None}] Qualite : 0.04124071138918501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19878067 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19878067_25-01-2025_05_51_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19878067 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_P19878067_25-01-2025_05_51_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19878110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19878111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19878112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19878113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19878114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19878115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19878116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19878117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19878118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19878119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19878120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19878121, 'pht': 3726}}" where mtr_portfolio_id = 19878067 and dashboard_run_id = 1561474 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`=19878067 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500580, 0.04124071138918501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19878067_25-01-2025_05_51_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19878110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19878111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19878112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19878113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19878114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19878115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19878116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19878117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19878118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19878119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19878120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19878121, '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 = 19878819 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': 2513922, 'mtr_portfolio_id': 19878819, 'created_at': datetime.datetime(2025, 1, 25, 5, 51, 30), 'result': '0.05601869122081747', 'result_long': None, 'result_double': None}] Qualite : 0.05601869122081747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19878819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19878819_25-01-2025_05_51_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19878819 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_P19878819_25-01-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19878852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19878853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19878854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19878855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19878856, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19878857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19878858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19878859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19878860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19878861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19878862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19878863, 'pht': 3726}}" where mtr_portfolio_id = 19878819 and dashboard_run_id = 1561474 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`=19878819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500581, 0.05601869122081747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19878819_25-01-2025_05_51_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19878852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19878853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19878854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19878855, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19878856, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19878857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19878858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19878859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19878860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19878861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19878862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19878863, '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 = 19879559 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': 2513923, 'mtr_portfolio_id': 19879559, 'created_at': datetime.datetime(2025, 1, 25, 5, 51, 59), 'result': '0.05137372087280762', 'result_long': None, 'result_double': None}] Qualite : 0.05137372087280762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19879559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19879559_25-01-2025_05_52_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19879559 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_P19879559_25-01-2025_05_52_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19879562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19879563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19879564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19879565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19879566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19879567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19879568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19879569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19879570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19879571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19879572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19879573, 'pht': 3726}}" where mtr_portfolio_id = 19879559 and dashboard_run_id = 1561474 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`=19879559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500582, 0.05137372087280762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19879559_25-01-2025_05_52_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19879562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19879563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19879564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19879565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19879566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19879567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19879568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19879569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19879570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19879571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19879572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19879573, '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 = 19879760 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': 2513924, 'mtr_portfolio_id': 19879760, 'created_at': datetime.datetime(2025, 1, 25, 5, 52, 37), 'result': '0.051664147814635485', 'result_long': None, 'result_double': None}] Qualite : 0.051664147814635485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19879760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19879760_25-01-2025_05_52_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19879760 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_P19879760_25-01-2025_05_52_39.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19879822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19879823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19879824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19879825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19879826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19879827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19879828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19879829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19879830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19879831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19879832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19879833, 'pht': 3726}}" where mtr_portfolio_id = 19879760 and dashboard_run_id = 1561474 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`=19879760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500583, 0.051664147814635485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19879760_25-01-2025_05_52_39.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19879822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19879823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19879824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19879825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19879826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19879827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19879828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19879829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19879830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19879831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19879832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19879833, '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 = 19880097 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': 2513925, 'mtr_portfolio_id': 19880097, 'created_at': datetime.datetime(2025, 1, 25, 5, 53, 2), 'result': '0.04149218018627463', 'result_long': None, 'result_double': None}] Qualite : 0.04149218018627463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19880097 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19880097_25-01-2025_05_53_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19880097 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_P19880097_25-01-2025_05_53_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19880103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19880104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19880105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19880106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19880107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19880108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19880109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19880110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19880111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19880112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19880113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19880114, 'pht': 3726}}" where mtr_portfolio_id = 19880097 and dashboard_run_id = 1561474 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`=19880097 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500584, 0.04149218018627463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19880097_25-01-2025_05_53_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19880103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19880104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19880105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19880106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19880107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19880108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19880109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19880110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19880111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19880112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19880113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19880114, '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 = 19881418 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': 2513926, 'mtr_portfolio_id': 19881418, 'created_at': datetime.datetime(2025, 1, 25, 5, 53, 33), 'result': '0.028549977063509743', 'result_long': None, 'result_double': None}] Qualite : 0.028549977063509743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19881418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19881418_25-01-2025_05_53_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19881418 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_P19881418_25-01-2025_05_53_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19881423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19881424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19881425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19881426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19881427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19881428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19881429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19881430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19881431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19881432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19881433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19881434, 'pht': 3726}}" where mtr_portfolio_id = 19881418 and dashboard_run_id = 1561474 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`=19881418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500585, 0.028549977063509743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19881418_25-01-2025_05_53_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19881423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19881424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19881425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19881426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19881427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19881428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19881429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19881430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19881431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19881432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19881433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19881434, '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 = 19881692 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': 2513927, 'mtr_portfolio_id': 19881692, 'created_at': datetime.datetime(2025, 1, 25, 5, 54, 1), 'result': '0.031207475254656145', 'result_long': None, 'result_double': None}] Qualite : 0.031207475254656145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19881692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19881692_25-01-2025_05_54_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19881692 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_P19881692_25-01-2025_05_54_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19881700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19881701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19881702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19881703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19881704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19881705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19881706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19881707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19881708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19881709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19881710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19881711, 'pht': 3726}}" where mtr_portfolio_id = 19881692 and dashboard_run_id = 1561474 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`=19881692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500586, 0.031207475254656145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19881692_25-01-2025_05_54_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19881700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19881701, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19881702, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19881703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19881704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19881705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19881706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19881707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19881708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19881709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19881710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19881711, '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 = 19882542 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': 2513928, 'mtr_portfolio_id': 19882542, 'created_at': datetime.datetime(2025, 1, 25, 5, 54, 37), 'result': '0.038737247350878884', 'result_long': None, 'result_double': None}] Qualite : 0.038737247350878884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19882542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19882542_25-01-2025_05_54_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19882542 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_P19882542_25-01-2025_05_54_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19882546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19882547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19882548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19882549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19882550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19882551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19882552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19882553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19882554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19882555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19882556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19882557, 'pht': 3726}}" where mtr_portfolio_id = 19882542 and dashboard_run_id = 1561474 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`=19882542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500587, 0.038737247350878884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19882542_25-01-2025_05_54_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19882546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19882547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19882548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19882549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19882550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19882551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19882552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19882553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19882554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19882555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19882556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19882557, '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 = 19882872 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': 2513929, 'mtr_portfolio_id': 19882872, 'created_at': datetime.datetime(2025, 1, 25, 5, 55, 1), 'result': '0.046356512938876576', 'result_long': None, 'result_double': None}] Qualite : 0.046356512938876576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19882872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19882872_25-01-2025_05_55_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19882872 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_P19882872_25-01-2025_05_55_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19882878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19882879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19882880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19882881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19882882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19882883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19882884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19882885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19882886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19882887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19882888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19882889, 'pht': 3726}}" where mtr_portfolio_id = 19882872 and dashboard_run_id = 1561474 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`=19882872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500588, 0.046356512938876576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19882872_25-01-2025_05_55_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19882878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19882879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19882880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19882881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19882882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19882883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19882884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19882885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19882886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19882887, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19882888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19882889, '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 = 19883670 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': 2513930, 'mtr_portfolio_id': 19883670, 'created_at': datetime.datetime(2025, 1, 25, 5, 55, 37), 'result': '0.04443264881909361', 'result_long': None, 'result_double': None}] Qualite : 0.04443264881909361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19883670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19883670_25-01-2025_05_55_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19883670 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_P19883670_25-01-2025_05_55_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19883774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19883775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19883776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19883777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19883778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19883779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19883780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19883781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19883782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19883783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19883784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19883785, 'pht': 3726}}" where mtr_portfolio_id = 19883670 and dashboard_run_id = 1561474 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`=19883670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500589, 0.04443264881909361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19883670_25-01-2025_05_55_39.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19883774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19883775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19883776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19883777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19883778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19883779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19883780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19883781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19883782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19883783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19883784, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19883785, '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 = 19884420 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': 2513931, 'mtr_portfolio_id': 19884420, 'created_at': datetime.datetime(2025, 1, 25, 5, 56, 3), 'result': '0.045339962818829786', 'result_long': None, 'result_double': None}] Qualite : 0.045339962818829786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19884420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19884420_25-01-2025_05_56_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19884420 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_P19884420_25-01-2025_05_56_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19884450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19884451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19884452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19884453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19884454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19884455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19884456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19884457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19884458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19884459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19884460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19884461, 'pht': 3726}}" where mtr_portfolio_id = 19884420 and dashboard_run_id = 1561474 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`=19884420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500590, 0.045339962818829786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19884420_25-01-2025_05_56_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19884450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19884451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19884452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19884453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19884454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19884455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19884456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19884457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19884458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19884459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19884460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19884461, '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 = 19885023 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': 2513932, 'mtr_portfolio_id': 19885023, 'created_at': datetime.datetime(2025, 1, 25, 5, 56, 38), 'result': '0.05037583734202827', 'result_long': None, 'result_double': None}] Qualite : 0.05037583734202827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19885023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19885023_25-01-2025_05_56_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19885023 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_P19885023_25-01-2025_05_56_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19885026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19885027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19885028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19885029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19885030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19885031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19885032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19885033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19885034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19885035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19885036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19885037, 'pht': 3726}}" where mtr_portfolio_id = 19885023 and dashboard_run_id = 1561474 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`=19885023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500591, 0.05037583734202827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19885023_25-01-2025_05_56_41.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19885026, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19885027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19885028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19885029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19885030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19885031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19885032, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19885033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19885034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19885035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19885036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19885037, '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 = 19885343 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': 2513933, 'mtr_portfolio_id': 19885343, 'created_at': datetime.datetime(2025, 1, 25, 5, 57), 'result': '0.04581545691590326', 'result_long': None, 'result_double': None}] Qualite : 0.04581545691590326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19885343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19885343_25-01-2025_05_57_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19885343 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_P19885343_25-01-2025_05_57_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19885378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19885379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19885380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19885381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19885382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19885383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19885384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19885385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19885386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19885387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19885388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19885389, 'pht': 3726}}" where mtr_portfolio_id = 19885343 and dashboard_run_id = 1561474 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`=19885343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500592, 0.04581545691590326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19885343_25-01-2025_05_57_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19885378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19885379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19885380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19885381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19885382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19885383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19885384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19885385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19885386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19885387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19885388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19885389, '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 = 19886258 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': 2513934, 'mtr_portfolio_id': 19886258, 'created_at': datetime.datetime(2025, 1, 25, 5, 57, 36), 'result': '0.0375232014075969', 'result_long': None, 'result_double': None}] Qualite : 0.0375232014075969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19886258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19886258_25-01-2025_05_57_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19886258 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_P19886258_25-01-2025_05_57_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19886263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19886264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19886265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19886266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19886267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19886268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19886269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19886270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19886271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19886272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19886273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19886274, 'pht': 3726}}" where mtr_portfolio_id = 19886258 and dashboard_run_id = 1561474 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`=19886258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500593, 0.0375232014075969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19886258_25-01-2025_05_57_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19886263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19886264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19886265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19886266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19886267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19886268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19886269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19886270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19886271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19886272, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19886273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19886274, '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 = 19886796 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': 2513935, 'mtr_portfolio_id': 19886796, 'created_at': datetime.datetime(2025, 1, 25, 5, 58, 4), 'result': '0.0691473623795891', 'result_long': None, 'result_double': None}] Qualite : 0.0691473623795891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19886796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19886796_25-01-2025_05_58_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19886796 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_P19886796_25-01-2025_05_58_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19886840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19886841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19886842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19886843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19886844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19886845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19886846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19886847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19886848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19886850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19886851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19886852, 'pht': 3726}}" where mtr_portfolio_id = 19886796 and dashboard_run_id = 1561474 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`=19886796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500594, 0.0691473623795891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19886796_25-01-2025_05_58_08.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19886840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19886841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19886842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19886843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19886844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19886845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19886846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19886847, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19886848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19886850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19886851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19886852, '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 = 19887254 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': 2513936, 'mtr_portfolio_id': 19887254, 'created_at': datetime.datetime(2025, 1, 25, 5, 58, 33), 'result': '0.05524741138560264', 'result_long': None, 'result_double': None}] Qualite : 0.05524741138560264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19887254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19887254_25-01-2025_05_58_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19887254 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_P19887254_25-01-2025_05_58_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19887273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19887274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19887275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19887276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19887277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19887278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19887279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19887280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19887281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19887282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19887283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19887284, 'pht': 3726}}" where mtr_portfolio_id = 19887254 and dashboard_run_id = 1561474 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`=19887254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500595, 0.05524741138560264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19887254_25-01-2025_05_58_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19887273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19887274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19887275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19887276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19887277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19887278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19887279, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19887280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19887281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19887282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19887283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19887284, '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 = 19889161 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': 2513937, 'mtr_portfolio_id': 19889161, 'created_at': datetime.datetime(2025, 1, 25, 5, 59), 'result': '0.046956016029417534', 'result_long': None, 'result_double': None}] Qualite : 0.046956016029417534 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19889161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19889161_25-01-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19889161 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_P19889161_25-01-2025_05_59_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19889164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19889165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19889166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19889167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19889168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19889169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19889170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19889171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19889172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19889173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19889174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19889175, 'pht': 3726}}" where mtr_portfolio_id = 19889161 and dashboard_run_id = 1561474 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`=19889161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500596, 0.046956016029417534, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19889161_25-01-2025_05_59_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19889164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19889165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19889166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19889167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19889168, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19889169, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19889170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19889171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19889172, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19889173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19889174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19889175, '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 = 19889758 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': 2513938, 'mtr_portfolio_id': 19889758, 'created_at': datetime.datetime(2025, 1, 25, 5, 59, 32), 'result': '0.03628023064439027', 'result_long': None, 'result_double': None}] Qualite : 0.03628023064439027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19889758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19889758_25-01-2025_05_59_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19889758 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_P19889758_25-01-2025_05_59_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19889762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19889763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19889764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19889765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19889766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19889767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19889768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19889769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19889770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19889771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19889772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19889773, 'pht': 3726}}" where mtr_portfolio_id = 19889758 and dashboard_run_id = 1561474 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`=19889758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500597, 0.03628023064439027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19889758_25-01-2025_05_59_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19889762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19889763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19889764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19889765, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19889766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19889767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19889768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19889769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19889770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19889771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19889772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19889773, '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 = 19890328 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': 2513939, 'mtr_portfolio_id': 19890328, 'created_at': datetime.datetime(2025, 1, 25, 6, 0, 1), 'result': '0.04631281492100221', 'result_long': None, 'result_double': None}] Qualite : 0.04631281492100221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19890328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19890328_25-01-2025_06_00_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19890328 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_P19890328_25-01-2025_06_00_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19890334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19890335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19890336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19890337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19890338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19890339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19890340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19890341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19890342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19890343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19890344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19890345, 'pht': 3726}}" where mtr_portfolio_id = 19890328 and dashboard_run_id = 1561474 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`=19890328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500598, 0.04631281492100221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19890328_25-01-2025_06_00_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19890334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19890335, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19890336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19890337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19890338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19890339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19890340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19890341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19890342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19890343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19890344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19890345, '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 = 19890691 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': 2513940, 'mtr_portfolio_id': 19890691, 'created_at': datetime.datetime(2025, 1, 25, 6, 0, 30), 'result': '0.04477497808502437', 'result_long': None, 'result_double': None}] Qualite : 0.04477497808502437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19890691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19890691_25-01-2025_06_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19890691 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_P19890691_25-01-2025_06_00_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19890707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19890708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19890709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19890710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19890711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19890712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19890713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19890714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19890715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19890716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19890717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19890718, 'pht': 3726}}" where mtr_portfolio_id = 19890691 and dashboard_run_id = 1561474 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`=19890691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500599, 0.04477497808502437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19890691_25-01-2025_06_00_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19890707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19890708, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19890709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19890710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19890711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19890712, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19890713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19890714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19890715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19890716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19890717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19890718, '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 = 19891472 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': 2513941, 'mtr_portfolio_id': 19891472, 'created_at': datetime.datetime(2025, 1, 25, 6, 0, 59), 'result': '0.043820733355934324', 'result_long': None, 'result_double': None}] Qualite : 0.043820733355934324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19891472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19891472_25-01-2025_06_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19891472 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_P19891472_25-01-2025_06_01_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19891507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19891508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19891509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19891510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19891511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19891512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19891514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19891515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19891516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19891517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19891518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19891519, 'pht': 3726}}" where mtr_portfolio_id = 19891472 and dashboard_run_id = 1561474 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`=19891472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500600, 0.043820733355934324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19891472_25-01-2025_06_01_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19891507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19891508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19891509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19891510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19891511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19891512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19891514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19891515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19891516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19891517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19891518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19891519, '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 = 19892043 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': 2513942, 'mtr_portfolio_id': 19892043, 'created_at': datetime.datetime(2025, 1, 25, 6, 10, 8), 'result': '0.03602738475372327', 'result_long': None, 'result_double': None}] Qualite : 0.03602738475372327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19892043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19892043_25-01-2025_06_10_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19892043 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_P19892043_25-01-2025_06_10_12.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19892051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19892052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19892053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19892054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19892055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19892056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19892057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19892058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19892059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19892060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19892061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19892062, 'pht': 3726}}" where mtr_portfolio_id = 19892043 and dashboard_run_id = 1561474 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`=19892043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500601, 0.03602738475372327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19892043_25-01-2025_06_10_12.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19892051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19892052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19892053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19892054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19892055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19892056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19892057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19892058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19892059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19892060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19892061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19892062, '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 = 19892652 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': 2513943, 'mtr_portfolio_id': 19892652, 'created_at': datetime.datetime(2025, 1, 25, 6, 10, 31), 'result': '0.055359991587095675', 'result_long': None, 'result_double': None}] Qualite : 0.055359991587095675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19892652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19892652_25-01-2025_06_10_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19892652 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_P19892652_25-01-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19892665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19892666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19892667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19892668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19892669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19892670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19892671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19892672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19892673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19892674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19892675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19892676, 'pht': 3726}}" where mtr_portfolio_id = 19892652 and dashboard_run_id = 1561474 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`=19892652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500602, 0.055359991587095675, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19892652_25-01-2025_06_10_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19892665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19892666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19892667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19892668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19892669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19892670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19892671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19892672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19892673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19892674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19892675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19892676, '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 = 19893415 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': 2513944, 'mtr_portfolio_id': 19893415, 'created_at': datetime.datetime(2025, 1, 25, 6, 11), 'result': '0.06141858440891332', 'result_long': None, 'result_double': None}] Qualite : 0.06141858440891332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19893415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19893415_25-01-2025_06_11_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19893415 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_P19893415_25-01-2025_06_11_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19893424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19893425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19893426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19893427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19893428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19893429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19893430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19893431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19893432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19893433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19893434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19893435, 'pht': 3726}}" where mtr_portfolio_id = 19893415 and dashboard_run_id = 1561474 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`=19893415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500603, 0.06141858440891332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19893415_25-01-2025_06_11_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19893424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19893425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19893426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19893427, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19893428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19893429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19893430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19893431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19893432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19893433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19893434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19893435, '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 = 19894222 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': 2513945, 'mtr_portfolio_id': 19894222, 'created_at': datetime.datetime(2025, 1, 25, 6, 11, 33), 'result': '0.043240360700109386', 'result_long': None, 'result_double': None}] Qualite : 0.043240360700109386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19894222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19894222_25-01-2025_06_11_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19894222 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_P19894222_25-01-2025_06_11_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19894236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19894237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19894238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19894239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19894240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19894241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19894242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19894243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19894244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19894245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19894246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19894247, 'pht': 3726}}" where mtr_portfolio_id = 19894222 and dashboard_run_id = 1561474 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`=19894222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500604, 0.043240360700109386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19894222_25-01-2025_06_11_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19894236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19894237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19894238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19894239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19894240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19894241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19894242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19894243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19894244, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19894245, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19894246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19894247, '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 = 19895014 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': 2513946, 'mtr_portfolio_id': 19895014, 'created_at': datetime.datetime(2025, 1, 25, 6, 12, 1), 'result': '0.04357287510965824', 'result_long': None, 'result_double': None}] Qualite : 0.04357287510965824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19895014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19895014_25-01-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19895014 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_P19895014_25-01-2025_06_12_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19895106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19895107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19895108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19895109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19895110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19895111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19895112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19895113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19895114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19895115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19895116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19895117, 'pht': 3726}}" where mtr_portfolio_id = 19895014 and dashboard_run_id = 1561474 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`=19895014 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500605, 0.04357287510965824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19895014_25-01-2025_06_12_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19895106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19895107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19895108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19895109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19895110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19895111, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19895112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19895113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19895114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19895115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19895116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19895117, '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 = 19895776 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': 2513947, 'mtr_portfolio_id': 19895776, 'created_at': datetime.datetime(2025, 1, 25, 6, 12, 35), 'result': '0.04512320653355488', 'result_long': None, 'result_double': None}] Qualite : 0.04512320653355488 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19895776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19895776_25-01-2025_06_12_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19895776 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_P19895776_25-01-2025_06_12_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19895782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19895783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19895784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19895785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19895786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19895787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19895788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19895789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19895790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19895791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19895792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19895793, 'pht': 3726}}" where mtr_portfolio_id = 19895776 and dashboard_run_id = 1561474 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`=19895776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500606, 0.04512320653355488, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19895776_25-01-2025_06_12_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19895782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19895783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19895784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19895785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19895786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19895787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19895788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19895789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19895790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19895791, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19895792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19895793, '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 = 19896636 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': 2513948, 'mtr_portfolio_id': 19896636, 'created_at': datetime.datetime(2025, 1, 25, 6, 13, 4), 'result': '0.0570613933485669', 'result_long': None, 'result_double': None}] Qualite : 0.0570613933485669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19896636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19896636_25-01-2025_06_13_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19896636 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_P19896636_25-01-2025_06_13_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19896664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19896665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19896666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19896667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19896668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19896669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19896670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19896671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19896672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19896673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19896674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19896675, 'pht': 3726}}" where mtr_portfolio_id = 19896636 and dashboard_run_id = 1561474 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`=19896636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500607, 0.0570613933485669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19896636_25-01-2025_06_13_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19896664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19896665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19896666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19896667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19896668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19896669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19896670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19896671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19896672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19896673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19896674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19896675, '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 = 19897974 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': 2513949, 'mtr_portfolio_id': 19897974, 'created_at': datetime.datetime(2025, 1, 25, 6, 13, 29), 'result': '0.0393946258258077', 'result_long': None, 'result_double': None}] Qualite : 0.0393946258258077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19897974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19897974_25-01-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19897974 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_P19897974_25-01-2025_06_13_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19897976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19897977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19897978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19897979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19897980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19897981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19897982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19897983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19897984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19897985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19897986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19897987, 'pht': 3726}}" where mtr_portfolio_id = 19897974 and dashboard_run_id = 1561474 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`=19897974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500608, 0.0393946258258077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19897974_25-01-2025_06_13_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19897976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19897977, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19897978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19897979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19897980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19897981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19897982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19897983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19897984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19897985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19897986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19897987, '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 = 19898425 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': 2513950, 'mtr_portfolio_id': 19898425, 'created_at': datetime.datetime(2025, 1, 25, 6, 14, 4), 'result': '0.04697860940859332', 'result_long': None, 'result_double': None}] Qualite : 0.04697860940859332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19898425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19898425_25-01-2025_06_14_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19898425 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_P19898425_25-01-2025_06_14_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19898432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19898433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19898434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19898435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19898436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19898437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19898438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19898439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19898440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19898441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19898442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19898443, 'pht': 3726}}" where mtr_portfolio_id = 19898425 and dashboard_run_id = 1561474 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`=19898425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500609, 0.04697860940859332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19898425_25-01-2025_06_14_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19898432, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19898433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19898434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19898435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19898436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19898437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19898438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19898439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19898440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19898441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19898442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19898443, '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 = 19898973 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': 2513951, 'mtr_portfolio_id': 19898973, 'created_at': datetime.datetime(2025, 1, 25, 6, 14, 33), 'result': '0.0581331404140164', 'result_long': None, 'result_double': None}] Qualite : 0.0581331404140164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19898973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19898973_25-01-2025_06_14_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19898973 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_P19898973_25-01-2025_06_14_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19899010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19899011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19899012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19899013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19899014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19899015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19899016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19899017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19899018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19899019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19899020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19899021, 'pht': 3726}}" where mtr_portfolio_id = 19898973 and dashboard_run_id = 1561474 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`=19898973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500610, 0.0581331404140164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19898973_25-01-2025_06_14_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19899010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19899011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19899012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19899013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19899014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19899015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19899016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19899017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19899018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19899019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19899020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19899021, '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 = 19899763 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': 2513952, 'mtr_portfolio_id': 19899763, 'created_at': datetime.datetime(2025, 1, 25, 6, 15, 2), 'result': '0.03421207262377225', 'result_long': None, 'result_double': None}] Qualite : 0.03421207262377225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19899763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19899763_25-01-2025_06_15_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19899763 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_P19899763_25-01-2025_06_15_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19899819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19899820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19899821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19899822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19899823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19899824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19899825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19899826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19899827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19899828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19899829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19899830, 'pht': 3726}}" where mtr_portfolio_id = 19899763 and dashboard_run_id = 1561474 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`=19899763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500611, 0.03421207262377225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19899763_25-01-2025_06_15_05.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19899819, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19899820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19899821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19899822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19899823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19899824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19899825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19899826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19899827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19899828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19899829, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19899830, '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 = 19900537 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': 2513953, 'mtr_portfolio_id': 19900537, 'created_at': datetime.datetime(2025, 1, 25, 6, 15, 31), 'result': '0.039274895659150044', 'result_long': None, 'result_double': None}] Qualite : 0.039274895659150044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19900537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19900537_25-01-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19900537 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_P19900537_25-01-2025_06_15_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19900592, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19900593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19900594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19900595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19900596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19900597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19900598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19900599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19900600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19900601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19900602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19900603, 'pht': 3726}}" where mtr_portfolio_id = 19900537 and dashboard_run_id = 1561474 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`=19900537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500612, 0.039274895659150044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19900537_25-01-2025_06_15_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19900592, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19900593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19900594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19900595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19900596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19900597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19900598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19900599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19900600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19900601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19900602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19900603, '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 = 19901362 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': 2513954, 'mtr_portfolio_id': 19901362, 'created_at': datetime.datetime(2025, 1, 25, 6, 16), 'result': '0.0565784401415072', 'result_long': None, 'result_double': None}] Qualite : 0.0565784401415072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19901362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19901362_25-01-2025_06_16_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19901362 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_P19901362_25-01-2025_06_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19901367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19901368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19901369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19901370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19901371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19901372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19901373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19901374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19901375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19901376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19901377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19901378, 'pht': 3726}}" where mtr_portfolio_id = 19901362 and dashboard_run_id = 1561474 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`=19901362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500613, 0.0565784401415072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19901362_25-01-2025_06_16_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19901367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19901368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19901369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19901370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19901371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19901372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19901373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19901374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19901375, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19901376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19901377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19901378, '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 = 19902025 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': 2513955, 'mtr_portfolio_id': 19902025, 'created_at': datetime.datetime(2025, 1, 25, 6, 16, 31), 'result': '0.029949130504970903', 'result_long': None, 'result_double': None}] Qualite : 0.029949130504970903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19902025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19902025_25-01-2025_06_16_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19902025 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_P19902025_25-01-2025_06_16_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19902058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19902059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19902060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19902061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19902062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19902063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19902064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19902065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19902066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19902067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19902068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19902069, 'pht': 3726}}" where mtr_portfolio_id = 19902025 and dashboard_run_id = 1561474 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`=19902025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500614, 0.029949130504970903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19902025_25-01-2025_06_16_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 19902058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19902059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19902060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19902061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19902062, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19902063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19902064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19902065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19902066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19902067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19902068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19902069, '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 = 19902677 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': 2513956, 'mtr_portfolio_id': 19902677, 'created_at': datetime.datetime(2025, 1, 25, 6, 17), 'result': '0.0787483562050315', 'result_long': None, 'result_double': None}] Qualite : 0.0787483562050315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19902677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19902677_25-01-2025_06_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19902677 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_P19902677_25-01-2025_06_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19902687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19902688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19902689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19902690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19902691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19902692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19902693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19902694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19902695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19902696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19902697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19902698, 'pht': 3726}}" where mtr_portfolio_id = 19902677 and dashboard_run_id = 1561474 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`=19902677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500615, 0.0787483562050315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19902677_25-01-2025_06_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19902687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19902688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19902689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19902690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19902691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19902692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19902693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19902694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19902695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19902696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19902697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19902698, '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 = 19903283 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': 2513957, 'mtr_portfolio_id': 19903283, 'created_at': datetime.datetime(2025, 1, 25, 6, 17, 32), 'result': '0.06904003137917523', 'result_long': None, 'result_double': None}] Qualite : 0.06904003137917523 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19903283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19903283_25-01-2025_06_17_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19903283 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_P19903283_25-01-2025_06_17_40.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19903315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19903316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19903317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19903318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19903319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19903320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19903321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19903322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19903323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19903324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19903325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19903326, 'pht': 3726}}" where mtr_portfolio_id = 19903283 and dashboard_run_id = 1561474 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`=19903283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500616, 0.06904003137917523, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19903283_25-01-2025_06_17_40.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19903315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19903316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19903317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19903318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19903319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19903320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19903321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19903322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19903323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19903324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19903325, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19903326, '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 = 19904149 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': 2513958, 'mtr_portfolio_id': 19904149, 'created_at': datetime.datetime(2025, 1, 25, 6, 17, 59), 'result': '0.04042598763868709', 'result_long': None, 'result_double': None}] Qualite : 0.04042598763868709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19904149 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19904149_25-01-2025_06_18_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19904149 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_P19904149_25-01-2025_06_18_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19904179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19904180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19904181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19904182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19904183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19904184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19904185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19904186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19904187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19904188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19904189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19904190, 'pht': 3726}}" where mtr_portfolio_id = 19904149 and dashboard_run_id = 1561474 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`=19904149 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500617, 0.04042598763868709, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19904149_25-01-2025_06_18_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19904179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19904180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19904181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19904182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19904183, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19904184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19904185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19904186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19904187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19904188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19904189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19904190, '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 = 19904773 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': 2513959, 'mtr_portfolio_id': 19904773, 'created_at': datetime.datetime(2025, 1, 25, 6, 18, 30), 'result': '0.05153851930219999', 'result_long': None, 'result_double': None}] Qualite : 0.05153851930219999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19904773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19904773_25-01-2025_06_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19904773 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_P19904773_25-01-2025_06_18_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19904822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19904823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19904824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19904825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19904826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19904827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19904828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19904829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19904830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19904831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19904832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19904833, 'pht': 3726}}" where mtr_portfolio_id = 19904773 and dashboard_run_id = 1561474 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`=19904773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500618, 0.05153851930219999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19904773_25-01-2025_06_18_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 19904822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19904823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19904824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19904825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19904826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19904827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19904828, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19904829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19904830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19904831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19904832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19904833, '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 = 19905950 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': 2513960, 'mtr_portfolio_id': 19905950, 'created_at': datetime.datetime(2025, 1, 25, 6, 18, 58), 'result': '0.052977008150717715', 'result_long': None, 'result_double': None}] Qualite : 0.052977008150717715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19905950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19905950_25-01-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19905950 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_P19905950_25-01-2025_06_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19905954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19905955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19905956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19905957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19905958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19905959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19905960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19905961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19905962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19905963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19905964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19905965, 'pht': 3726}}" where mtr_portfolio_id = 19905950 and dashboard_run_id = 1561474 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`=19905950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500619, 0.052977008150717715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19905950_25-01-2025_06_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 19905954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19905955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19905956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19905957, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19905958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19905959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19905960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19905961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19905962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19905963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19905964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19905965, '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 = 19906513 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': 2513961, 'mtr_portfolio_id': 19906513, 'created_at': datetime.datetime(2025, 1, 25, 6, 19, 30), 'result': '0.015988860863749153', 'result_long': None, 'result_double': None}] Qualite : 0.015988860863749153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 19906513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19906513_25-01-2025_06_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 19906513 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_P19906513_25-01-2025_06_19_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19906516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19906517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19906518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19906519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19906520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19906521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19906522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19906523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19906524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19906525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19906526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19906527, 'pht': 3726}}" where mtr_portfolio_id = 19906513 and dashboard_run_id = 1561474 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`=19906513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8500620, 0.015988860863749153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P19906513_25-01-2025_06_19_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 19906516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 19906517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 19906518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 19906519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 19906520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 19906521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 19906522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 19906523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 19906524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 19906525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 19906526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 19906527, '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 (19911523,19911524,19911525,19911526,19911527,19864585,19865964,19864619,19865165,19865730,19866181,19866583,19867386,19868241,19868857,19869246,19869826,19870710,19871217,19871694,19872378,19872984,19874061,19875079,19875527,19876182,19876572,19877335,19878067,19878819,19879559,19879760,19880097,19881418,19881692,19882542,19882872,19883670,19884420,19885023,19885343,19886258,19886796,19887254,19889161,19889758,19890328,19890691,19891472,19892043,19892652,19893415,19894222,19895014,19895776,19896636,19897974,19898425,19898973,19899763,19900537,19901362,19902025,19902677,19903283,19904149,19904773,19905950,19906513) result : ((1330911710,), (1330911726,), (1330911730,), (1330911734,), (1330911737,), (1330911741,), (1330911861,), (1330911864,), (1330911867,), (1330911871,), (1330911875,), (1330930042,), (1330930045,), (1330930048,), (1330930429,), (1330930433,), (1330930438,), (1330930459,), (1330930461,), (1330930467,), (1330930472,), (1330930479,), (1330930494,), (1330930517,), (1330930519,), (1330930527,), (1330930532,), (1330930537,), (1330930543,), (1330930607,), (1330930612,), (1330930617,), (1330930621,), (1330930625,), (1330930626,), (1330930725,), (1330930728,), (1330930743,), (1330930749,), (1330930816,), (1330931145,), (1330931151,), (1330932078,), (1330932165,), (1330932168,), (1330932309,), (1330932312,), (1330932383,), (1330932394,), (1330932497,), (1330932500,), (1330932503,), (1330932508,), (1330932637,), (1330932640,), (1330932643,), (1330932647,), (1330932780,), (1330932794,), (1330932958,), (1330932982,), (1330933288,), (1330933297,), (1330933381,), (1330933424,), (1330933430,), (1330933435,), (1330933477,), (1330933481,), (1330933486,), (1330933552,), (1330933557,), (1330933723,), (1330934208,), (1330934371,), (1330935605,), (1330935682,), (1330936747,), (1330937174,), (1330937180,), (1330937182,), (1330937187,), (1330937250,), (1330937253,), (1330937259,), (1330937264,), (1330937268,), (1330937274,), (1330937310,), (1330937315,), (1330937324,), (1330911859,), (1330911926,), (1330911929,), (1330911932,), (1330911936,), (1330911940,), (1330911943,), (1330911967,), (1330911970,), (1330911974,), (1330911976,), (1330911980,), (1330911983,), (1330912050,), (1330912064,), (1330912076,), (1330912092,), (1330912101,), (1330912105,), (1330912134,), (1330912142,), (1330912146,), (1330912150,), (1330912151,), (1330912164,), (1330912200,), (1330912203,), (1330912206,), (1330912207,), (1330912211,), (1330912218,), (1330912261,), (1330912266,), (1330912278,), (1330912289,), (1330912292,), (1330912295,), (1330912384,), (1330912386,), (1330912391,), (1330912394,), (1330912399,), (1330912404,), (1330912439,), (1330912444,), (1330912449,), (1330912460,), (1330912463,), (1330912469,), (1330912658,), (1330912734,), (1330912869,), (1330913012,), (1330913126,), (1330913166,), (1330913939,), (1330913943,), (1330913947,), (1330913955,), (1330913962,), (1330913967,), (1330914498,), (1330914500,), (1330914502,), (1330914890,), (1330918361,), (1330918365,), (1330918402,), (1330918410,), (1330918442,), (1330918444,), (1330918453,), (1330918473,), (1330918519,), (1330918533,), (1330918536,), (1330914455,), (1330914460,), (1330914493,), (1330914666,), (1330914668,), (1330914672,), (1330914677,), (1330914682,), (1330914689,), (1330914738,), (1330914762,), (1330914766,), (1330914784,), (1330914787,), (1330914790,), (1330914815,), (1330914820,), (1330914826,), (1330914835,), (1330914838,), (1330914841,), (1330914871,), (1330914876,), (1330914881,), (1330914885,), (1330914887,), (1330914958,), (1330914962,), (1330914971,), (1330914979,), (1330914984,), (1330914988,), (1330915582,), (1330915691,), (1330915761,), (1330915870,), (1330916011,), (1330916129,), (1330916891,), (1330916911,), (1330916916,), (1330916922,), (1330916927,), (1330916962,), (1330917025,), (1330917187,), (1330917206,), (1330917318,), (1330917477,), (1330917553,), (1330917689,), (1330917690,), (1330917692,), (1330917693,), (1330917696,), (1330917704,), (1330917748,), (1330917754,), (1330917760,), (1330917764,), (1330917797,), (1330917801,), (1330917883,), (1330917890,), (1330917894,), (1330917897,), (1330917903,), (1330917910,), (1330917946,), (1330917950,), (1330917954,), (1330918003,), (1330918009,), (1330918015,), (1330918300,), (1330918303,), (1330918306,), (1330918307,), (1330918309,), (1330918343,), (1330918351,), (1330918355,), (1330918358,), (1330917939,), (1330917940,), (1330917942,), (1330917992,), (1330917994,), (1330917997,), (1330918294,), (1330918490,), (1330918495,), (1330918510,), (1330918561,), (1330918570,), (1330918574,), (1330918736,), (1330918741,), (1330918744,), (1330918746,), (1330918748,), (1330918751,), (1330918792,), (1330918793,), (1330918798,), (1330918804,), (1330919648,), (1330919650,), (1330919652,), (1330919654,), (1330919951,), (1330920011,), (1330920030,), (1330920038,), (1330920322,), (1330920328,), (1330920339,), (1330920346,), (1330920354,), (1330920361,), (1330920427,), (1330920432,), (1330920439,), (1330920449,), (1330920540,), (1330909400,), (1330918578,), (1330918581,), (1330918585,), (1330918950,), (1330919100,), (1330919657,), (1330919661,), (1330920076,), (1330920080,), (1330920460,), (1330920468,), (1330920545,), (1330920556,), (1330920608,), (1330920680,), (1330920686,), (1330926157,), (1330926248,), (1330926251,), (1330926310,), (1330926312,), (1330926313,), (1330926316,), (1330926360,), (1330926363,), (1330926573,), (1330926575,), (1330926583,), (1330928068,), (1330928077,), (1330928756,), (1330928785,), (1330928788,), (1330928874,), (1330928880,), (1330928976,), (1330928980,), (1330928984,), (1330928991,), (1330929019,), (1330929026,), (1330929037,), (1330929042,), (1330929056,), (1330929060,), (1330929139,), (1330929142,), (1330929147,), (1330929161,), (1330929177,), (1330929185,), (1330929414,), (1330929484,), (1330929513,), (1330929631,), (1330929691,), (1330929811,), (1330930029,), (1330930032,), (1330930037,), (1330930414,), (1330930421,), (1330930426,), (1330920532,), (1330920537,), (1330920662,), (1330920665,), (1330920669,), (1330920674,), (1330920749,), (1330920771,), (1330920774,), (1330920777,), (1330920778,), (1330920780,), (1330920804,), (1330920807,), (1330920811,), (1330920815,), (1330920819,), (1330920823,), (1330920861,), (1330920865,), (1330920868,), (1330920872,), (1330920879,), (1330920884,), (1330920930,), (1330920934,), (1330920939,), (1330920942,), (1330920944,), (1330920947,), (1330921055,), (1330921058,), (1330921061,), (1330921081,), (1330921085,), (1330921087,), (1330921168,), (1330921171,), (1330921175,), (1330921180,), (1330921186,), (1330921194,), (1330921240,), (1330921266,), (1330921270,), (1330921274,), (1330921276,), (1330921278,), (1330921325,), (1330921327,), (1330921331,), (1330921333,), (1330921341,), (1330921351,), (1330921442,), (1330921529,), (1330921567,), (1330921571,), (1330921573,), (1330921576,), (1330921644,), (1330921650,), (1330921663,), (1330921668,), (1330921693,), (1330921935,), (1330921945,), (1330923064,), (1330923068,), (1330923073,), (1330923459,), (1330923465,), (1330923680,), (1330923697,), (1330923700,), (1330923751,), (1330923757,), (1330923852,), (1330923855,), (1330923859,), (1330923864,), (1330923922,), (1330923925,), (1330923969,), (1330923972,), (1330924241,), (1330924249,), (1330924547,), (1330924553,), (1330925571,), (1330925582,), (1330925603,), (1330925608,), (1330925613,), (1330925616,), (1330925619,), (1330925621,), (1330925682,), (1330925710,), (1330925782,), (1330925790,), (1330925810,), (1330925821,), (1330925872,), (1330925875,), (1330925882,), (1330925900,), (1330926051,), (1330926077,), (1330926154,), (1330921638,), (1330921920,), (1330921922,), (1330921925,), (1330921929,), (1330922086,), (1330922115,), (1330922174,), (1330922178,), (1330922182,), (1330922197,), (1330922211,), (1330922216,), (1330922222,), (1330922225,), (1330922230,), (1330922331,), (1330922444,), (1330922448,), (1330922453,), (1330922457,), (1330922460,), (1330922465,), (1330922986,), (1330923058,), (1330923062,), (1330923144,), (1330923150,), (1330923216,), (1330923340,), (1330923563,), (1330923643,), (1330923645,), (1330923734,), (1330923739,), (1330923744,), (1330923747,), (1330923835,), (1330923848,), (1330923901,), (1330923908,), (1330923912,), (1330923918,), (1330923945,), (1330923953,), (1330923960,), (1330923965,), (1330924167,), (1330924213,), (1330924228,), (1330924238,), (1330924481,), (1330924487,), (1330924491,), (1330924495,), (1330924498,), (1330924501,), (1330924537,), (1330924539,), (1330924543,), (1330925515,), (1330925518,), (1330925563,), (1330924533,), (1330924618,), (1330924622,), (1330924627,), (1330924730,), (1330924849,), (1330924972,), (1330925310,), (1330925372,), (1330925395,), (1330925419,), (1330925423,), (1330925427,), (1330925500,), (1330925503,), (1330925508,), (1330925512,), (1330925544,), (1330925549,), (1330925552,), (1330925862,), (1330925868,), (1330926036,), (1330926039,), (1330926043,), (1330926046,), (1330926138,), (1330926143,), (1330926147,), (1330926151,), (1330926199,), (1330926200,), (1330926203,), (1330926206,), (1330926288,), (1330926309,), (1330926338,), (1330926341,), (1330926347,), (1330926355,), (1330926541,), (1330926568,), (1330926570,), (1330926735,), (1330926739,), (1330927606,), (1330927955,), (1330927962,), (1330928065,), (1330928163,), (1330928718,), (1330926664,), (1330926674,), (1330926677,), (1330926681,), (1330926689,), (1330926699,), (1330926723,), (1330926725,), (1330926729,), (1330926732,), (1330926784,), (1330926785,), (1330926788,), (1330926791,), (1330926793,), (1330926797,), (1330927550,), (1330927579,), (1330927581,), (1330927583,), (1330927597,), (1330927673,), (1330927675,), (1330927744,), (1330927873,), (1330928048,), (1330928052,), (1330928060,), (1330928153,), (1330928154,), (1330928155,), (1330928156,), (1330928160,), (1330928227,), (1330928234,), (1330928237,), (1330928240,), (1330928243,), (1330928246,), (1330928281,), (1330928317,), (1330928319,), (1330928327,), (1330928330,), (1330928344,), (1330928487,), (1330928493,), (1330928501,), (1330928559,), (1330928572,), (1330928581,), (1330928633,), (1330928680,), (1330928699,), (1330928704,), (1330928711,), (1330928753,), (1330928743,), (1330928748,), (1330928858,), (1330928861,), (1330928865,), (1330928869,), (1330928962,), (1330928971,), (1330930717,), (1330930719,), (1330930802,), (1330930807,), (1330930810,), (1330930813,), (1330930798,), (1330931135,), (1330931138,), (1330931140,), (1330931143,), (1330931303,), (1330931371,), (1330931459,), (1330931464,), (1330931468,), (1330931472,), (1330931622,), (1330931716,), (1330931767,), (1330931811,), (1330931922,), (1330931925,), (1330931967,), (1330931971,), (1330931975,), (1330932289,), (1330932293,), (1330932300,), (1330932305,), (1330932343,), (1330932348,), (1330932353,), (1330932381,), (1330932492,), (1330932494,), (1330932631,), (1330932633,), (1330932689,), (1330932690,), (1330932695,), (1330932700,), (1330932703,), (1330932708,), (1330932741,), (1330932747,), (1330932755,), (1330932775,), (1330932866,), (1330932868,), (1330932899,), (1330932917,), (1330933236,), (1330933262,), (1330933283,), (1330933413,), (1330933417,), (1330933422,), (1330933470,), (1330933463,), (1330933464,), (1330933517,), (1330933519,), (1330933535,), (1330933547,), (1330933605,), (1330933616,), (1330933625,), (1330933637,), (1330933644,), (1330933647,), (1330933697,), (1330933705,), (1330933709,), (1330933714,), (1330933720,), (1330933741,), (1330933818,), (1330933912,), (1330934048,), (1330935303,), (1330935373,), (1330935448,), (1330935526,), (1330936164,), (1330936172,), (1330936179,), (1330936183,), (1330936189,), (1330936238,), (1330936652,), (1330936699,), (1330936704,), (1330936706,), (1330936712,), (1330936904,), (1330936910,), (1330936915,), (1330936919,), (1330936922,), (1330936923,), (1330937109,), (1330937111,), (1330937114,), (1330937117,), (1330937120,), (1330937126,), (1330937167,), (1330937170,), (1330939534,), (1330939443,), (1330939705,), (1330939817,), (1330939819,), (1330939878,), (1330939883,), (1330940014,), (1330940106,), (1330940794,), (1330940888,), (1330940912,), (1330940914,), (1330940917,), (1330940956,), (1330941084,), (1330941096,), (1330941129,), (1330941189,), (1330941201,), (1330941303,), (1330941308,), (1330941326,), (1330941477,), (1330941480,), (1330941484,), (1330941487,), (1330941521,), (1330941527,), (1330941534,), (1330941714,), (1330941724,), (1330941725,), (1330941733,), (1330942054,), (1330942056,), (1330942379,), (1330942384,), (1330942389,), (1330942452,), (1330942431,), (1330942434,), (1330942437,), (1330942494,), (1330942496,), (1330942499,), (1330942502,), (1330942545,), (1330942546,), (1330942615,), (1330942618,), (1330942620,), (1330942624,), (1330942657,), (1330942660,), (1330942665,), (1330943495,), (1330943505,), (1330943510,), (1330943516,), (1330943519,), (1330943523,), (1330943878,), (1330943881,), (1330943886,), (1330943894,), (1330943936,), (1330943942,), (1330944061,), (1330944068,), (1330944075,), (1330944081,), (1330944085,), (1330944091,), (1330944220,), (1330944231,), (1330944235,), (1330944256,), (1330944266,), (1330944273,), (1330944301,), (1330944304,), (1330944308,), (1330944314,), (1330944318,), (1330944324,), (1330944356,), (1330944357,), (1330944361,), (1330944443,), (1330944448,), (1330944452,), (1330944459,), (1330944463,), (1330944466,), (1330944521,), (1330944526,), (1330944550,), (1330944557,), (1330944560,), (1330944589,), (1330944663,), (1330944666,), (1330944671,), (1330944678,), (1330944720,), (1330944725,), (1330945638,), (1330945701,), (1330945746,), (1330945755,), (1330945829,), (1330947137,), (1330944656,), (1330944658,), (1330944702,), (1330944704,), (1330944708,), (1330944717,), (1330945355,), (1330945413,), (1330945417,), (1330945420,), (1330945422,), (1330945426,), (1330945601,), (1330945605,), (1330945612,), (1330945616,), (1330945635,), (1330945683,), (1330945694,), (1330945699,), (1330945790,), (1330945804,), (1330945822,), (1330945827,), (1330945950,), (1330945953,), (1330945957,), (1330946018,), (1330946088,), (1330946165,), (1330946957,), (1330947028,), (1330947103,), (1330947114,), (1330947131,), (1330947160,), (1330947162,), (1330947170,), (1330947175,), (1330947690,), (1330947758,), (1330947782,), (1330947805,), (1330947817,), (1330947820,), (1330947917,), (1330947919,), (1330947924,), (1330947927,), (1330947931,), (1330947966,), (1330948024,), (1330948036,), (1330948044,), (1330948050,), (1330948055,), (1330948061,), (1330948097,), (1330948100,), (1330948104,), (1330948107,), (1330948221,), (1330948240,), (1330948242,), (1330948246,), (1330948254,), (1330948259,), (1330948268,), (1330948335,), (1330948341,), (1330948345,), (1330948349,), (1330948353,), (1330948357,), (1330948407,), (1330948409,), (1330948414,), (1330948417,), (1330948420,), (1330948426,), (1330948575,), (1330948587,), (1330948635,), (1330948638,), (1330948644,), (1330949312,), (1330949316,), (1330949319,), (1330949369,), (1330949494,), (1330949873,), (1330949985,), (1330952535,), (1330948088,), (1330948092,), (1330948191,), (1330948204,), (1330948208,), (1330948211,), (1330948215,), (1330948477,), (1330948480,), (1330948486,), (1330948489,), (1330948493,), (1330948496,), (1330948545,), (1330948551,), (1330948568,), (1330948572,), (1330948617,), (1330948625,), (1330948631,), (1330949214,), (1330949302,), (1330949306,), (1330949351,), (1330949355,), (1330949361,), (1330949367,), (1330949816,), (1330949853,), (1330949861,), (1330949865,), (1330949903,), (1330949907,), (1330949912,), (1330949919,), (1330949926,), (1330949936,), (1330949976,), (1330949981,), (1330950131,), (1330951431,), (1330951486,), (1330951488,), (1330952128,), (1330952400,), (1330950100,), (1330950110,), (1330950118,), (1330950123,), (1330950127,), (1330950199,), (1330950203,), (1330950208,), (1330950210,), (1330950214,), (1330950216,), (1330950304,), (1330950311,), (1330950313,), (1330950316,), (1330950319,), (1330950353,), (1330951000,), (1330951007,), (1330951033,), (1330951038,), (1330951042,), (1330951046,), (1330951266,), (1330951301,), (1330951304,), (1330951308,), (1330951311,), (1330951313,), (1330951347,), (1330951352,), (1330951355,), (1330951360,), (1330951364,), (1330951371,), (1330951400,), (1330951410,), (1330951416,), (1330951421,), (1330951427,), (1330951450,), (1330951454,), (1330951464,), (1330951470,), (1330951559,), (1330951562,), (1330951567,), (1330951569,), (1330951572,), (1330951575,), (1330951648,), (1330951652,), (1330951674,), (1330951676,), (1330951679,), (1330951683,), (1330951890,), (1330951895,), (1330951898,), (1330951899,), (1330951901,), (1330951908,), (1330951930,), (1330951934,), (1330951936,), (1330951937,), (1330951939,), (1330951944,), (1330951985,), (1330951989,), (1330951993,), (1330952118,), (1330951970,), (1330951975,), (1330951980,), (1330952106,), (1330952108,), (1330952111,), (1330952114,), (1330952155,), (1330952158,), (1330952242,), (1330952824,), (1330952828,), (1330952834,), (1330952837,), (1330952881,), (1330952897,), (1330952901,), (1330952904,), (1330952938,), (1330952939,), (1330952941,), (1330952944,), (1330952947,), (1330953032,), (1330953036,), (1330953037,), (1330953134,), (1330953147,), (1330953162,), (1330953170,), (1330953173,), (1330953178,), (1330953218,), (1330953224,), (1330953234,), (1330953246,), (1330953252,), (1330953256,), (1330953550,), (1330953563,), (1330953566,), (1330953577,), (1330953586,), (1330953596,), (1330953710,), (1330953713,), (1330953717,), (1330953720,), (1330953722,), (1330953727,), (1330953784,), (1330953856,), (1330953891,), (1330953893,), (1330953896,), (1330953957,), (1330953961,), (1330953963,), (1330953965,), (1330954082,), (1330954086,), (1330954092,), (1330954135,), (1330954140,), (1330955072,), (1330956121,), (1330956277,), (1330956282,), (1330956326,), (1330956329,), (1330954066,), (1330954072,), (1330954079,), (1330954111,), (1330954115,), (1330954120,), (1330954130,), (1330954648,), (1330954673,), (1330954692,), (1330954695,), (1330954730,), (1330954745,), (1330955013,), (1330955040,), (1330955043,), (1330955047,), (1330955050,), (1330955103,), (1330955108,), (1330955113,), (1330955118,), (1330955127,), (1330955132,), (1330955229,), (1330955231,), (1330955233,), (1330955236,), (1330955241,), (1330955244,), (1330955276,), (1330955277,), (1330955281,), (1330955286,), (1330955289,), (1330955294,), (1330955448,), (1330955454,), (1330955483,), (1330955487,), (1330955490,), (1330955493,), (1330955555,), (1330955558,), (1330955564,), (1330955577,), (1330955584,), (1330955589,), (1330955623,), (1330955629,), (1330955634,), (1330955637,), (1330955671,), (1330955675,), (1330955772,), (1330955776,), (1330955780,), (1330955784,), (1330955788,), (1330955791,), (1330955817,), (1330955831,), (1330955839,), (1330955843,), (1330955848,), (1330955852,), (1330955877,), (1330955883,), (1330955887,), (1330955893,), (1330955903,), (1330955918,), (1330956097,), (1330956119,), (1330955983,), (1330956050,), (1330956077,), (1330956235,), (1330956263,), (1330956268,), (1330956273,), (1330956308,), (1330956316,), (1330956321,), (1330956353,), (1330956369,), (1330956378,), (1330956384,), (1330956468,), (1330956472,), (1330956483,), (1330956487,), (1330956489,), (1330956494,), (1330956693,), (1330956731,), (1330956735,), (1330956761,), (1330956791,), (1330956793,), (1330956798,), (1330956802,), (1330956865,), (1330956869,), (1330956883,), (1330956887,), (1330956891,), (1330956903,), (1330957029,), (1330957033,), (1330957036,), (1330957040,), (1330957043,), (1330957046,), (1330957091,), (1330957095,), (1330957098,), (1330957102,), (1330957106,), (1330957109,), (1330957196,), (1330957201,), (1330957209,), (1330957215,), (1330957245,), (1330957263,), (1330957288,), (1330957292,), (1330957295,), (1330957300,), (1330957304,), (1330957319,), (1330957349,), (1330957353,), (1330957382,), (1330957385,), (1330957389,), (1330967688,), (1330967693,), (1330967697,), (1330967759,), (1330967761,), (1330967763,), (1330967765,), (1330967766,), (1330967768,), (1330967803,), (1330967805,), (1330967808,), (1330967811,), (1330967814,), (1330967816,), (1330969185,), (1330969192,), (1330969196,), (1330969202,), (1330969206,), (1330969210,), (1330969309,), (1330969407,), (1330969424,), (1330969443,), (1330969457,), (1330969600,), (1330969605,), (1330969609,), (1330969613,), (1330969618,), (1330957345,), (1330957424,), (1330957426,), (1330957428,), (1330957433,), (1330957437,), (1330957440,), (1330957481,), (1330957484,), (1330957487,), (1330957489,), (1330957494,), (1330957497,), (1330957563,), (1330957566,), (1330957569,), (1330957572,), (1330957574,), (1330957577,), (1330957597,), (1330957600,), (1330957604,), (1330957625,), (1330957689,), (1330957692,), (1330957866,), (1330957869,), (1330957873,), (1330957876,), (1330957879,), (1330957881,), (1330957901,), (1330957905,), (1330957911,), (1330957921,), (1330957931,), (1330957946,), (1330957951,), (1330957957,), (1330957961,), (1330957969,), (1330957974,), (1330957978,), (1330958041,), (1330958050,), (1330958055,), (1330958106,), (1330958116,), (1330958120,), (1330958166,), (1330958170,), (1330958263,), (1330958302,), (1330958378,), (1330958384,), (1330958391,), (1330958470,), (1330958473,), (1330958671,), (1330959158,), (1330959657,), (1330959671,), (1330959724,), (1330959796,), (1330959854,), (1330959873,), (1330960282,), (1330960283,), (1330960286,), (1330961655,), (1330961658,), (1330964422,), (1330964431,), (1330964603,), (1330964608,), (1330964853,), (1330964919,), (1330964990,), (1330966010,), (1330966122,), (1330967296,), (1330967312,), (1330967374,), (1330967447,), (1330967501,), (1330967530,), (1330967538,), (1330967667,), (1330967676,), (1330967682,), (1330958027,), (1330958031,), (1330958034,), (1330958071,), (1330958080,), (1330958084,), (1330958152,), (1330958155,), (1330958159,), (1330958163,), (1330958233,), (1330958239,), (1330958246,), (1330958254,), (1330958364,), (1330958368,), (1330958372,), (1330958444,), (1330958450,), (1330958458,), (1330958466,), (1330958544,), (1330958547,), (1330958552,), (1330958561,), (1330958568,), (1330958577,), (1330958613,), (1330958619,), (1330958624,), (1330958627,), (1330958662,), (1330958780,), (1330958784,), (1330958794,), (1330958802,), (1330958860,), (1330958887,), (1330958957,), (1330958962,), (1330958972,), (1330958982,), (1330958986,), (1330958990,), (1330959032,), (1330959037,), (1330959041,), (1330959045,), (1330959051,), (1330959056,), (1330959086,), (1330959094,), (1330959098,), (1330959101,), (1330959114,), (1330960272,), (1330960278,), (1330961635,), (1330961638,), (1330963994,), (1330964025,), (1330960270,), (1330960413,), (1330960420,), (1330960437,), (1330960441,), (1330960445,), (1330960449,), (1330960629,), (1330960662,), (1330960770,), (1330960875,), (1330960984,), (1330961052,), (1330961222,), (1330961251,), (1330961271,), (1330961274,), (1330961276,), (1330961289,), (1330961496,), (1330961503,), (1330961517,), (1330961521,), (1330961524,), (1330961527,), (1330961621,), (1330961628,), (1330962139,), (1330962208,), (1330962233,), (1330962282,), (1330962345,), (1330962389,), (1330962994,), (1330963109,), (1330963174,), (1330963258,), (1330963311,), (1330963351,), (1330963862,), (1330963891,), (1330963923,), (1330963956,), (1330964138,), (1330964187,), (1330964268,), (1330964349,), (1330964582,), (1330964589,), (1330964596,), (1330964600,), (1330964669,), (1330964757,), (1330964806,), (1330965544,), (1330965548,), (1330965603,), (1330965956,), (1330965959,), (1330965999,), (1330966002,), (1330966005,), (1330966097,), (1330966099,), (1330966101,), (1330967143,), (1330967226,), (1330967291,), (1330965530,), (1330965536,), (1330965540,), (1330965902,), (1330965906,), (1330965910,), (1330965912,), (1330965914,), (1330965918,), (1330965946,), (1330965949,), (1330965951,), (1330965953,), (1330965992,), (1330965994,), (1330966085,), (1330966093,), (1330966961,), (1330967052,), (1330971756,), (1330969597,), (1330973913,), (1330974055,), (1330974068,), (1330974072,), (1330974075,), (1330974115,), (1330974120,), (1330974125,), (1330974157,), (1330974161,), (1330974164,), (1330974166,), (1330974291,), (1330974298,), (1330974300,), (1330974304,), (1330974308,), (1330974310,), (1330974336,), (1330974343,), (1330974345,), (1330974348,), (1330974351,), (1330974410,), (1330974413,), (1330974415,), (1330974419,), (1330974468,), (1330974463,), (1330974466,), (1330974508,), (1330974516,), (1330974815,), (1330974819,), (1330980371,), (1330982692,), (1330982680,), (1330982927,), (1330982939,), (1330982942,), (1330983036,), (1330983041,), (1330983047,), (1330983407,), (1330983486,), (1330983561,), (1330983639,), (1330985160,), (1330985270,), (1330985500,), (1330985704,), (1330985832,), (1330985930,), (1330986158,), (1330986162,), (1330986165,), (1330986168,), (1330986172,), (1330986175,), (1330986603,), (1330986665,), (1330986669,), (1330986673,), (1330986676,), (1330986679,), (1330986814,), (1330986821,), (1330986849,), (1330986864,), (1330986878,), (1330986884,), (1330986947,), (1330986951,), (1330986954,), (1330986956,), (1330987167,), (1330987170,), (1330987173,), (1330987253,), (1330987256,), (1330987146,), (1330987154,), (1330987164,), (1330987243,), (1330987246,), (1330987248,), (1330987251,), (1330987274,), (1330987276,), (1330987285,), (1330987290,), (1330987365,), (1330987416,), (1330987504,), (1330987736,), (1330987854,), (1330987934,), (1330987996,), (1330988374,), (1330988433,), (1330988472,), (1330988547,), (1330988611,), (1330988678,), (1330988970,), (1330989172,), (1330989336,), (1330989546,), (1330989595,), (1330990344,), (1330990345,), (1330990350,), (1330990444,), (1330990531,), (1330990576,), (1330991017,), (1330991041,), (1330991073,), (1330991076,), (1330991079,), (1330991089,), (1330991166,), (1330991241,), (1330991362,), (1330991440,), (1330991451,), (1330991456,), (1330991558,), (1330991564,), (1330991568,), (1330991569,), (1330991573,), (1330991662,), (1330991675,), (1330991686,), (1330991690,), (1330991694,), (1330991700,), (1330991737,), (1330991742,), (1330991746,), (1330991851,), (1330991864,), (1330991867,), (1330991879,), (1331000779,), (1331000784,), (1331001583,), (1331001597,), (1331001654,), (1331001714,), (1331001718,), (1331001723,), (1331001843,), (1331001846,), (1331001848,), (1331001894,), (1331001896,), (1331001899,), (1331001901,), (1331001907,), (1331001922,), (1331001948,), (1331001950,), (1331001954,), (1331001956,), (1331001958,), (1331002007,), (1331002731,), (1331002736,), (1331002738,), (1331002741,), (1331002777,), (1331002836,), (1331003047,), (1331003051,), (1331003055,), (1331003058,), (1331003063,), (1331003066,), (1331003109,), (1331003114,), (1331003116,), (1331003123,), (1331003125,), (1331003128,), (1331003165,), (1331003171,), (1331003178,), (1331003184,), (1331003195,), (1331003206,), (1331003365,), (1331003367,), (1331003371,), (1331008557,), (1331008625,), (1331008970,), (1331008972,), (1331008995,), (1331008999,), (1331009001,), (1331009006,), (1331009009,), (1331009013,), (1331009066,), (1331009093,), (1331009112,), (1331009116,), (1331009121,), (1331009128,), (1331010116,), (1331010211,), (1331010374,), (1331010426,), (1331010429,), (1331010432,), (1331011215,), (1331011374,), (1331011444,), (1331011459,), (1331011469,), (1331011527,), (1331011977,), (1331011985,), (1331011996,), (1331022672,), (1331022747,), (1331023013,), (1331023022,), (1331023081,), (1331023085,), (1331023088,), (1331023740,), (1331023882,), (1331025252,), (1331025256,), (1331025303,), (1331025375,), (1331025441,), (1331025590,), (1331025592,), (1331025594,), (1331025597,), (1331025598,), (1331025688,), (1331025692,), (1331025696,), (1331025701,), (1331025710,), (1331025743,), (1331025749,), (1331025753,), (1331025761,), (1331025799,), (1331025802,), (1331003353,), (1331003356,), (1331003361,), (1331003449,), (1331003462,), (1331003467,), (1331003479,), (1331003483,), (1331003487,), (1331003519,), (1331003520,), (1331003523,), (1331003525,), (1331003527,), (1331003528,), (1331004289,), (1331004342,), (1331004390,), (1331004465,), (1331004511,), (1331004585,), (1331004873,), (1331004878,), (1331004881,), (1331004883,), (1331004885,), (1331004888,), (1331005974,), (1331006000,), (1331006039,), (1331006044,), (1331006047,), (1331006051,), (1331006714,), (1331006768,), (1331006837,), (1331006920,), (1331006984,), (1331007034,), (1331007142,), (1331007143,), (1331007148,), (1331007150,), (1331007204,), (1331007269,), (1331007479,), (1331007525,), (1331007542,), (1331007555,), (1331007559,), (1331007562,), (1331007610,), (1331007615,), (1331007628,), (1331007632,), (1331007644,), (1331007647,), (1331008403,), (1331008409,), (1331008470,), (1331008513,), (1331008961,), (1331008963,), (1331008965,), (1331008968,), (1331011956,), (1331022601,), (1331011938,), (1331011948,), (1331012097,), (1331012123,), (1331012139,), (1331012145,), (1331012149,), (1331012153,), (1331012232,), (1331012236,), (1331012241,), (1331012244,), (1331012247,), (1331012249,), (1331012300,), (1331012308,), (1331012312,), (1331012317,), (1331012323,), (1331012328,), (1331012448,), (1331012450,), (1331012454,), (1331012459,), (1331012461,), (1331012465,), (1331012782,), (1331012804,), (1331012854,), (1331012897,), (1331012948,), (1331013014,), (1331013432,), (1331013470,), (1331013551,), (1331014107,), (1331014155,), (1331014181,), (1331021166,), (1331021794,), (1331021796,), (1331022156,), (1331022160,), (1331013288,), (1331013338,), (1331013384,), (1331013988,), (1331014031,), (1331014075,), (1331014417,), (1331014457,), (1331014517,), (1331014557,), (1331014581,), (1331014618,), (1331014990,), (1331015047,), (1331015079,), (1331015136,), (1331015211,), (1331015282,), (1331015966,), (1331016034,), (1331016073,), (1331016229,), (1331016261,), (1331016280,), (1331016405,), (1331016528,), (1331016725,), (1331016855,), (1331017044,), (1331017220,), (1331018076,), (1331018151,), (1331018223,), (1331018267,), (1331018278,), (1331018285,), (1331018881,), (1331018888,), (1331018911,), (1331018970,), (1331018996,), (1331019008,), (1331019122,), (1331019129,), (1331019132,), (1331019141,), (1331019149,), (1331019152,), (1331019476,), (1331019569,), (1331019648,), (1331019736,), (1331019823,), (1331019912,), (1331020250,), (1331020254,), (1331020257,), (1331020263,), (1331020268,), (1331020270,), (1331020694,), (1331020723,), (1331020728,), (1331020774,), (1331020780,), (1331020784,), (1331021018,), (1331021096,), (1331020811,), (1331020837,), (1331020909,), (1331021766,), (1331021770,), (1331021787,), (1331021791,), (1331021944,), (1331022026,), (1331022102,), (1331022151,), (1331022371,), (1331022452,), (1331022525,), (1331022868,), (1331022941,), (1331022983,), (1331022986,), (1331023072,), (1331023075,), (1331023078,), (1331023201,), (1331023251,), (1331023402,), (1331023565,), (1331024386,), (1331024439,), (1331024579,), (1331024750,), (1331024831,), (1331024895,), (1331025249,), (1331025589,), (1331025686,), (1331025730,), (1331025734,), (1331025781,), (1331025785,), (1331025789,), (1331025794,), (1331025823,), (1331025826,), (1331025832,), (1331025855,), (1331027385,), (1331025849,), (1331025853,), (1331026254,), (1331026260,), (1331026272,), (1331026279,), (1331026309,), (1331026315,), (1331026971,), (1331027044,), (1331027069,), (1331027075,), (1331027078,), (1331027088,), (1331027366,), (1331027373,), (1331027378,), (1331027381,), (1331027576,), (1331027579,), (1331027580,), (1331028291,), (1331030740,), (1331031683,), (1331030737,), (1331031679,), (1331031903,), (1331031907,), (1331031911,), (1331031914,), (1331031987,), (1331031989,), (1331032023,), (1331032036,), (1331032041,), (1331032045,), (1331032049,), (1331032059,), (1331032173,), (1331032176,), (1331032177,), (1331032179,), (1331032180,), (1331032183,), (1331032243,), (1331032246,), (1331032252,), (1331032272,), (1331032274,), (1331032275,), (1331032308,), (1331032314,), (1331032316,), (1331032321,), (1331032324,), (1331032328,), (1331032436,), (1331032437,), (1331032560,), (1331032569,), (1331032762,), (1331034782,), (1331034923,), (1331034926,), (1331034927,), (1331034982,), (1331034988,), (1331035005,), (1331035010,), (1331035012,), (1331035641,), (1331035736,), (1331035743,), (1331040826,), (1331040847,), (1331040851,), (1331032380,), (1331032383,), (1331032384,), (1331032386,), (1331032387,), (1331032389,), (1331032429,), (1331032431,), (1331032432,), (1331032434,), (1331032523,), (1331032528,), (1331032538,), (1331032544,), (1331032647,), (1331032652,), (1331032655,), (1331032658,), (1331032666,), (1331032670,), (1331032716,), (1331032729,), (1331032740,), (1331032752,), (1331032757,), (1331033815,), (1331033820,), (1331033823,), (1331033825,), (1331033967,), (1331034099,), (1331034255,), (1331034261,), (1331034263,), (1331034274,), (1331034276,), (1331034281,), (1331034313,), (1331034317,), (1331034320,), (1331034333,), (1331034339,), (1331034350,), (1331034494,), (1331034497,), (1331034499,), (1331034501,), (1331034504,), (1331034506,), (1331034574,), (1331034581,), (1331034591,), (1331034605,), (1331034610,), (1331034615,), (1331034647,), (1331034651,), (1331034659,), (1331034674,), (1331034681,), (1331034692,), (1331034757,), (1331034760,), (1331034766,), (1331034768,), (1331034774,), (1331034856,), (1331034862,), (1331034892,), (1331034895,), (1331034896,), (1331034920,), (1331034837,), (1331034847,), (1331034850,), (1331034852,), (1331034885,), (1331034888,), (1331034891,), (1331034915,), (1331034916,), (1331034974,), (1331035436,), (1331035526,), (1331036108,), (1331036116,), (1331036121,), (1331036161,), (1331036172,), (1331036178,), (1331036319,), (1331036322,), (1331036327,), (1331036331,), (1331036337,), (1331036340,), (1331036382,), (1331036383,), (1331036395,), (1331036402,), (1331036403,), (1331036411,), (1331036515,), (1331036519,), (1331036521,), (1331036526,), (1331036531,), (1331036538,), (1331036558,), (1331036564,), (1331036568,), (1331036573,), (1331036579,), (1331036605,), (1331036729,), (1331036735,), (1331036752,), (1331036793,), (1331036797,), (1331036803,), (1331036844,), (1331036847,), (1331036848,), (1331036852,), (1331036853,), (1331036856,), (1331036904,), (1331036911,), (1331036933,), (1331036936,), (1331036976,), (1331040643,), (1331040757,), (1331040783,), (1331040805,), (1331040808,), (1331040812,), (1331040817,), (1331040821,), (1331036884,), (1331037334,), (1331037391,), (1331037400,), (1331037404,), (1331037407,), (1331037412,), (1331037459,), (1331037462,), (1331037465,), (1331037468,), (1331037471,), (1331037473,), (1331037555,), (1331037621,), (1331037626,), (1331037664,), (1331037676,), (1331037686,), (1331037747,), (1331037749,), (1331037752,), (1331037756,), (1331037761,), (1331037765,), (1331037802,), (1331037803,), (1331037807,), (1331037810,), (1331037813,), (1331037825,), (1331037927,), (1331037929,), (1331037933,), (1331037956,), (1331037961,), (1331037966,), (1331037979,), (1331037982,), (1331037984,), (1331037988,), (1331037994,), (1331038006,), (1331038234,), (1331038236,), (1331038239,), (1331038241,), (1331038244,), (1331038270,), (1331038439,), (1331038443,), (1331038446,), (1331038448,), (1331038451,), (1331038454,), (1331038472,), (1331038475,), (1331038481,), (1331038486,), (1331038489,), (1331038494,), (1331038519,), (1331038528,), (1331038532,), (1331038538,), (1331038542,), (1331038548,), (1331038766,), (1331039174,), (1331039179,), (1331039186,), (1331039188,), (1331039232,), (1331039234,), (1331039823,), (1331039827,), (1331039956,), (1331039960,), (1331040087,), (1331040089,), (1331040107,), (1331040109,), (1331040113,), (1331040115,), (1331040119,), (1331040121,), (1331040543,), (1331040545,), (1331040549,), (1331040551,), (1331040554,), (1331040594,), (1331040628,), (1331040633,), (1331040637,), (1331038751,), (1331038753,), (1331038757,), (1331038760,), (1331038763,), (1331039009,), (1331039013,), (1331039015,), (1331039017,), (1331039018,), (1331039096,), (1331039169,), (1331039172,), (1331039217,), (1331039221,), (1331039225,), (1331039228,), (1331039720,), (1331039774,), (1331039777,), (1331039799,), (1331039936,), (1331039942,), (1331039947,), (1331039952,), (1331039988,), (1331039993,), (1331039997,), (1331040001,), (1331040005,), (1331040007,), (1331040033,), (1331040035,), (1331040038,), (1331040042,), (1331040046,), (1331040048,), (1331040075,), (1331040078,), (1331040081,), (1331040084,), (1331056262,), (1331056112,), (1331056126,), (1331056132,), (1331056140,), (1331056151,), (1331056156,), (1331056239,), (1331056252,), (1331056255,), (1331056258,), (1331056282,), (1331056286,), (1331066074,), (1331066437,), (1331079408,), (1331083531,), (1331085254,), (1331066404,), (1331066408,), (1331066429,), (1331066432,), (1331066435,), (1331066473,), (1331066476,), (1331066482,), (1331066487,), (1331066492,), (1331066496,), (1331066568,), (1331066629,), (1331066633,), (1331066638,), (1331066642,), (1331066644,), (1331066672,), (1331066675,), (1331066689,), (1331066691,), (1331066696,), (1331066698,), (1331067636,), (1331067640,), (1331067643,), (1331067646,), (1331067649,), (1331067650,), (1331068229,), (1331068398,), (1331068411,), (1331068417,), (1331068426,), (1331068433,), (1331068540,), (1331068545,), (1331068551,), (1331068559,), (1331068571,), (1331068581,), (1331068668,), (1331068672,), (1331068676,), (1331068681,), (1331068687,), (1331068695,), (1331068736,), (1331068740,), (1331068746,), (1331068751,), (1331068756,), (1331068763,), (1331068886,), (1331068889,), (1331068892,), (1331068894,), (1331068939,), (1331068942,), (1331068991,), (1331068993,), (1331069034,), (1331069036,), (1331069188,), (1331073076,), (1331073180,), (1331073214,), (1331073276,), (1331073313,), (1331073318,), (1331073488,), (1331073490,), (1331073561,), (1331073563,), (1331073566,), (1331073616,), (1331073620,), (1331074291,), (1331074293,), (1331074686,), (1331074689,), (1331074826,), (1331074827,), (1331074922,), (1331074949,), (1331074954,), (1331079373,), (1331079384,), (1331079392,), (1331079714,), (1331079718,), (1331079723,), (1331079899,), (1331083480,), (1331083483,), (1331083486,), (1331068880,), (1331068882,), (1331068922,), (1331068928,), (1331068932,), (1331068936,), (1331068965,), (1331068977,), (1331068983,), (1331068986,), (1331069023,), (1331069025,), (1331069029,), (1331069033,), (1331069077,), (1331069088,), (1331069107,), (1331069121,), (1331069125,), (1331069132,), (1331069165,), (1331069169,), (1331069174,), (1331069178,), (1331069182,), (1331069334,), (1331069338,), (1331069341,), (1331069366,), (1331069368,), (1331069370,), (1331069471,), (1331069474,), (1331069483,), (1331069487,), (1331069489,), (1331069496,), (1331069566,), (1331069567,), (1331069571,), (1331069575,), (1331069578,), (1331069583,), (1331069619,), (1331069622,), (1331069626,), (1331069630,), (1331069633,), (1331069638,), (1331069655,), (1331069662,), (1331069668,), (1331069671,), (1331069675,), (1331069677,), (1331069894,), (1331070076,), (1331070225,), (1331070357,), (1331070360,), (1331070376,), (1331070573,), (1331070578,), (1331070618,), (1331070627,), (1331070631,), (1331070633,), (1331070717,), (1331070723,), (1331070730,), (1331070731,), (1331070814,), (1331070817,), (1331070820,), (1331072739,), (1331072789,), (1331072793,), (1331072810,), (1331072829,), (1331072842,), (1331072868,), (1331072988,), (1331072989,), (1331073031,), (1331073034,), (1331073072,), (1331073074,), (1331070693,), (1331070707,), (1331070772,), (1331070775,), (1331070778,), (1331070781,), (1331070784,), (1331070786,), (1331070805,), (1331070807,), (1331070811,), (1331070950,), (1331070968,), (1331070981,), (1331070984,), (1331070990,), (1331070991,), (1331071190,), (1331071196,), (1331071201,), (1331071206,), (1331071211,), (1331071216,), (1331071507,), (1331071690,), (1331071842,), (1331071987,), (1331071990,), (1331071998,), (1331072196,), (1331072209,), (1331072214,), (1331072254,), (1331072259,), (1331072292,), (1331072378,), (1331072395,), (1331072400,), (1331072404,), (1331072407,), (1331072409,), (1331072475,), (1331072480,), (1331072483,), (1331072498,), (1331072503,), (1331072508,), (1331072552,), (1331072554,), (1331072576,), (1331072619,), (1331072624,), (1331072628,), (1331072673,), (1331072680,), (1331072684,), (1331072688,), (1331072692,), (1331072697,), (1331072720,), (1331072723,), (1331072729,), (1331072732,), (1331072736,), (1331072985,), (1331072978,), (1331072979,), (1331072982,), (1331073013,), (1331073016,), (1331073021,), (1331073026,), (1331073063,), (1331073066,), (1331073069,), (1331073116,), (1331073120,), (1331073143,), (1331073298,), (1331073303,), (1331073305,), (1331073310,), (1331073370,), (1331073376,), (1331073380,), (1331073385,), (1331073388,), (1331073393,), (1331073408,), (1331073411,), (1331073413,), (1331073417,), (1331073421,), (1331073424,), (1331073452,), (1331073457,), (1331073481,), (1331073485,), (1331073551,), (1331073554,), (1331073557,), (1331073604,), (1331073607,), (1331073611,), (1331073614,), (1331074278,), (1331074282,), (1331074285,), (1331074288,), (1331074610,), (1331074646,), (1331074649,), (1331074682,), (1331074816,), (1331074818,), (1331074821,), (1331074823,), (1331074896,), (1331074903,), (1331074909,), (1331079192,), (1331079197,), (1331079204,), (1331079208,), (1331075351,), (1331075367,), (1331075396,), (1331075404,), (1331075407,), (1331075421,), (1331075477,), (1331075480,), (1331075483,), (1331075490,), (1331075492,), (1331075502,), (1331075561,), (1331075563,), (1331075564,), (1331075566,), (1331075568,), (1331075571,), (1331075889,), (1331075906,), (1331075918,), (1331075931,), (1331075936,), (1331075939,), (1331076038,), (1331076043,), (1331076047,), (1331076052,), (1331076055,), (1331076059,), (1331076094,), (1331076099,), (1331076104,), (1331076113,), (1331076124,), (1331076133,), (1331076161,), (1331076166,), (1331076170,), (1331076174,), (1331076177,), (1331076185,), (1331076298,), (1331076300,), (1331076306,), (1331076325,), (1331076327,), (1331076328,), (1331076350,), (1331076389,), (1331076392,), (1331076404,), (1331076405,), (1331076410,), (1331076462,), (1331076467,), (1331076473,), (1331076478,), (1331076482,), (1331076487,), (1331076511,), (1331076521,), (1331076530,), (1331076536,), (1331076540,), (1331076549,), (1331076670,), (1331076675,), (1331076688,), (1331076722,), (1331076727,), (1331076805,), (1331076812,), (1331076922,), (1331076927,), (1331076929,), (1331077193,), (1331077286,), (1331077289,), (1331078943,), (1331078947,), (1331078962,), (1331079015,), (1331079018,), (1331079186,), (1331079188,), (1331076625,), (1331076631,), (1331076633,), (1331076638,), (1331076640,), (1331076643,), (1331076659,), (1331076662,), (1331076666,), (1331076705,), (1331076709,), (1331076713,), (1331076719,), (1331076763,), (1331076777,), (1331076781,), (1331076788,), (1331076909,), (1331076914,), (1331076918,), (1331077016,), (1331077020,), (1331077023,), (1331077025,), (1331077026,), (1331077044,), (1331077161,), (1331077176,), (1331077184,), (1331077188,), (1331077189,), (1331077270,), (1331077278,), (1331077281,), (1331077284,), (1331077397,), (1331077402,), (1331077405,), (1331077415,), (1331077431,), (1331077437,), (1331078258,), (1331078332,), (1331078340,), (1331078344,), (1331078348,), (1331078360,), (1331078430,), (1331078450,), (1331078462,), (1331078475,), (1331078480,), (1331078485,), (1331078911,), (1331079252,), (1331079646,), (1331079251,), (1331079524,), (1331079528,), (1331079532,), (1331079536,), (1331079538,), (1331079542,), (1331079586,), (1331079590,), (1331079595,), (1331079599,), (1331079604,), (1331079695,), (1331079698,), (1331079703,), (1331079832,), (1331079884,), (1331079888,), (1331079891,), (1331079895,), (1331079946,), (1331079950,), (1331079955,), (1331079959,), (1331079970,), (1331079990,), (1331080056,), (1331080058,), (1331080062,), (1331080065,), (1331080077,), (1331080086,), (1331080168,), (1331080390,), (1331080645,), (1331080873,), (1331081135,), (1331081353,), (1331081553,), (1331081558,), (1331081561,), (1331081574,), (1331081576,), (1331081600,), (1331081873,), (1331081987,), (1331082038,), (1331082065,), (1331082071,), (1331082078,), (1331082249,), (1331082253,), (1331082271,), (1331082289,), (1331082298,), (1331082307,), (1331082370,), (1331082373,), (1331082377,), (1331082382,), (1331082385,), (1331082389,), (1331082672,), (1331082674,), (1331082680,), (1331082839,), (1331082846,), (1331082849,), (1331082878,), (1331082881,), (1331082928,), (1331082930,), (1331083213,), (1331083214,), (1331082657,), (1331082659,), (1331082667,), (1331082734,), (1331082738,), (1331082745,), (1331082866,), (1331082869,), (1331082872,), (1331082876,), (1331082915,), (1331082919,), (1331082922,), (1331082925,), (1331083020,), (1331083026,), (1331083028,), (1331083033,), (1331083035,), (1331083039,), (1331083062,), (1331083064,), (1331083066,), (1331083069,), (1331083072,), (1331083075,), (1331083145,), (1331083170,), (1331083172,), (1331083176,), (1331083179,), (1331083182,), (1331083199,), (1331083200,), (1331083202,), (1331083205,), (1331083449,), (1331083453,), (1331083458,), (1331083522,), (1331083524,), (1331083526,), (1331083528,), (1331083656,), (1331083659,), (1331083662,), (1331083828,), (1331083879,), (1331083908,), (1331084866,), (1331084870,), (1331084922,), (1331084943,), (1331084954,), (1331084958,), (1331085215,), (1331085244,), (1331085249,), (1331085388,), (1331085436,), (1331085441,), (1331085445,), (1331086040,), (1331085564,), (1331085566,), (1331085580,), (1331085597,), (1331085600,), (1331085604,), (1331085915,), (1331085918,), (1331085922,), (1331086012,), (1331086331,), (1331086354,), (1331086427,), (1331086454,), (1331086460,), (1331086462,), (1331086466,), (1331086503,), (1331086506,), (1331086509,), (1331086512,), (1331086552,), (1331086581,), (1331086589,), (1331086683,), (1331086685,), (1331086688,), (1331086730,), (1331086759,), (1331086780,), (1331086811,), (1331086889,), (1331086904,), (1331086907,), (1331087002,), (1331087008,), (1331087014,), (1331087018,), (1331087025,), (1331087029,), (1331087048,), (1331087066,), (1331087085,), (1331087088,), (1331087509,), (1331087527,), (1331087533,), (1331087539,), (1331087554,), (1331087557,), (1331087560,), (1331087641,), (1331088493,), (1331087616,), (1331087620,), (1331087625,), (1331088163,), (1331088202,), (1331088206,), (1331088209,), (1331088219,), (1331088223,), (1331088312,), (1331088382,), (1331088389,), (1331088397,), (1331088399,), (1331088409,), (1331088449,), (1331088457,), (1331088462,), (1331088465,), (1331088844,), (1331089036,), (1331089087,), (1331089089,), (1331089340,), (1331089346,), (1331089348,), (1331089387,), (1331089392,), (1331089395,), (1331089399,), (1331089414,), (1331089418,), (1331089492,), (1331089497,), (1331089500,), (1331089505,), (1331089509,), (1331089520,), (1331089649,), (1331089692,), (1331089738,), (1331089776,), (1331089814,), (1331089824,), (1331089860,), (1331089886,), (1331089964,), (1331090009,), (1331090045,), (1331090048,), (1331090068,), (1331090070,), (1331090197,), (1331090202,), (1331090204,), (1331090396,), (1331090415,), (1331090425,), (1331090445,), (1331090459,), (1331090463,), (1331090748,), (1331090789,), (1331090697,), (1331090738,), (1331090826,), (1331090831,), (1331090833,), (1331090854,), (1331090856,), (1331090859,), (1331090860,), (1331090949,), (1331090964,), (1331090984,), (1331091102,), (1331091115,), (1331091133,), (1331091147,), (1331091169,), (1331091174,), (1331091206,), (1331091226,), (1331091250,), (1331091254,), (1331091266,), (1331091268,), (1331091313,), (1331091316,), (1331091317,), (1331091321,), (1331091325,), (1331091339,), (1331091440,), (1331091446,), (1331091450,), (1331091468,), (1331091471,), (1331091476,), (1331091682,), (1331091687,), (1331091690,), (1331091692,), (1331091693,), (1331091858,), (1331091872,), (1331091880,), (1331091932,), (1331091940,), (1331091956,), (1331091962,), (1331092272,), (1331092280,), (1331092287,), (1331092404,), (1331092578,), (1331092641,), (1331097696,), (1331097761,), (1331097911,), (1331097914,), (1331097918,), (1331098146,), (1331098151,), (1331098162,), (1331098170,), (1331098286,), (1331098350,), (1331098422,), (1331098515,), (1331098829,), (1331098830,), (1331098877,), (1331099059,), (1331099142,), (1331099260,), (1331099564,), (1331099566,), (1331099571,), (1331099573,), (1331099576,), (1331099792,), (1331099874,), (1331099943,), (1331099966,), (1331099974,), (1331099977,), (1331100135,), (1331100148,), (1331100161,), (1331100169,), (1331100214,), (1331100225,), (1331100286,), (1331100287,), (1331100290,), (1331100293,), (1331100296,), (1331100298,), (1331100350,), (1331100354,), (1331100358,), (1331100363,), (1331100369,), (1331100373,), (1331100461,), (1331100466,), (1331100475,), (1331100486,), (1331100491,), (1331100513,), (1331100533,), (1331100538,), (1331100543,), (1331100550,), (1331100554,), (1331100560,), (1331100587,), (1331100589,), (1331100597,), (1331100605,), (1331100661,), (1331103775,), (1331100638,), (1331100639,), (1331100642,), (1331101169,), (1331101201,), (1331101224,), (1331101230,), (1331101245,), (1331101260,), (1331101323,), (1331101346,), (1331101352,), (1331101356,), (1331101361,), (1331101362,), (1331101499,), (1331101505,), (1331101513,), (1331101514,), (1331101516,), (1331101518,), (1331101654,), (1331101657,), (1331101660,), (1331101662,), (1331101666,), (1331101669,), (1331101817,), (1331101819,), (1331101820,), (1331101822,), (1331101823,), (1331101826,), (1331101846,), (1331101849,), (1331101853,), (1331101856,), (1331101861,), (1331101864,), (1331101904,), (1331101909,), (1331101918,), (1331101930,), (1331101933,), (1331101937,), (1331101948,), (1331101953,), (1331101959,), (1331101964,), (1331101970,), (1331101977,), (1331102167,), (1331102284,), (1331102393,), (1331102465,), (1331102550,), (1331102649,), (1331102957,), (1331102960,), (1331102970,), (1331102975,), (1331102979,), (1331102981,), (1331103324,), (1331103342,), (1331103354,), (1331103371,), (1331103382,), (1331103393,), (1331103451,), (1331103477,), (1331103558,), (1331103422,), (1331103445,), (1331103448,), (1331103743,), (1331103758,), (1331103770,), (1331103796,), (1331103800,), (1331103801,), (1331103804,), (1331104221,), (1331104229,), (1331104244,), (1331104253,), (1331104263,), (1331104267,), (1331104431,), (1331104433,), (1331104436,), (1331104439,), (1331104443,), (1331104446,), (1331104473,), (1331104475,), (1331104485,), (1331104491,), (1331104495,), (1331104498,), (1331104566,), (1331104572,), (1331104576,), (1331104583,), (1331105140,), (1331105229,), (1331105296,), (1331105345,), (1331105444,), (1331105461,), (1331105675,), (1331105678,), (1331105681,), (1331105683,), (1331105686,), (1331105692,), (1331105700,), (1331105705,), (1331105708,), (1331106193,), (1331106196,), (1331106200,), (1331106203,), (1331106207,), (1331106210,), (1331106527,), (1331106544,), (1331106549,), (1331106566,), (1331106571,), (1331106627,), (1331106630,), (1331106633,), (1331106679,), (1331106681,), (1331106682,), (1331106684,), (1331106752,), (1331106747,), (1331106750,), (1331106777,), (1331106779,), (1331106782,), (1331106785,), (1331106805,), (1331106868,), (1331107015,), (1331107087,), (1331107310,), (1331107314,), (1331107423,), (1331107475,), (1331107510,), (1331107514,), (1331107521,), (1331107525,), (1331107556,), (1331107559,), (1331107562,), (1331107565,), (1331107710,), (1331107714,), (1331107726,), (1331107930,), (1331107934,), (1331107938,), (1331107939,), (1331108028,), (1331108032,), (1331108036,), (1331108040,), (1331108045,), (1331108052,), (1331108089,), (1331108094,), (1331108098,), (1331108103,), (1331108106,), (1331108252,), (1331108258,), (1331108261,), (1331108268,), (1331108347,), (1331108352,), (1331108462,), (1331108469,), (1331108476,), (1331108493,), (1331108497,), (1331108500,), (1331108663,), (1331108666,), (1331108667,), (1331108669,), (1331108670,), (1331108724,), (1331108727,), (1331108937,), (1331108947,), (1331108950,), (1331109600,), (1331109604,), (1331110485,), (1331110544,), (1331108661,), (1331108682,), (1331108685,), (1331108697,), (1331108721,), (1331108870,), (1331108873,), (1331108878,), (1331109476,), (1331109539,), (1331109561,), (1331109589,), (1331109815,), (1331109920,), (1331110096,), (1331110287,), (1331110597,), (1331110604,), (1331110609,), (1331110616,), (1331111223,), (1331111228,), (1331111231,), (1331111235,), (1331111248,), (1331111252,), (1331111255,), (1331111304,), (1331111306,), (1331111331,), (1331111335,), (1331111340,), (1331111373,), (1331111398,), (1331111400,), (1331111404,), (1331111408,), (1331111411,), (1331111422,), (1331111427,), (1331111431,), (1331111435,), (1331111476,), (1331111504,), (1331111508,), (1331111510,), (1331111741,), (1331111771,), (1331111798,), (1331111803,), (1331111807,), (1331111814,), (1331111902,), (1331111924,), (1331111936,), (1331111939,), (1331111941,), (1331111945,), (1331111978,), (1331111982,), (1331112038,), (1331112264,), (1331111970,), (1331111972,), (1331111975,), (1331112228,), (1331112254,), (1331112261,), (1331112341,), (1331112348,), (1331112353,), (1331112356,), (1331112491,), (1331112507,), (1331112522,), (1331112546,), (1331112548,), (1331112552,), (1331112566,), (1331112728,), (1331112732,), (1331112740,), (1331112802,), (1331112805,), (1331112816,), (1331112893,), (1331113651,), (1331113656,), (1331113663,), (1331113673,), (1331113678,), (1331113706,), (1331114105,), (1331114127,), (1331114135,), (1331114149,), (1331114157,), (1331114165,), (1331114195,), (1331114198,), (1331114203,), (1331114205,), (1331114211,), (1331114213,), (1331114235,), (1331114244,), (1331114249,), (1331114251,), (1331114266,), (1331114268,), (1331114370,), (1331114377,), (1331114380,), (1331114384,), (1331114412,), (1331114415,), (1331114481,), (1331114490,), (1331114495,), (1331114498,), (1331114505,), (1331114507,), (1331114625,), (1331114630,), (1331114633,), (1331114637,), (1331114912,), (1331114927,), (1331118008,), (1331118012,), (1331118014,), (1331118043,), (1331118049,), (1331118053,), (1331118060,), (1331118063,), (1331118071,), (1331118109,), (1331118113,), (1331114615,), (1331114620,), (1331114666,), (1331114731,), (1331114883,), (1331114887,), (1331115149,), (1331115151,), (1331115155,), (1331115158,), (1331115179,), (1331115187,), (1331115445,), (1331115449,), (1331115453,), (1331115458,), (1331115461,), (1331115467,), (1331115842,), (1331115845,), (1331115915,), (1331115933,), (1331115937,), (1331115940,), (1331116033,), (1331116087,), (1331116111,), (1331116130,), (1331116134,), (1331116140,), (1331116160,), (1331116162,), (1331116166,), (1331116173,), (1331116177,), (1331116186,), (1331116312,), (1331116338,), (1331116347,), (1331116358,), (1331116378,), (1331116389,), (1331116541,), (1331116611,), (1331116649,), (1331116654,), (1331116656,), (1331116659,), (1331116721,), (1331116726,), (1331116732,), (1331116739,), (1331116751,), (1331116761,), (1331116784,), (1331116785,), (1331116788,), (1331116791,), (1331116794,), (1331116797,), (1331116830,), (1331116837,), (1331116846,), (1331116850,), (1331116853,), (1331116857,), (1331116875,), (1331116878,), (1331116884,), (1331116891,), (1331116894,), (1331116919,), (1331116999,), (1331117586,), (1331117591,), (1331117746,), (1331117757,), (1331117785,), (1331117826,), (1331117830,), (1331117833,), (1331117868,), (1331117875,), (1331117976,), (1331118001,), (1331118004,), (1331116978,), (1331116984,), (1331116987,), (1331116992,), (1331116996,), (1331117372,), (1331117374,), (1331117380,), (1331117382,), (1331117387,), (1331117389,), (1331117437,), (1331117453,), (1331117488,), (1331117492,), (1331117505,), (1331117508,), (1331117538,), (1331117542,), (1331117551,), (1331117583,), (1331117694,), (1331117732,), (1331117740,), (1331117744,), (1331118188,), (1331118203,), (1331118211,), (1331118367,), (1331118371,), (1331118412,), (1331118498,), (1331118578,), (1331118656,), (1331118731,), (1331118732,), (1331118734,), (1331119014,), (1331119023,), (1331119138,), (1331119142,), (1331119570,), (1331119797,), (1331119892,), (1331120169,), (1331120171,), (1331124828,), (1331124831,), (1331124834,), (1331124835,), (1331124838,), (1331124883,), (1331124918,), (1331124921,), (1331118709,), (1331118725,), (1331118728,), (1331118907,), (1331118909,), (1331118914,), (1331118918,), (1331118922,), (1331118927,), (1331118946,), (1331118970,), (1331118973,), (1331119005,), (1331119116,), (1331119122,), (1331119128,), (1331119134,), (1331119171,), (1331119176,), (1331119312,), (1331119934,), (1331119937,), (1331119995,), (1331120159,), (1331120349,), (1331120353,), (1331120356,), (1331120361,), (1331120364,), (1331120378,), (1331120508,), (1331120521,), (1331120531,), (1331120538,), (1331120576,), (1331120592,), (1331120642,), (1331120647,), (1331120650,), (1331120656,), (1331120665,), (1331120669,), (1331120717,), (1331120723,), (1331120761,), (1331120809,), (1331120835,), (1331120851,), (1331120964,), (1331120971,), (1331120982,), (1331120987,), (1331121012,), (1331121022,), (1331121242,), (1331121251,), (1331121257,), (1331121261,), (1331121265,), (1331121272,), (1331121327,), (1331121335,), (1331121341,), (1331121347,), (1331121354,), (1331121357,), (1331122412,), (1331122420,), (1331122485,), (1331122488,), (1331122563,), (1331122572,), (1331122575,), (1331122638,), (1331122641,), (1331122681,), (1331122686,), (1331123882,), (1331123947,), (1331123952,), (1331124006,), (1331124074,), (1331124778,), (1331124781,), (1331121430,), (1331121433,), (1331121437,), (1331121440,), (1331121445,), (1331121448,), (1331121890,), (1331121891,), (1331121967,), (1331122018,), (1331122020,), (1331122024,), (1331122195,), (1331122209,), (1331122212,), (1331122214,), (1331122216,), (1331122217,), (1331122246,), (1331122252,), (1331122265,), (1331122274,), (1331122276,), (1331122292,), (1331122336,), (1331122349,), (1331122353,), (1331122356,), (1331122359,), (1331122361,), (1331122394,), (1331122398,), (1331122408,), (1331122410,), (1331122467,), (1331122475,), (1331122479,), (1331122482,), (1331122555,), (1331122558,), (1331122559,), (1331122617,), (1331122626,), (1331122630,), (1331122634,), (1331122651,), (1331122654,), (1331122665,), (1331122678,), (1331122744,), (1331122759,), (1331122762,), (1331122785,), (1331122840,), (1331122843,), (1331122897,), (1331122899,), (1331122963,), (1331123025,), (1331123084,), (1331123145,), (1331123291,), (1331123294,), (1331123299,), (1331123674,), (1331123679,), (1331123727,), (1331123839,), (1331123843,), (1331123846,), (1331123877,), (1331123227,), (1331123282,), (1331123286,), (1331123572,), (1331123577,), (1331123663,), (1331123820,), (1331123827,), (1331123835,), (1331123863,), (1331123865,), (1331123870,), (1331123873,), (1331123913,), (1331123915,), (1331123919,), (1331123943,), (1331123967,), (1331123972,), (1331123976,), (1331123979,), (1331124240,), (1331124244,), (1331124247,), (1331124250,), (1331124253,), (1331124255,), (1331124305,), (1331124310,), (1331124314,), (1331124317,), (1331124351,), (1331124357,), (1331124419,), (1331124435,), (1331124450,), (1331124454,), (1331124474,), (1331124478,), (1331124573,), (1331124575,), (1331124578,), (1331124580,), (1331124584,), (1331124588,), (1331124719,), (1331124721,), (1331124724,), (1331124728,), (1331124733,), (1331124736,), (1331124759,), (1331124765,), (1331124770,), (1331124774,), (1331126761,), (1331127635,), (1331127638,), (1331127806,), (1331127825,), (1331127828,), (1331127843,), (1331128927,), (1331129102,), (1331129478,), (1331129483,), (1331129509,), (1331129663,), (1331129655,), (1331130293,), (1331130574,), (1331130714,), (1331131048,), (1331131113,), (1331131494,), (1331131497,), (1330909940,), (1330910117,), (1330910236,), (1330910385,), (1330910495,), (1330910641,), (1330974566,), (1330974573,), (1330974834,), (1330974871,), (1330975454,), (1330975506,), (1330975558,), (1330975628,), (1330975703,), (1330975776,), (1330976509,), (1330976559,), (1330976569,), (1330976573,), (1330976584,), (1330976588,), (1330976613,), (1330976699,), (1330976866,), (1330977231,), (1330977381,), (1330977474,), (1330978447,), (1330978658,), (1330978942,), (1330979018,), (1330979103,), (1330979188,), (1330979794,), (1330979798,), (1330979802,), (1330979805,), (1330979895,), (1330980013,), (1330980302,), (1330980303,), (1330980305,), (1330980310,), (1330980312,), (1330980314,), (1330980334,), (1330980338,), (1330980341,), (1330980343,), (1330980347,), (1330980350,), (1330980373,), (1330980376,), (1330980390,), (1330980391,), (1330980397,), (1330980608,), (1330980623,), (1330980630,), (1330980640,), (1330980708,), (1330980747,), (1330981430,), (1330981513,), (1330981575,), (1330981644,), (1330981712,), (1330981738,), (1330982075,), (1330982076,), (1330982079,), (1330982082,), (1330982085,), (1330982091,), (1330982144,), (1330982190,), (1330982267,), (1330982344,), (1330982391,), (1330982471,), (1330982699,), (1330982702,), (1330910880,), (1330910989,), (1330911032,), (1330911037,), (1330911040,), (1330911086,), (1330911202,), (1330911205,), (1330911210,), (1330953045,), (1330953048,), (1330953052,), (1330953899,), (1330953968,), (1330953971,), (1330956332,), (1330956387,), (1330956391,), (1330956765,), (1330956770,), (1330956807,), (1330956811,), (1330969475,), (1330969646,), (1330969652,), (1330969659,), (1330969757,), (1330969898,), (1330969916,), (1330970336,), (1330970412,), (1330970470,), (1330970540,), (1330970627,), (1330970720,), (1330971899,), (1330972044,), (1330972156,), (1330972233,), (1330972331,), (1330972694,), (1330972754,), (1330972784,), (1330972843,), (1330972926,), (1330972998,), (1330973295,), (1330973312,), (1330973356,), (1330973447,), (1330973525,), (1330973593,), (1330973982,), (1330973989,), (1330974016,), (1330974027,), (1330974030,), (1330974082,), (1330974087,), (1330974127,), (1330974130,), (1330974133,), (1330974168,), (1330974171,), (1330974354,), (1330974422,), (1330974427,), (1330974472,), (1330974475,), (1330974480,), (1330974551,), (1330974561,), (1330974823,), (1330974829,), (1330911195,), (1330911197,), (1330911201,), (1330942688,), (1330944378,), (1330950013,), (1330952842,), (1330952909,), (1330952912,), (1330952962,), (1330908802,), (1330911377,), (1330911401,), (1330911405,), (1330911409,), (1330911438,), (1330911439,), (1330911508,), (1330911513,), (1330911521,), (1330911525,), (1330911530,), (1330911542,), (1330911546,), (1330911550,), (1330911552,), (1330911554,), (1330911563,), (1330942133,), (1330942166,), (1330942235,), (1330942392,), (1330942396,), (1330942400,), (1330942457,), (1330942461,), (1330942507,), (1330942510,), (1330942548,), (1330942552,), (1330942556,), (1330942559,), (1330942630,), (1330942635,), (1330942668,), (1330942676,), (1330944368,), (1330944372,), (1330945834,), (1330947181,), (1330947187,), (1330949876,), (1330949993,), (1330950005,), (1330952647,), (1330952840,), (1330908782,), (1330911638,), (1330911642,), (1330911646,), (1330911650,), (1330911656,), (1330911660,), (1330937329,), (1330937333,), (1330937338,), (1330937363,), (1330937366,), (1330937372,), (1330937376,), (1330937379,), (1330937385,), (1330937463,), (1330937468,), (1330937471,), (1330937478,), (1330937483,), (1330937487,), (1330937599,), (1330937604,), (1330937608,), (1330937612,), (1330937616,), (1330937621,), (1330937724,), (1330937729,), (1330937732,), (1330937736,), (1330937739,), (1330937742,), (1330937783,), (1330937787,), (1330937791,), (1330937795,), (1330937800,), (1330937804,), (1330937869,), (1330937872,), (1330937875,), (1330937879,), (1330937882,), (1330937887,), (1330937964,), (1330938003,), (1330938011,), (1330938014,), (1330938046,), (1330938182,), (1330938386,), (1330938395,), (1330938400,), (1330938420,), (1330938423,), (1330938428,), (1330938473,), (1330938476,), (1330938479,), (1330938482,), (1330938485,), (1330938488,), (1330938967,), (1330939064,), (1330939143,), (1330939149,), (1330939156,), (1330939163,), (1330939539,), (1330939543,), (1330939586,), (1330939589,), (1330939724,), (1330939730,), (1330939731,), (1330939733,), (1330939735,), (1330939823,), (1330939827,), (1330939832,), (1330939837,), (1330939888,), (1330939892,), (1330939897,), (1330939901,), (1330940211,), (1330940358,), (1330940485,), (1330940610,), (1330941210,), (1330941329,), (1330941334,), (1330941338,), (1330941490,), (1330941494,), (1330941542,), (1330941544,), (1330941592,), (1330941843,), (1330941938,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24012025': {'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([19911525]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] map_info['map_portfolio_photo'] : {19911525: [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195]} final : True mtd_id 4302 list_pids : [1330952962, 1330952912, 1330952909, 1330952842, 1330950013, 1330944378, 1330942688, 1330911201, 1330911197, 1330911195] Looping around the photos to save general results len do output : 1 /19911525Didn'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, '2572445') ('4302', '19911525', '1330952962', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952912', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952909', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330952842', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330950013', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330944378', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330942688', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911201', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911197', None, None, None, None, None, '2572445') ('4302', None, None, None, None, None, None, None, '2572445') ('4302', '19911525', '1330911195', None, None, None, None, None, '2572445') 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, '19911525', 'None', None, None, None, None, '2572445'), ('4302', '19911525', '1330952962', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952912', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952909', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330952842', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330950013', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330944378', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330942688', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911201', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911197', None, None, None, None, None, '2572445'), ('4302', '19911525', '1330911195', None, None, None, None, None, '2572445')] time used for this insertion : 0.013746023178100586 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.047029495239258 time spend to save output : 0.013948917388916016 total time spend for step 5 : 5.060978412628174 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 (2572445) 2.17user 2.03system 0:15.12elapsed 27%CPU (0avgtext+0avgdata 158560maxresident)k 1416inputs+8048outputs (29major+87843minor)pagefaults 0swaps