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 : 1122883 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 (2602976) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2602976) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684204 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2602976'] with mtr_portfolio_ids : ['20684204'] and first list_photo_ids : [] new path : /proc/1122883/ Name: python3 Umask: 0002 State: R (running) Tgid: 1122883 Ngid: 0 Pid: 1122883 PPid: 1122882 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1122883 NSpid: 1122883 NSpgid: 1120439 NSsid: 1120439 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100152 kB VmRSS: 100152 kB RssAnon: 59756 kB RssFile: 40396 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 177 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1122883', 'Ngid': '0', 'Pid': '1122883', 'PPid': '1122882', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1122883', 'NSpid': '1122883', 'NSpgid': '1120439', 'NSsid': '1120439', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100152 kB', 'VmRSS': '100152 kB', 'RssAnon': '59756 kB', 'RssFile': '40396 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '177'} ('datou_batch_current', '1122883', '1106840', '0', '1106840', '865592', '100152', b'', 'marlene', '2602976') 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 (20684204) 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 (2602976 ) ) 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 (20684204) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338641243, 'portfolio_id': 20684204}, {'photo_id': 1338633856, 'portfolio_id': 20684204}, {'photo_id': 1338633854, 'portfolio_id': 20684204}, {'photo_id': 1338633849, 'portfolio_id': 20684204}, {'photo_id': 1338633845, 'portfolio_id': 20684204}, {'photo_id': 1338633839, 'portfolio_id': 20684204}, {'photo_id': 1338633798, 'portfolio_id': 20684204}, {'photo_id': 1338633789, 'portfolio_id': 20684204}, {'photo_id': 1338633784, 'portfolio_id': 20684204}, {'photo_id': 1338633781, 'portfolio_id': 20684204}, {'photo_id': 1338633744, 'portfolio_id': 20684204}, {'photo_id': 1338633742, 'portfolio_id': 20684204}, {'photo_id': 1338633740, 'portfolio_id': 20684204}, {'photo_id': 1338633739, 'portfolio_id': 20684204}, {'photo_id': 1338633737, 'portfolio_id': 20684204}, {'photo_id': 1338633712, 'portfolio_id': 20684204}] map_portfolio_id_photo_id: {20684204: [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.026189565658569336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 21 05:41:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20684204) 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 : 20684204 get user id for portfolio 20684204 get sub ptf for main ptf 20684204, type 3726 and hashtags ['environnement', 'papier', 'plastique', 'Teint_Dans_La_Masse', 'Carton_gris', 'kraft', 'Carton_brun', 'flou', 'cartonnette', 'autre_refus', 'mal_croppe', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20684204 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','Carton_gris','kraft','Carton_brun','flou','cartonnette','autre_refus','mal_croppe','metal')) 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`=20684204 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','Carton_gris','kraft','Carton_brun','flou','cartonnette','autre_refus','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20684204, 'sub_port_id': 20684208, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334049, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'plastique': {'main_port_id': 20684204, 'sub_port_id': 20684209, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334050, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'autre_refus': {'main_port_id': 20684204, 'sub_port_id': 20684210, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334051, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'Carton_brun': {'main_port_id': 20684204, 'sub_port_id': 20684211, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334052, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'environnement': {'main_port_id': 20684204, 'sub_port_id': 20684212, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334053, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'metal': {'main_port_id': 20684204, 'sub_port_id': 20684213, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334054, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'flou': {'main_port_id': 20684204, 'sub_port_id': 20684214, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334055, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'Carton_gris': {'main_port_id': 20684204, 'sub_port_id': 20684215, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334056, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'mal_croppe': {'main_port_id': 20684204, 'sub_port_id': 20684216, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334057, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20684204, 'sub_port_id': 20684217, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334058, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'kraft': {'main_port_id': 20684204, 'sub_port_id': 20684218, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334059, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}, 'cartonnette': {'main_port_id': 20684204, 'sub_port_id': 20684219, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334060, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 30, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20684208 , 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=20684204 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 (20684208) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684209 , 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=20684204 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 (20684209) result : ((1338635533,), (1338636036,), (1338636037,), (1338636038,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684210 , 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=20684204 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 (20684210) result : ((1338636034,), (1338636040,), (1338636041,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684211 , 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=20684204 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 (20684211) result : ((1338635531,), (1338635532,), (1338636044,), (1338636045,), (1338636046,), (1338636047,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684212 , 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=20684204 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 (20684212) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684213 , 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=20684204 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 (20684213) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684214 , 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=20684204 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 (20684214) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684215 , 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=20684204 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 (20684215) result : ((1338636042,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684216 , 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=20684204 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 (20684216) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684217 , 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=20684204 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 (20684217) result : ((1338635320,), (1338635321,), (1338635522,), (1338635523,), (1338635524,), (1338635525,), (1338635526,), (1338635527,), (1338636030,), (1338636031,), (1338636032,), (1338636039,), (1338643217,), (1338643218,), (1338643219,), (1338643220,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684218 , 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=20684204 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 (20684218) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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 20684219 , 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=20684204 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 (20684219) result : ((1338635325,), (1338635529,), (1338636035,), (1338643223,), (1338643224,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20684204) result : ((1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,)) 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`=20684204 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','Carton_gris','kraft','Carton_brun','flou','cartonnette','autre_refus','mal_croppe','metal')) 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`=20684204 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','papier','plastique','Teint_Dans_La_Masse','Carton_gris','kraft','Carton_brun','flou','cartonnette','autre_refus','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20684204, 'sub_port_id': 20684220, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334061, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'plastique': {'main_port_id': 20684204, 'sub_port_id': 20684221, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334062, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'autre_refus': {'main_port_id': 20684204, 'sub_port_id': 20684222, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334063, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'Carton_brun': {'main_port_id': 20684204, 'sub_port_id': 20684223, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334064, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'environnement': {'main_port_id': 20684204, 'sub_port_id': 20684224, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334065, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'metal': {'main_port_id': 20684204, 'sub_port_id': 20684225, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334066, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'flou': {'main_port_id': 20684204, 'sub_port_id': 20684226, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334067, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'Carton_gris': {'main_port_id': 20684204, 'sub_port_id': 20684227, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334068, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'mal_croppe': {'main_port_id': 20684204, 'sub_port_id': 20684228, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334069, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20684204, 'sub_port_id': 20684229, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334070, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'kraft': {'main_port_id': 20684204, 'sub_port_id': 20684230, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334071, 'last_updated_at': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 17, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}, 'cartonnette': {'main_port_id': 20684204, 'sub_port_id': 20684231, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13334072, 'last_updated_at': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 20, 18, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 20, 17, 31, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684208 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684209 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20684231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20684219 lien utilise dans velours : https://www.fotonower.com/velours/20684220,20684221,20684222,20684223,20684224,20684225,20684226,20684227,20684228,20684229,20684230,20684231?tags=papier,plastique,autre_refus,Carton_brun,environnement,metal,flou,Carton_gris,mal_croppe,Teint_Dans_La_Masse,kraft,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20684204]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] map_info['map_portfolio_photo'] : {20684204: [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712]} final : False mtd_id 4302 list_pids : [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] Looping around the photos to save general results len do output : 1 /20684204. 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, '2602976') ('4302', '20684204', '1338641243', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633856', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633854', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633849', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633845', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633839', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633798', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633789', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633784', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633781', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633744', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633742', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633740', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633739', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633737', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633712', None, None, None, None, None, '2602976') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '20684204', "{'papier': 20684208, 'plastique': 20684209, 'autre_refus': 20684210, 'Carton_brun': 20684211, 'environnement': 20684212, 'metal': 20684213, 'flou': 20684214, 'Carton_gris': 20684215, 'mal_croppe': 20684216, 'Teint_Dans_La_Masse': 20684217, 'kraft': 20684218, 'cartonnette': 20684219}", None, None, None, None, '2602976'), ('4302', '20684204', '1338641243', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633856', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633854', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633849', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633845', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633839', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633798', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633789', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633784', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633781', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633744', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633742', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633740', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633739', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633737', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633712', None, None, None, None, None, '2602976')] time used for this insertion : 0.06080126762390137 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5889840126037598 time spend to save output : 0.06118631362915039 total time spend for step 1 : 1.6501703262329102 step2:final Fri Feb 21 05:42:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (20684204) 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 20684204 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338633712,1338633744,1338633742,1338633740,1338633739,1338633737,1338633798,1338633789,1338633784,1338633781,1338633856,1338633854,1338633849,1338633845,1338633839,1338641243); 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([20684204]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} new output for save of step final : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] map_info['map_portfolio_photo'] : {20684204: [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712]} final : False mtd_id 4302 list_pids : [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] Looping around the photos to save general results len do output : 16 /1338641243.Didn't retrieve data . /1338633856.Didn't retrieve data . /1338633854.Didn't retrieve data . /1338633849.Didn't retrieve data . /1338633845.Didn't retrieve data . /1338633839.Didn't retrieve data . /1338633798.Didn't retrieve data . /1338633789.Didn't retrieve data . /1338633784.Didn't retrieve data . /1338633781.Didn't retrieve data . /1338633744.Didn't retrieve data . /1338633742.Didn't retrieve data . /1338633740.Didn't retrieve data . /1338633739.Didn't retrieve data . /1338633737.Didn't retrieve data . /1338633712.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, '2602976') ('4302', '20684204', '1338641243', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633856', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633854', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633849', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633845', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633839', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633798', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633789', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633784', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633781', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633744', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633742', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633740', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633739', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633737', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633712', None, None, None, None, None, '2602976') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '20684204', '1338641243', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633856', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633854', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633849', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633845', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633839', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633798', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633789', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633784', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633781', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633744', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633742', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633740', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633739', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633737', '0.08233257028717109', None, None, None, None, '2602976'), ('4302', '20684204', '1338633712', '0.08233257028717109', None, None, None, None, '2602976')] time used for this insertion : 0.024352550506591797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08457779884338379 time spend to save output : 0.025032997131347656 total time spend for step 2 : 0.10961079597473145 step3:velours_tree Fri Feb 21 05:42:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20684204: [{'papier': 20684208, 'plastique': 20684209, 'autre_refus': 20684210, 'Carton_brun': 20684211, 'environnement': 20684212, 'metal': 20684213, 'flou': 20684214, 'Carton_gris': 20684215, 'mal_croppe': 20684216, 'Teint_Dans_La_Masse': 20684217, 'kraft': 20684218, 'cartonnette': 20684219}]} input_args_next_step : {20684204: ()} output_args : {20684204: [{'papier': 20684208, 'plastique': 20684209, 'autre_refus': 20684210, 'Carton_brun': 20684211, 'environnement': 20684212, 'metal': 20684213, 'flou': 20684214, 'Carton_gris': 20684215, 'mal_croppe': 20684216, 'Teint_Dans_La_Masse': 20684217, 'kraft': 20684218, 'cartonnette': 20684219}]} args : 20684204 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 : ({'papier': 20684208, 'plastique': 20684209, 'autre_refus': 20684210, 'Carton_brun': 20684211, 'environnement': 20684212, 'metal': 20684213, 'flou': 20684214, 'Carton_gris': 20684215, 'mal_croppe': 20684216, 'Teint_Dans_La_Masse': 20684217, 'kraft': 20684218, 'cartonnette': 20684219},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20684204) 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([20684204]) 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.4134399890899658 time spend to save output : 6.771087646484375e-05 total time spend for step 3 : 0.41350769996643066 step4:send_mail_cod Fri Feb 21 05:42:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} input_args_next_step : {1338641243: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338641243 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633856 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633854 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633849 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633845 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633839 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633798 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633789 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633784 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633781 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633744 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633742 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633740 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633739 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633737 depend.output_id : 0 input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ()} output_args : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',)} args : 1338633712 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 : {20684204: [{'papier': 20684208, 'plastique': 20684209, 'autre_refus': 20684210, 'Carton_brun': 20684211, 'environnement': 20684212, 'metal': 20684213, 'flou': 20684214, 'Carton_gris': 20684215, 'mal_croppe': 20684216, 'Teint_Dans_La_Masse': 20684217, 'kraft': 20684218, 'cartonnette': 20684219}]} input_args_next_step : {1338641243: ('0.08233257028717109',), 1338633856: ('0.08233257028717109',), 1338633854: ('0.08233257028717109',), 1338633849: ('0.08233257028717109',), 1338633845: ('0.08233257028717109',), 1338633839: ('0.08233257028717109',), 1338633798: ('0.08233257028717109',), 1338633789: ('0.08233257028717109',), 1338633784: ('0.08233257028717109',), 1338633781: ('0.08233257028717109',), 1338633744: ('0.08233257028717109',), 1338633742: ('0.08233257028717109',), 1338633740: ('0.08233257028717109',), 1338633739: ('0.08233257028717109',), 1338633737: ('0.08233257028717109',), 1338633712: ('0.08233257028717109',), 20684204: ()} output_args : {20684204: [{'papier': 20684208, 'plastique': 20684209, 'autre_refus': 20684210, 'Carton_brun': 20684211, 'environnement': 20684212, 'metal': 20684213, 'flou': 20684214, 'Carton_gris': 20684215, 'mal_croppe': 20684216, 'Teint_Dans_La_Masse': 20684217, 'kraft': 20684218, 'cartonnette': 20684219}]} args : 20684204 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 :17, first value : ('0.08233257028717109',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20684204) 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 (1338641243,1338633856,1338633854,1338633849,1338633845,1338633839,1338633798,1338633789,1338633784,1338633781,1338633744,1338633742,1338633740,1338633739,1338633737,1338633712) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338633712 begin to download photo : 1338633742 begin to download photo : 1338633789 begin to download photo : 1338633849 download finish for photo 1338633742 begin to download photo : 1338633744 download finish for photo 1338633789 begin to download photo : 1338633798 download finish for photo 1338633712 begin to download photo : 1338633737 download finish for photo 1338633849 begin to download photo : 1338633854 download finish for photo 1338633737 begin to download photo : 1338633739 download finish for photo 1338633744 begin to download photo : 1338633781 download finish for photo 1338633798 download finish for photo 1338633854 begin to download photo : 1338633839 begin to download photo : 1338633856 download finish for photo 1338633739 begin to download photo : 1338633740 download finish for photo 1338633781 begin to download photo : 1338633784 download finish for photo 1338633784 download finish for photo 1338633839 begin to download photo : 1338633845 download finish for photo 1338633856 begin to download photo : 1338641243 download finish for photo 1338633740 download finish for photo 1338633845 download finish for photo 1338641243 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P20684204_21-02-2025_05_42_02.pdf 20684209 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=20684209 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338635533: '1740069094_2188846_1338633742_991b0db4d589e4d1d98e6bf7a40fefb3_rle_crop_3680801867_0.png', 1338636036: '1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803119_0.png', 1338636037: '1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803123_0.png', 1338636038: '1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803229_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/d3aff888683ed769d86e32d869f49647_78134600.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/627a53c445442e4e0b7242845870d02f_33699301.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3b4c56eb8a6953fcbbd39713fa16ee7f_58142852.png change filename to text .imagette206842091740112922/ imagette206842091740112922/1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803119_0.png.png imagette206842091740112922/1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803229_0.png.png imagette206842091740112922/1740069094_2188846_1338633742_991b0db4d589e4d1d98e6bf7a40fefb3_rle_crop_3680801867_0.png.png imagette206842091740112922/1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803123_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/827c5eab95e3298019f3f264cc80199e_28410032.png imagette206842091740112922 20684210 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=20684210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338636034: '1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803116_0.png', 1338636040: '1740069232_2195540_1338633854_c87467739fd609e351c50f4ab968116b_rle_crop_3680803099_0.png', 1338636041: '1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803271_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/01bd4d1ac715d9fdc3c83d47079c9303_15431194.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/19eedc4e998d3dcac5cd56402eebac21_73154311.png change filename to text .imagette206842101740112922/ imagette206842101740112922/1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803116_0.png.png imagette206842101740112922/1740069232_2195540_1338633854_c87467739fd609e351c50f4ab968116b_rle_crop_3680803099_0.png.png imagette206842101740112922/1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803271_0.png.png imagette206842131740112923/ imagette206842141740112923/ imagette206842161740112923/ imagette206842181740112923/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/97a3c6b1e711a86f292c114d217a1af6_80257986.png imagette206842101740112922 20684213 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=20684213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206842131740112923 20684214 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=20684214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206842141740112923 20684216 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=20684216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206842161740112923 20684218 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=20684218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206842181740112923 20684219 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=20684219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338635325: '1740069075_2188613_1338633784_7c7991aceae6b8546c20e2a75bea702d_rle_crop_3680801554_0.png', 1338635529: '1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801891_0.png', 1338636035: '1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803232_0.png', 1338643223: '1740071731_2285098_1338633784_7c7991aceae6b8546c20e2a75bea702d_rle_crop_3680853933_0.png', 1338643224: '1740071731_2285098_1338633784_7c7991aceae6b8546c20e2a75bea702d_bib_crop_3680801554_0.jpg'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/5b1d882e6887583ebcd963508e4b7e42_39607722.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2fefe85705b9f8c53c8f857cfcf8c03a_23282316.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/66062bbdf899fd9575729fe5c3f8e32b_33239227.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b64d3247ba2a33ba4ff15fb3894ff636_99821502.png change filename to text .imagette206842191740112923/ imagette206842191740112923/1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801891_0.png.png imagette206842191740112923/1740069075_2188613_1338633784_7c7991aceae6b8546c20e2a75bea702d_rle_crop_3680801554_0.png.png imagette206842191740112923/1740071731_2285098_1338633784_7c7991aceae6b8546c20e2a75bea702d_rle_crop_3680853933_0.png.png imagette206842191740112923/1740071731_2285098_1338633784_7c7991aceae6b8546c20e2a75bea702d_bib_crop_3680801554_0.jpg.jpg imagette206842191740112923/1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803232_0.png.png wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/d52b1afd4168cf40b3e8cafbda0254c7_26845006.jpg imagette206842191740112923 20684211 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=20684211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338635531: '1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801899_0.png', 1338635532: '1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801893_0.png', 1338636044: '1740069232_2195540_1338633854_c87467739fd609e351c50f4ab968116b_rle_crop_3680803107_0.png', 1338636045: '1740069232_2195540_1338633849_799741498da3c10aa276ac37e7013b75_rle_crop_3680803135_0.png', 1338636046: '1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803277_0.png', 1338636047: '1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803269_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/42dffd67962310abe09fce5e85a62053_49745861.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/33e63c8bd60be41fd150b60217b1d53b_3038833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/c7c981d1273d0b93d1ac5ecba5f50d4d_95276517.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/9e24c829e513627f800ee52ef92de395_99618180.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/0851d136649f0e7b45c6db63cbab673b_86456208.png change filename to text .imagette206842111740112923/ imagette206842111740112923/1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803277_0.png.png imagette206842111740112923/1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803269_0.png.png imagette206842111740112923/1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801899_0.png.png imagette206842111740112923/1740069232_2195540_1338633849_799741498da3c10aa276ac37e7013b75_rle_crop_3680803135_0.png.png imagette206842111740112923/1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801893_0.png.png imagette206842111740112923/1740069232_2195540_1338633854_c87467739fd609e351c50f4ab968116b_rle_crop_3680803107_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/1d46e3194fd775eec28f8abc55575fb2_12975035.png imagette206842111740112923 20684215 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=20684215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338636042: '1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803267_0.png'} change filename to text .imagette206842151740112924/ imagette206842151740112924/1740069232_2195540_1338633839_a7416c0fac28288d39387f04dad6bfa4_rle_crop_3680803267_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e3e5076fa59194f0f1dd31f875abfbdb_73352845.png imagette206842151740112924 20684217 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=20684217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338635320: '1740069075_2188613_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801584_0.png', 1338635321: '1740069075_2188613_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801583_0.png', 1338635522: '1740069094_2188846_1338633740_2b4371976dde505ab4e854324f9282a1_rle_crop_3680801882_0.png', 1338635523: '1740069094_2188846_1338633740_2b4371976dde505ab4e854324f9282a1_rle_crop_3680801884_0.png', 1338635524: '1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801905_0.png', 1338635525: '1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801898_0.png', 1338635526: '1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801901_0.png', 1338635527: '1740069094_2188846_1338633737_8c6df9c13799f123436ba752fcfef632_rle_crop_3680801916_0.png', 1338636030: '1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803122_0.png', 1338636031: '1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803233_0.png', 1338636032: '1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803236_0.png', 1338636039: '1740069232_2195540_1338633854_c87467739fd609e351c50f4ab968116b_rle_crop_3680803104_0.png', 1338643217: '1740071731_2285098_1338633856_bf9ce5baf088f5c1212f90b9e5dffb99_rle_crop_3680853850_0.png', 1338643218: '1740071731_2285098_1338633856_bf9ce5baf088f5c1212f90b9e5dffb99_rle_crop_3680853840_0.png', 1338643219: '1740071731_2285098_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801584_0.png', 1338643220: '1740071731_2285098_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801583_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/49bf264266e8c0855009799b12a0c65e_62337021.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/534f5a6cf86d18fa53883b11d7f45bd6_85142812.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2ed83649e88a7536652106351e718750_89990697.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/b3bade930b26a586f0d730cddb89c2c0_28053933.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/008c5f4a8bbd4594fdf3909e44ffd15c_93562812.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/e1efcde1f0dddd54df1558fe4dcaf35c_26966585.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/aa205f8186623e5c6d0012bfbce06527_23255703.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/c21ed275b448683746d7c5c543fc801e_94894827.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3bf369c06315efb25b3ec96ad3992de8_43835629.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/efa7c35c94ddba5e0e51366998822187_75461396.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/4fdcb356c8c6925506b82da85d5e94fa_61416462.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/3cb99530a2c1fb45cc3206dda48c06aa_92431970.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/381da9b4f6daebe005217a150154b9a5_14914281.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/26fc5147b7cc1bf167e053e5d1558e34_3025807.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/49bf264266e8c0855009799b12a0c65e_66488261.png change filename to text .imagette206842171740112924/ imagette206842171740112924/1740069094_2188846_1338633737_8c6df9c13799f123436ba752fcfef632_rle_crop_3680801916_0.png.png imagette206842171740112924/1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803233_0.png.png imagette206842171740112924/1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801901_0.png.png imagette206842171740112924/1740069094_2188846_1338633740_2b4371976dde505ab4e854324f9282a1_rle_crop_3680801882_0.png.png imagette206842171740112924/1740069094_2188846_1338633740_2b4371976dde505ab4e854324f9282a1_rle_crop_3680801884_0.png.png imagette206842171740112924/1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801898_0.png.png imagette206842171740112924/1740069253_2195748_1338633712_364f36c170fdc85cbd20b05a91bcdc08_rle_crop_3680803236_0.png.png imagette206842171740112924/1740069075_2188613_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801583_0.png.png imagette206842171740112924/1740069094_2188846_1338633739_02ce0cea717f8f5d65f5951a3c62fed5_rle_crop_3680801905_0.png.png imagette206842171740112924/1740071731_2285098_1338633856_bf9ce5baf088f5c1212f90b9e5dffb99_rle_crop_3680853840_0.png.png imagette206842171740112924/1740069232_2195540_1338633854_c87467739fd609e351c50f4ab968116b_rle_crop_3680803104_0.png.png imagette206842171740112924/1740069253_2195748_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e_rle_crop_3680803122_0.png.png imagette206842171740112924/1740071731_2285098_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801584_0.png.png imagette206842171740112924/1740071731_2285098_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801583_0.png.png imagette206842171740112924/1740069075_2188613_1338633781_401a991d820fce0fc69e79aa40747b3d_rle_crop_3680801584_0.png.png imagette206842171740112924/1740071731_2285098_1338633856_bf9ce5baf088f5c1212f90b9e5dffb99_rle_crop_3680853850_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/534f5a6cf86d18fa53883b11d7f45bd6_31510994.png imagette206842171740112924 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20684204 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20684220,20684221,20684222,20684223,20684224,20684225,20684226,20684227,20684228,20684229,20684230,20684231?tags=papier,plastique,autre_refus,Carton_brun,environnement,metal,flou,Carton_gris,mal_croppe,Teint_Dans_La_Masse,kraft,cartonnette your option no_mail is active, we will not send the real mail to your client args[1338641243] : ('0.08233257028717109',) no score found for photo 1338641243 We are sending mail with results at report@fotonower.com args[1338633856] : ('0.08233257028717109',) no score found for photo 1338633856 We are sending mail with results at report@fotonower.com args[1338633854] : ('0.08233257028717109',) no score found for photo 1338633854 We are sending mail with results at report@fotonower.com args[1338633849] : ('0.08233257028717109',) no score found for photo 1338633849 We are sending mail with results at report@fotonower.com args[1338633845] : ('0.08233257028717109',) no score found for photo 1338633845 We are sending mail with results at report@fotonower.com args[1338633839] : ('0.08233257028717109',) no score found for photo 1338633839 We are sending mail with results at report@fotonower.com args[1338633798] : ('0.08233257028717109',) no score found for photo 1338633798 We are sending mail with results at report@fotonower.com args[1338633789] : ('0.08233257028717109',) no score found for photo 1338633789 We are sending mail with results at report@fotonower.com args[1338633784] : ('0.08233257028717109',) no score found for photo 1338633784 We are sending mail with results at report@fotonower.com args[1338633781] : ('0.08233257028717109',) no score found for photo 1338633781 We are sending mail with results at report@fotonower.com args[1338633744] : ('0.08233257028717109',) no score found for photo 1338633744 We are sending mail with results at report@fotonower.com args[1338633742] : ('0.08233257028717109',) no score found for photo 1338633742 We are sending mail with results at report@fotonower.com args[1338633740] : ('0.08233257028717109',) no score found for photo 1338633740 We are sending mail with results at report@fotonower.com args[1338633739] : ('0.08233257028717109',) no score found for photo 1338633739 We are sending mail with results at report@fotonower.com args[1338633737] : ('0.08233257028717109',) no score found for photo 1338633737 We are sending mail with results at report@fotonower.com args[1338633712] : ('0.08233257028717109',) no score found for photo 1338633712 We are sending mail with results at report@fotonower.com refus_total : 0.08233257028717109 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=20684204 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_P20684204_21-02-2025_05_42_02.pdf results_Auto_P20684204_21-02-2025_05_42_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.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','20684204','results_Auto_P20684204_21-02-2025_05_42_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf','pdf','','0.23','0.08233257028717109') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20684204]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] map_info['map_portfolio_photo'] : {20684204: [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712]} final : False mtd_id 4302 list_pids : [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] 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, '2602976') ('4302', '20684204', '1338641243', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633856', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633854', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633849', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633845', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633839', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633798', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633789', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633784', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633781', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633744', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633742', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633740', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633739', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633737', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633712', None, None, None, None, None, '2602976') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '20684204', '1338641243', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633856', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633854', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633849', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633845', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633839', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633798', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633789', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633784', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633781', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633744', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633742', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633740', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633739', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633737', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633712', None, None, None, None, None, '2602976')] time used for this insertion : 0.020735502243041992 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.241078853607178 time spend to save output : 0.021213531494140625 total time spend for step 4 : 6.262292385101318 step5:split_time_score Fri Feb 21 05:42:07 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 : ['20684204'] 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 : [('20684204',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20684204) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338633742: {'path': 'temp/1740112921_1122883_1338633742_991b0db4d589e4d1d98e6bf7a40fefb3.jpg', 'extension': 'jpg'}, 1338633744: {'path': 'temp/1740112921_1122883_1338633744_2604543fd2a80de9bc8c0bf7d3eea47e.jpg', 'extension': 'jpg'}, 1338633781: {'path': 'temp/1740112921_1122883_1338633781_401a991d820fce0fc69e79aa40747b3d.jpg', 'extension': 'jpg'}, 1338633784: {'path': 'temp/1740112921_1122883_1338633784_7c7991aceae6b8546c20e2a75bea702d.jpg', 'extension': 'jpg'}, 1338633712: {'path': 'temp/1740112921_1122883_1338633712_364f36c170fdc85cbd20b05a91bcdc08.jpg', 'extension': 'jpg'}, 1338633737: {'path': 'temp/1740112921_1122883_1338633737_8c6df9c13799f123436ba752fcfef632.jpg', 'extension': 'jpg'}, 1338633739: {'path': 'temp/1740112921_1122883_1338633739_02ce0cea717f8f5d65f5951a3c62fed5.jpg', 'extension': 'jpg'}, 1338633740: {'path': 'temp/1740112921_1122883_1338633740_2b4371976dde505ab4e854324f9282a1.jpg', 'extension': 'jpg'}, 1338633789: {'path': 'temp/1740112921_1122883_1338633789_b5aeccd3244df5cf14f81f5607dc6ccd.jpg', 'extension': 'jpg'}, 1338633798: {'path': 'temp/1740112921_1122883_1338633798_790d7604198cf85a4b93a095df074c99.jpg', 'extension': 'jpg'}, 1338633839: {'path': 'temp/1740112921_1122883_1338633839_a7416c0fac28288d39387f04dad6bfa4.jpg', 'extension': 'jpg'}, 1338633845: {'path': 'temp/1740112921_1122883_1338633845_0e1ad9e4e15154ffb2d2c37b111ca0c7.jpg', 'extension': 'jpg'}, 1338633849: {'path': 'temp/1740112921_1122883_1338633849_799741498da3c10aa276ac37e7013b75.jpg', 'extension': 'jpg'}, 1338633854: {'path': 'temp/1740112921_1122883_1338633854_c87467739fd609e351c50f4ab968116b.jpg', 'extension': 'jpg'}, 1338633856: {'path': 'temp/1740112921_1122883_1338633856_bf9ce5baf088f5c1212f90b9e5dffb99.jpg', 'extension': 'jpg'}, 1338641243: {'path': 'temp/1740112921_1122883_1338641243_97fdb943eb0274c33957ed3c05b5971f.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 = 20684204; (('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 = 20684204 group by h (('17', 16),) 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=20684204 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 (20684204) 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 (20684204) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20022025 20684204 Nombre de photos uploadées : 16 / 23040 (0%) 20022025 20684204 Nombre de photos taguées (types de déchets): 0 / 16 (0%) 20022025 20684204 Nombre de photos taguées (volume) : 0 / 16 (0%) [{'photo_id': 1338633712, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/364f36c170fdc85cbd20b05a91bcdc08.jpg', 'username': None, 'uploaded_at': 1740068842, 'text': 'image_20022025_17_26_45_010136m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338633744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2604543fd2a80de9bc8c0bf7d3eea47e.jpg', 'username': None, 'uploaded_at': 1740068902, 'text': 'image_20022025_17_26_54_009125m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338633742, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/991b0db4d589e4d1d98e6bf7a40fefb3.jpg', 'username': None, 'uploaded_at': 1740068902, 'text': 'image_20022025_17_27_04_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1338633740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/20/2b4371976dde505ab4e854324f9282a1.jpg', 'username': None, 'uploaded_at': 1740068902, 'text': 'image_20022025_17_27_14_010137m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.245208740234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.5974044799804688e-05 ???????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006804466247558594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20684204, '2025-02-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1613763,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02974224090576172 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= 1613763 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20677020, 'dashboard_result_id': 8990420, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20677493, 'dashboard_result_id': 8990421, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20677981, 'dashboard_result_id': 8990422, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20678504, 'dashboard_result_id': 8990423, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20679292, 'dashboard_result_id': 8990424, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20679803, 'dashboard_result_id': 8990425, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20680429, 'dashboard_result_id': 8990426, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20681180, 'dashboard_result_id': 8990427, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20682044, 'dashboard_result_id': 8990428, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20682655, 'dashboard_result_id': 8990429, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682683, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20683276, 'dashboard_result_id': 8990430, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20683283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20683284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20683285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20683286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20683288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20683289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20683290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20683291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20683292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20683293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20683294, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20684204, 'dashboard_result_id': 8990431, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_20-02-2025_18_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20684208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20684209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20684210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20684211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20684212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20684213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20684214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20684215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20684216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20684217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20684218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20684219, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20685137, 'dashboard_result_id': 8990432, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_20-02-2025_18_23_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20685176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685187, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20685567, 'dashboard_result_id': 8990433, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_20-02-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685605, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20685890, 'dashboard_result_id': 8990434, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_20-02-2025_18_48_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685906, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20686400, 'dashboard_result_id': 8990435, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_20-02-2025_19_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20686433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20686434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20686435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20686436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20686437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20686438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20686439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20686440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20686441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20686442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20686443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20686444, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20687022, 'dashboard_result_id': 8990436, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_20-02-2025_19_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687041, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20687703, 'dashboard_result_id': 8990437, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_20-02-2025_19_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687747, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20688458, 'dashboard_result_id': 8990438, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_20-02-2025_19_48_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20688466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20688467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20688468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20688469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20688470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20688471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20688472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20688473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20688474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20688475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20688476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20688477, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20689330, 'dashboard_result_id': 8990439, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_20-02-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20689384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20689385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20689386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20689387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20689388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20689389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20689390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20689391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20689392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20689393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20689394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20689395, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20690178, 'dashboard_result_id': 8990440, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_20-02-2025_20_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20690182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20690187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690193, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20690722, 'dashboard_result_id': 8990441, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_20-02-2025_20_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20690790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20690793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690801, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20691256, 'dashboard_result_id': 8990442, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_20-02-2025_20_59_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20691301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20691302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20691303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20691304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20691305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20691306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20691307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20691308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20691309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20691310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20691311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20691312, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20692372, 'dashboard_result_id': 8990443, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_20-02-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20692401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692410, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20692904, 'dashboard_result_id': 8990444, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_20-02-2025_21_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20692944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692955, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20693496, 'dashboard_result_id': 8990445, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_20-02-2025_21_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20693500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693511, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20693855, 'dashboard_result_id': 8990446, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_20-02-2025_22_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20693885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693895, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20694462, 'dashboard_result_id': 8990447, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_20-02-2025_22_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20694494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20694495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20694496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20694497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20694498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20694499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20694500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20694501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20694502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20694503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20694504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20694505, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20695009, 'dashboard_result_id': 8990448, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_20-02-2025_22_37_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20695083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20695084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20695085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20695086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20695087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20695088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20695089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20695090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20695091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20695092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20695093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20695094, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20696011, 'dashboard_result_id': 8990449, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_20-02-2025_22_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696085, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20696236, 'dashboard_result_id': 8990450, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_20-02-2025_23_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696325, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20696669, 'dashboard_result_id': 8990451, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696685, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20697317, 'dashboard_result_id': 8990452, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20697350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20697351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20697352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20697353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20697354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20697355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20697356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20697357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20697358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20697360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20697361, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20698145, 'dashboard_result_id': 8990453, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698231, 'pht': 3726}}"}, {'dashboat_entry_day': 1613763, 'dashboard_run_id': 1622736, 'mtr_portfolio_id': 20698592, 'dashboard_result_id': 8990454, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698606, '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 = 20677020 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': 2602965, 'mtr_portfolio_id': 20677020, 'created_at': datetime.datetime(2025, 2, 21, 5, 34, 29), 'result': '0.026277955506590962', 'result_long': None, 'result_double': None}] Qualite : 0.026277955506590962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, 'pht': 3726}}" where mtr_portfolio_id = 20677020 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20677020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990420, 0.026277955506590962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677020_21-02-2025_05_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677029, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677040, '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 = 20677493 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': 2602966, 'mtr_portfolio_id': 20677493, 'created_at': datetime.datetime(2025, 2, 21, 5, 35, 30), 'result': '0.035807220813968074', 'result_long': None, 'result_double': None}] Qualite : 0.035807220813968074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677493 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, 'pht': 3726}}" where mtr_portfolio_id = 20677493 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20677493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990421, 0.035807220813968074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677493_21-02-2025_05_35_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677536, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677539, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677544, '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 = 20677981 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': 2602967, 'mtr_portfolio_id': 20677981, 'created_at': datetime.datetime(2025, 2, 21, 5, 35, 59), 'result': '0.07405263222647525', 'result_long': None, 'result_double': None}] Qualite : 0.07405263222647525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20677981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20677981 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, 'pht': 3726}}" where mtr_portfolio_id = 20677981 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20677981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990422, 0.07405263222647525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20677981_21-02-2025_05_36_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20677986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20677987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20677988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20677989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20677990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20677991, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20677992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20677993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20677994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20677995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20677996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20677997, '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 = 20678504 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': 2602968, 'mtr_portfolio_id': 20678504, 'created_at': datetime.datetime(2025, 2, 21, 5, 36, 28), 'result': '0.04296565314830263', 'result_long': None, 'result_double': None}] Qualite : 0.04296565314830263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20678504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20678504 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, 'pht': 3726}}" where mtr_portfolio_id = 20678504 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20678504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990423, 0.04296565314830263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20678504_21-02-2025_05_36_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20678525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20678526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20678527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20678528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20678529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20678530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20678531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20678532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20678533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20678534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20678535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20678536, '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 = 20679292 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': 2602969, 'mtr_portfolio_id': 20679292, 'created_at': datetime.datetime(2025, 2, 21, 5, 37, 31), 'result': '0.04400578514089512', 'result_long': None, 'result_double': None}] Qualite : 0.04400578514089512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679292 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, 'pht': 3726}}" where mtr_portfolio_id = 20679292 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20679292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990424, 0.04400578514089512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679292_21-02-2025_05_37_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679331, '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 = 20679803 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': 2602970, 'mtr_portfolio_id': 20679803, 'created_at': datetime.datetime(2025, 2, 21, 5, 38), 'result': '0.042449429123992626', 'result_long': None, 'result_double': None}] Qualite : 0.042449429123992626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20679803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20679803 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, 'pht': 3726}}" where mtr_portfolio_id = 20679803 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20679803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990425, 0.042449429123992626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20679803_21-02-2025_05_38_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20679834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20679835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20679836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20679837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20679838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20679839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20679840, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20679841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20679842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20679843, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20679844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20679845, '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 = 20680429 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': 2602971, 'mtr_portfolio_id': 20680429, 'created_at': datetime.datetime(2025, 2, 21, 5, 39), 'result': '0.06532194276666281', 'result_long': None, 'result_double': None}] Qualite : 0.06532194276666281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20680429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20680429 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, 'pht': 3726}}" where mtr_portfolio_id = 20680429 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20680429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990426, 0.06532194276666281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20680429_21-02-2025_05_39_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20680435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20680436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20680437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20680438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20680439, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20680440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20680441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20680442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20680443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20680444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20680445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20680446, '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 = 20681180 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': 2602972, 'mtr_portfolio_id': 20681180, 'created_at': datetime.datetime(2025, 2, 21, 5, 39, 31), 'result': '0.049311636308193796', 'result_long': None, 'result_double': None}] Qualite : 0.049311636308193796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20681180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20681180 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, 'pht': 3726}}" where mtr_portfolio_id = 20681180 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20681180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990427, 0.049311636308193796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20681180_21-02-2025_05_39_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20681191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20681192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20681193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20681194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20681195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20681196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20681197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20681198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20681199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20681200, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20681201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20681202, '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 = 20682044 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': 2602973, 'mtr_portfolio_id': 20682044, 'created_at': datetime.datetime(2025, 2, 21, 5, 39, 59), 'result': '0.051993195608785105', 'result_long': None, 'result_double': None}] Qualite : 0.051993195608785105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20682044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20682044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, 'pht': 3726}}" where mtr_portfolio_id = 20682044 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20682044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990428, 0.051993195608785105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682044_21-02-2025_05_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682080, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682085, '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 = 20682655 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': 2602974, 'mtr_portfolio_id': 20682655, 'created_at': datetime.datetime(2025, 2, 21, 5, 40, 32), 'result': '0.0486917271690454', 'result_long': None, 'result_double': None}] Qualite : 0.0486917271690454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20682655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20682655 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682683, 'pht': 3726}}" where mtr_portfolio_id = 20682655 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20682655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990429, 0.0486917271690454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20682655_21-02-2025_05_40_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20682672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20682673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20682674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20682675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20682676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20682677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20682678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20682679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20682680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20682681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20682682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20682683, '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 = 20683276 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': 2602975, 'mtr_portfolio_id': 20683276, 'created_at': datetime.datetime(2025, 2, 21, 5, 41, 31), 'result': '0.05215102667291758', 'result_long': None, 'result_double': None}] Qualite : 0.05215102667291758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20683276 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20683276 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20683283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20683284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20683285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20683286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20683288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20683289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20683290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20683291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20683292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20683293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20683294, 'pht': 3726}}" where mtr_portfolio_id = 20683276 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20683276 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990430, 0.05215102667291758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20683276_21-02-2025_05_41_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20683283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20683284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20683285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20683286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20683287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20683288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20683289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20683290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20683291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20683292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20683293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20683294, '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 = 20684204 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': 2602976, 'mtr_portfolio_id': 20684204, 'created_at': datetime.datetime(2025, 2, 21, 5, 42), 'result': '0.08233257028717109', 'result_long': None, 'result_double': None}] Qualite : 0.08233257028717109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20684204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20684204 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20684208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20684209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20684210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20684211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20684212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20684213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20684214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20684215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20684216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20684217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20684218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20684219, 'pht': 3726}}" where mtr_portfolio_id = 20684204 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20684204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990431, 0.08233257028717109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20684204_21-02-2025_05_42_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20684208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20684209, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20684210, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20684211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20684212, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20684213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20684214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20684215, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20684216, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20684217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20684218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20684219, '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 = 20685137 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': 2600480, 'mtr_portfolio_id': 20685137, 'created_at': datetime.datetime(2025, 2, 20, 18, 23), 'result': '0.05778746258509959', 'result_long': None, 'result_double': None}] Qualite : 0.05778746258509959 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20685137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_20-02-2025_18_23_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20685137 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_20-02-2025_18_23_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20685176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685187, 'pht': 3726}}" where mtr_portfolio_id = 20685137 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20685137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990432, 0.05778746258509959, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685137_20-02-2025_18_23_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20685176, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685187, '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 = 20685567 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': 2600514, 'mtr_portfolio_id': 20685567, 'created_at': datetime.datetime(2025, 2, 20, 18, 32, 59), 'result': '0.04031345663475348', 'result_long': None, 'result_double': None}] Qualite : 0.04031345663475348 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20685567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_20-02-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20685567 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_20-02-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685605, 'pht': 3726}}" where mtr_portfolio_id = 20685567 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20685567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990433, 0.04031345663475348, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685567_20-02-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685603, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685605, '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 = 20685890 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': 2600538, 'mtr_portfolio_id': 20685890, 'created_at': datetime.datetime(2025, 2, 20, 18, 48, 56), 'result': '0.05102436668804995', 'result_long': None, 'result_double': None}] Qualite : 0.05102436668804995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20685890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_20-02-2025_18_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20685890 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_20-02-2025_18_48_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685906, 'pht': 3726}}" where mtr_portfolio_id = 20685890 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20685890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990434, 0.05102436668804995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20685890_20-02-2025_18_48_56.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20685895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20685896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20685897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20685898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20685899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20685900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20685901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20685902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20685903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20685904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20685905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20685906, '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 = 20686400 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': 2600578, 'mtr_portfolio_id': 20686400, 'created_at': datetime.datetime(2025, 2, 20, 19, 3, 4), 'result': '0.05143828617560906', 'result_long': None, 'result_double': None}] Qualite : 0.05143828617560906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20686400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_20-02-2025_19_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20686400 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_20-02-2025_19_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20686433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20686434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20686435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20686436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20686437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20686438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20686439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20686440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20686441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20686442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20686443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20686444, 'pht': 3726}}" where mtr_portfolio_id = 20686400 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20686400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990435, 0.05143828617560906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20686400_20-02-2025_19_03_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20686433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20686434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20686435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20686436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20686437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20686438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20686439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20686440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20686441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20686442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20686443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20686444, '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 = 20687022 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': 2600643, 'mtr_portfolio_id': 20687022, 'created_at': datetime.datetime(2025, 2, 20, 19, 18, 57), 'result': '0.03905071386581791', 'result_long': None, 'result_double': None}] Qualite : 0.03905071386581791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20687022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_20-02-2025_19_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20687022 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_20-02-2025_19_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687041, 'pht': 3726}}" where mtr_portfolio_id = 20687022 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20687022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990436, 0.03905071386581791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687022_20-02-2025_19_18_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687031, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687041, '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 = 20687703 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': 2600718, 'mtr_portfolio_id': 20687703, 'created_at': datetime.datetime(2025, 2, 20, 19, 33), 'result': '0.05197835950265688', 'result_long': None, 'result_double': None}] Qualite : 0.05197835950265688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20687703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_20-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20687703 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_20-02-2025_19_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687747, 'pht': 3726}}" where mtr_portfolio_id = 20687703 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20687703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990437, 0.05197835950265688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20687703_20-02-2025_19_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20687736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20687737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20687738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20687739, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20687740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20687741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20687742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20687743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20687744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20687745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20687746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20687747, '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 = 20688458 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': 2600783, 'mtr_portfolio_id': 20688458, 'created_at': datetime.datetime(2025, 2, 20, 19, 48, 30), 'result': '0.04700143540634104', 'result_long': None, 'result_double': None}] Qualite : 0.04700143540634104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20688458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_20-02-2025_19_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20688458 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_20-02-2025_19_48_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20688466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20688467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20688468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20688469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20688470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20688471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20688472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20688473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20688474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20688475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20688476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20688477, 'pht': 3726}}" where mtr_portfolio_id = 20688458 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20688458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990438, 0.04700143540634104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20688458_20-02-2025_19_48_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20688466, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20688467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20688468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20688469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20688470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20688471, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20688472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20688473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20688474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20688475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20688476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20688477, '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 = 20689330 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': 2600853, 'mtr_portfolio_id': 20689330, 'created_at': datetime.datetime(2025, 2, 20, 20, 2, 58), 'result': '0.049477921358811294', 'result_long': None, 'result_double': None}] Qualite : 0.049477921358811294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20689330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_20-02-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20689330 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_20-02-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20689384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20689385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20689386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20689387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20689388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20689389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20689390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20689391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20689392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20689393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20689394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20689395, 'pht': 3726}}" where mtr_portfolio_id = 20689330 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20689330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990439, 0.049477921358811294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20689330_20-02-2025_20_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20689384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20689385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20689386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20689387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20689388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20689389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20689390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20689391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20689392, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20689393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20689394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20689395, '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 = 20690178 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': 2600910, 'mtr_portfolio_id': 20690178, 'created_at': datetime.datetime(2025, 2, 20, 20, 18, 58), 'result': '0.04724102010583426', 'result_long': None, 'result_double': None}] Qualite : 0.04724102010583426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20690178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_20-02-2025_20_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20690178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_20-02-2025_20_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20690182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20690187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690193, 'pht': 3726}}" where mtr_portfolio_id = 20690178 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20690178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990440, 0.04724102010583426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690178_20-02-2025_20_18_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20690182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690183, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20690187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690193, '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 = 20690722 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': 2600948, 'mtr_portfolio_id': 20690722, 'created_at': datetime.datetime(2025, 2, 20, 20, 32, 59), 'result': '0.0477786544281751', 'result_long': None, 'result_double': None}] Qualite : 0.0477786544281751 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20690722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_20-02-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20690722 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_20-02-2025_20_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20690790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20690793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690801, 'pht': 3726}}" where mtr_portfolio_id = 20690722 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20690722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990441, 0.0477786544281751, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20690722_20-02-2025_20_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20690790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20690791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20690792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20690793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20690794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20690795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20690796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20690797, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20690798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20690799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20690800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20690801, '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 = 20691256 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': 2600991, 'mtr_portfolio_id': 20691256, 'created_at': datetime.datetime(2025, 2, 20, 20, 59), 'result': '0.05568465971169667', 'result_long': None, 'result_double': None}] Qualite : 0.05568465971169667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20691256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_20-02-2025_20_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20691256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_20-02-2025_20_59_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20691301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20691302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20691303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20691304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20691305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20691306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20691307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20691308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20691309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20691310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20691311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20691312, 'pht': 3726}}" where mtr_portfolio_id = 20691256 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20691256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990442, 0.05568465971169667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20691256_20-02-2025_20_59_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20691301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20691302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20691303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20691304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20691305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20691306, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20691307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20691308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20691309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20691310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20691311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20691312, '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 = 20692372 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': 2601125, 'mtr_portfolio_id': 20692372, 'created_at': datetime.datetime(2025, 2, 20, 21, 18, 58), 'result': '0.06508379765154493', 'result_long': None, 'result_double': None}] Qualite : 0.06508379765154493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20692372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_20-02-2025_21_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20692372 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_20-02-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20692401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692410, 'pht': 3726}}" where mtr_portfolio_id = 20692372 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20692372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990443, 0.06508379765154493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692372_20-02-2025_21_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20692401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692410, '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 = 20692904 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': 2601149, 'mtr_portfolio_id': 20692904, 'created_at': datetime.datetime(2025, 2, 20, 21, 32, 59), 'result': '0.05195196402770254', 'result_long': None, 'result_double': None}] Qualite : 0.05195196402770254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20692904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_20-02-2025_21_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20692904 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_20-02-2025_21_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20692944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692955, 'pht': 3726}}" where mtr_portfolio_id = 20692904 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20692904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990444, 0.05195196402770254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20692904_20-02-2025_21_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20692944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20692945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20692946, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20692947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20692948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20692949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20692950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20692951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20692952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20692953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20692954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20692955, '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 = 20693496 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': 2601189, 'mtr_portfolio_id': 20693496, 'created_at': datetime.datetime(2025, 2, 20, 21, 48, 58), 'result': '0.049169488496953996', 'result_long': None, 'result_double': None}] Qualite : 0.049169488496953996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20693496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_20-02-2025_21_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20693496 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_20-02-2025_21_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20693500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693511, 'pht': 3726}}" where mtr_portfolio_id = 20693496 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20693496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990445, 0.049169488496953996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693496_20-02-2025_21_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20693500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693509, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693510, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693511, '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 = 20693855 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': 2601227, 'mtr_portfolio_id': 20693855, 'created_at': datetime.datetime(2025, 2, 20, 22, 3), 'result': '0.0469219810245627', 'result_long': None, 'result_double': None}] Qualite : 0.0469219810245627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20693855 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_20-02-2025_22_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20693855 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_20-02-2025_22_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20693885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693895, 'pht': 3726}}" where mtr_portfolio_id = 20693855 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20693855 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990446, 0.0469219810245627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20693855_20-02-2025_22_03_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20693884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20693885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20693886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20693887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20693888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20693889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20693890, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20693891, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20693892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20693893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20693894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20693895, '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 = 20694462 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': 2601307, 'mtr_portfolio_id': 20694462, 'created_at': datetime.datetime(2025, 2, 20, 22, 19), 'result': '0.046799234861803124', 'result_long': None, 'result_double': None}] Qualite : 0.046799234861803124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20694462 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_20-02-2025_22_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20694462 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_20-02-2025_22_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20694494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20694495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20694496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20694497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20694498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20694499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20694500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20694501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20694502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20694503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20694504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20694505, 'pht': 3726}}" where mtr_portfolio_id = 20694462 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20694462 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990447, 0.046799234861803124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20694462_20-02-2025_22_19_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20694494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20694495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20694496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20694497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20694498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20694499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20694500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20694501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20694502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20694503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20694504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20694505, '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 = 20695009 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': 2601407, 'mtr_portfolio_id': 20695009, 'created_at': datetime.datetime(2025, 2, 20, 22, 37, 1), 'result': '0.04246741767125405', 'result_long': None, 'result_double': None}] Qualite : 0.04246741767125405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20695009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_20-02-2025_22_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20695009 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_20-02-2025_22_37_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20695083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20695084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20695085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20695086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20695087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20695088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20695089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20695090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20695091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20695092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20695093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20695094, 'pht': 3726}}" where mtr_portfolio_id = 20695009 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20695009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990448, 0.04246741767125405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20695009_20-02-2025_22_37_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20695083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20695084, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20695085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20695086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20695087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20695088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20695089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20695090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20695091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20695092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20695093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20695094, '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 = 20696011 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': 2601544, 'mtr_portfolio_id': 20696011, 'created_at': datetime.datetime(2025, 2, 20, 22, 48, 59), 'result': '0.06004541691168681', 'result_long': None, 'result_double': None}] Qualite : 0.06004541691168681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20696011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_20-02-2025_22_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20696011 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_20-02-2025_22_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696085, 'pht': 3726}}" where mtr_portfolio_id = 20696011 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20696011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990449, 0.06004541691168681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696011_20-02-2025_22_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696082, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696085, '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 = 20696236 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': 2601562, 'mtr_portfolio_id': 20696236, 'created_at': datetime.datetime(2025, 2, 20, 23, 2, 30), 'result': '0.06294716191579099', 'result_long': None, 'result_double': None}] Qualite : 0.06294716191579099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20696236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_20-02-2025_23_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20696236 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_20-02-2025_23_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696325, 'pht': 3726}}" where mtr_portfolio_id = 20696236 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20696236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990450, 0.06294716191579099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696236_20-02-2025_23_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696325, '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 = 20696669 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': 2601604, 'mtr_portfolio_id': 20696669, 'created_at': datetime.datetime(2025, 2, 20, 23, 19), 'result': '0.07090747875989986', 'result_long': None, 'result_double': None}] Qualite : 0.07090747875989986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20696669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20696669 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696685, 'pht': 3726}}" where mtr_portfolio_id = 20696669 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20696669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990451, 0.07090747875989986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20696669_20-02-2025_23_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20696674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20696675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20696676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20696677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20696678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20696679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20696680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20696681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20696682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20696683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20696684, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20696685, '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 = 20697317 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': 2601667, 'mtr_portfolio_id': 20697317, 'created_at': datetime.datetime(2025, 2, 20, 23, 32, 58), 'result': '0.058801875129870354', 'result_long': None, 'result_double': None}] Qualite : 0.058801875129870354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20697317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20697317 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20697350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20697351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20697352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20697353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20697354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20697355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20697356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20697357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20697358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20697360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20697361, 'pht': 3726}}" where mtr_portfolio_id = 20697317 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20697317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990452, 0.058801875129870354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20697317_20-02-2025_23_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20697350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20697351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20697352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20697353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20697354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20697355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20697356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20697357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20697358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20697359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20697360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20697361, '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 = 20698145 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': 2601723, 'mtr_portfolio_id': 20698145, 'created_at': datetime.datetime(2025, 2, 20, 23, 49, 1), 'result': '0.049601360252442814', 'result_long': None, 'result_double': None}] Qualite : 0.049601360252442814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20698145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20698145 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698231, 'pht': 3726}}" where mtr_portfolio_id = 20698145 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20698145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990453, 0.049601360252442814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698145_20-02-2025_23_49_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698231, '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 = 20698592 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': 2601755, 'mtr_portfolio_id': 20698592, 'created_at': datetime.datetime(2025, 2, 21, 1, 9, 31), 'result': '0.03347254518757418', 'result_long': None, 'result_double': None}] Qualite : 0.03347254518757418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20698592 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20698592 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698606, 'pht': 3726}}" where mtr_portfolio_id = 20698592 and dashboard_run_id = 1622736 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20698592 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8990454, 0.03347254518757418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20698592_21-02-2025_01_09_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20698595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20698596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20698597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20698598, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20698599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20698600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20698601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20698602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20698603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20698604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20698605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20698606, '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 (20677020,20677493,20677981,20678504,20679292,20679803,20680429,20681180,20682044,20682655,20683276,20684204,20685137,20685567,20685890,20686400,20687022,20687703,20688458,20689330,20690178,20690722,20691256,20692372,20692904,20693496,20693855,20694462,20695009,20696011,20696236,20696669,20697317,20698145,20698592) result : ((1338600917,), (1338600919,), (1338600922,), (1338600925,), (1338600927,), (1338600930,), (1338600939,), (1338600945,), (1338601469,), (1338601472,), (1338601475,), (1338601477,), (1338601481,), (1338601663,), (1338601695,), (1338601701,), (1338601808,), (1338601813,), (1338601846,), (1338601852,), (1338601859,), (1338601862,), (1338601886,), (1338601889,), (1338601919,), (1338601921,), (1338601923,), (1338602202,), (1338602205,), (1338602209,), (1338602214,), (1338602218,), (1338602239,), (1338602242,), (1338602246,), (1338602252,), (1338602329,), (1338602331,), (1338602335,), (1338602340,), (1338602387,), (1338602395,), (1338602404,), (1338602409,), (1338602414,), (1338602614,), (1338602437,), (1338602442,), (1338602447,), (1338602455,), (1338602611,), (1338602841,), (1338602928,), (1338602931,), (1338603253,), (1338603255,), (1338603260,), (1338603263,), (1338603267,), (1338603468,), (1338603472,), (1338603474,), (1338603510,), (1338603564,), (1338603570,), (1338603597,), (1338603601,), (1338603606,), (1338603608,), (1338603614,), (1338603619,), (1338603636,), (1338603639,), (1338603643,), (1338603969,), (1338604001,), (1338604004,), (1338604009,), (1338604063,), (1338604334,), (1338604337,), (1338604373,), (1338604382,), (1338604384,), (1338604390,), (1338604394,), (1338604397,), (1338604413,), (1338604416,), (1338604423,), (1338604773,), (1338604779,), (1338604786,), (1338604792,), (1338604795,), (1338604800,), (1338604838,), (1338604826,), (1338604830,), (1338604835,), (1338605049,), (1338605052,), (1338605055,), (1338605057,), (1338605061,), (1338605064,), (1338605089,), (1338605092,), (1338605096,), (1338605102,), (1338605110,), (1338605117,), (1338605133,), (1338605136,), (1338605138,), (1338605165,), (1338605168,), (1338605171,), (1338605180,), (1338605187,), (1338605192,), (1338605209,), (1338605211,), (1338605213,), (1338605215,), (1338605218,), (1338605239,), (1338605245,), (1338605248,), (1338605252,), (1338606422,), (1338606424,), (1338606427,), (1338606429,), (1338606432,), (1338606650,), (1338606867,), (1338607088,), (1338607095,), (1338607098,), (1338607275,), (1338607279,), (1338607282,), (1338607290,), (1338607295,), (1338607301,), (1338607335,), (1338607340,), (1338607343,), (1338607347,), (1338607418,), (1338607421,), (1338607424,), (1338607435,), (1338607443,), (1338607448,), (1338607522,), (1338607527,), (1338607532,), (1338607536,), (1338607611,), (1338607599,), (1338607604,), (1338607607,), (1338607610,), (1338607634,), (1338607638,), (1338607643,), (1338607646,), (1338608175,), (1338608244,), (1338608249,), (1338608252,), (1338608327,), (1338608339,), (1338608340,), (1338608342,), (1338608344,), (1338608426,), (1338608435,), (1338608444,), (1338608447,), (1338608482,), (1338608509,), (1338608603,), (1338608831,), (1338609102,), (1338609323,), (1338609327,), (1338609797,), (1338609800,), (1338609804,), (1338609808,), (1338609812,), (1338609816,), (1338610017,), (1338610098,), (1338610154,), (1338610218,), (1338610411,), (1338610413,), (1338610422,), (1338610477,), (1338610524,), (1338610591,), (1338610698,), (1338610723,), (1338610739,), (1338610745,), (1338610763,), (1338610807,), (1338610905,), (1338610910,), (1338610918,), (1338610921,), (1338610959,), (1338610971,), (1338611047,), (1338611128,), (1338611259,), (1338611432,), (1338611427,), (1338611429,), (1338611506,), (1338611514,), (1338611527,), (1338611529,), (1338611530,), (1338611533,), (1338611574,), (1338611577,), (1338611580,), (1338611584,), (1338611689,), (1338611691,), (1338611694,), (1338611697,), (1338611703,), (1338611710,), (1338611740,), (1338611742,), (1338611745,), (1338611749,), (1338611753,), (1338611756,), (1338612014,), (1338612239,), (1338612335,), (1338612489,), (1338612528,), (1338612602,), (1338612687,), (1338612741,), (1338612745,), (1338612750,), (1338612973,), (1338613049,), (1338613118,), (1338613123,), (1338613203,), (1338613228,), (1338613348,), (1338613370,), (1338613385,), (1338613418,), (1338613460,), (1338613464,), (1338613467,), (1338613471,), (1338613475,), (1338613478,), (1338613492,), (1338613494,), (1338613499,), (1338613502,), (1338613524,), (1338613533,), (1338613535,), (1338613538,), (1338613541,), (1338613545,), (1338613569,), (1338613571,), (1338613573,), (1338613577,), (1338613598,), (1338613602,), (1338613605,), (1338613608,), (1338613611,), (1338613632,), (1338613634,), (1338613636,), (1338613639,), (1338613640,), (1338613666,), (1338613659,), (1338613663,), (1338613702,), (1338613713,), (1338613715,), (1338613717,), (1338613721,), (1338613724,), (1338613743,), (1338613745,), (1338613747,), (1338613757,), (1338613766,), (1338613769,), (1338613802,), (1338613813,), (1338613815,), (1338613817,), (1338613851,), (1338613853,), (1338613855,), (1338613858,), (1338613861,), (1338613863,), (1338613881,), (1338613884,), (1338613894,), (1338613900,), (1338613907,), (1338613912,), (1338613930,), (1338613935,), (1338613939,), (1338613942,), (1338613964,), (1338613966,), (1338613968,), (1338613969,), (1338613971,), (1338613973,), (1338614058,), (1338614328,), (1338614585,), (1338614960,), (1338614992,), (1338614999,), (1338615003,), (1338615005,), (1338615014,), (1338615127,), (1338615202,), (1338615362,), (1338615508,), (1338615563,), (1338615584,), (1338615754,), (1338615758,), (1338615762,), (1338615766,), (1338616355,), (1338616403,), (1338616460,), (1338616522,), (1338616653,), (1338616736,), (1338617009,), (1338617014,), (1338617020,), (1338617023,), (1338617024,), (1338617063,), (1338617036,), (1338617040,), (1338617049,), (1338617058,), (1338617710,), (1338617733,), (1338617736,), (1338618544,), (1338618582,), (1338618604,), (1338618769,), (1338618773,), (1338618780,), (1338619063,), (1338619114,), (1338619116,), (1338619136,), (1338619498,), (1338619501,), (1338619503,), (1338619505,), (1338619512,), (1338619548,), (1338619550,), (1338619554,), (1338619559,), (1338619568,), (1338619574,), (1338619689,), (1338619720,), (1338619754,), (1338619813,), (1338620405,), (1338620408,), (1338620410,), (1338620420,), (1338620433,), (1338620435,), (1338620678,), (1338620717,), (1338620738,), (1338620743,), (1338620747,), (1338620817,), (1338620820,), (1338620873,), (1338620942,), (1338621032,), (1338621330,), (1338621333,), (1338621337,), (1338621341,), (1338621345,), (1338621607,), (1338621757,), (1338621823,), (1338621867,), (1338621870,), (1338621874,), (1338622111,), (1338622114,), (1338622116,), (1338622157,), (1338622189,), (1338622194,), (1338622198,), (1338622202,), (1338622206,), (1338622208,), (1338622258,), (1338622262,), (1338622266,), (1338622269,), (1338622323,), (1338622293,), (1338622296,), (1338622299,), (1338622303,), (1338622320,), (1338622377,), (1338622380,), (1338622382,), (1338622389,), (1338622395,), (1338622398,), (1338622488,), (1338622491,), (1338622494,), (1338622498,), (1338622518,), (1338622519,), (1338622521,), (1338622523,), (1338622528,), (1338622539,), (1338622568,), (1338622573,), (1338622584,), (1338622586,), (1338622593,), (1338622613,), (1338622614,), (1338622617,), (1338622620,), (1338622623,), (1338622635,), (1338622914,), (1338623101,), (1338623288,), (1338623480,), (1338623888,), (1338623900,), (1338623902,), (1338623904,), (1338623959,), (1338624116,), (1338624194,), (1338624196,), (1338624225,), (1338624276,), (1338624363,), (1338624369,), (1338624371,), (1338624373,), (1338624375,), (1338624409,), (1338624414,), (1338624473,), (1338624515,), (1338624615,), (1338624619,), (1338624623,), (1338624627,), (1338624630,), (1338624680,), (1338624682,), (1338624684,), (1338624687,), (1338624689,), (1338624745,), (1338624757,), (1338624776,), (1338624782,), (1338624785,), (1338624789,), (1338624856,), (1338624858,), (1338624861,), (1338624864,), (1338624866,), (1338624871,), (1338624950,), (1338624941,), (1338624943,), (1338624945,), (1338624948,), (1338625130,), (1338625164,), (1338625167,), (1338625170,), (1338625174,), (1338625178,), (1338625195,), (1338625199,), (1338625209,), (1338625214,), (1338625218,), (1338625249,), (1338625255,), (1338625258,), (1338625261,), (1338625286,), (1338625291,), (1338625304,), (1338625315,), (1338625317,), (1338625354,), (1338625358,), (1338625362,), (1338625363,), (1338625366,), (1338625586,), (1338625589,), (1338625592,), (1338625595,), (1338625598,), (1338625615,), (1338625715,), (1338625719,), (1338625824,), (1338625826,), (1338625828,), (1338625850,), (1338625879,), (1338625889,), (1338626065,), (1338626067,), (1338626070,), (1338626073,), (1338626109,), (1338626111,), (1338626114,), (1338626118,), (1338626123,), (1338626164,), (1338626166,), (1338626168,), (1338626173,), (1338626179,), (1338626182,), (1338626197,), (1338626199,), (1338626205,), (1338626210,), (1338626212,), (1338626229,), (1338626231,), (1338626233,), (1338626240,), (1338626263,), (1338626266,), (1338626268,), (1338626271,), (1338626274,), (1338626277,), (1338626306,), (1338626300,), (1338626302,), (1338626304,), (1338626341,), (1338626344,), (1338626353,), (1338626368,), (1338626372,), (1338626374,), (1338626391,), (1338626437,), (1338626607,), (1338626677,), (1338626713,), (1338627178,), (1338627306,), (1338627361,), (1338627366,), (1338627369,), (1338627642,), (1338627701,), (1338627771,), (1338627988,), (1338627991,), (1338627994,), (1338628015,), (1338628017,), (1338628018,), (1338628020,), (1338628745,), (1338628748,), (1338628751,), (1338628754,), (1338628856,), (1338628858,), (1338628860,), (1338628864,), (1338628884,), (1338628888,), (1338628892,), (1338629501,), (1338629534,), (1338629609,), (1338629615,), (1338629624,), (1338629626,), (1338629628,), (1338629629,), (1338629639,), (1338629640,), (1338629641,), (1338629643,), (1338629644,), (1338629647,), (1338629670,), (1338629663,), (1338629667,), (1338629894,), (1338629897,), (1338629900,), (1338629903,), (1338629906,), (1338629908,), (1338629922,), (1338629924,), (1338629928,), (1338629933,), (1338629976,), (1338629978,), (1338629980,), (1338629983,), (1338629986,), (1338630208,), (1338630287,), (1338630324,), (1338630419,), (1338630458,), (1338630666,), (1338630668,), (1338630673,), (1338630677,), (1338630681,), (1338630739,), (1338631098,), (1338631117,), (1338631122,), (1338631125,), (1338631378,), (1338631386,), (1338631389,), (1338631392,), (1338631395,), (1338631399,), (1338631463,), (1338631472,), (1338631480,), (1338631483,), (1338631489,), (1338631490,), (1338631509,), (1338631514,), (1338631526,), (1338631530,), (1338631572,), (1338631574,), (1338631577,), (1338631612,), (1338631615,), (1338631636,), (1338631688,), (1338631731,), (1338631778,), (1338631829,), (1338631883,), (1338632006,), (1338632008,), (1338632009,), (1338632012,), (1338632014,), (1338632030,), (1338632032,), (1338632093,), (1338632096,), (1338633715,), (1338633712,), (1338633737,), (1338633739,), (1338633740,), (1338633742,), (1338633744,), (1338633781,), (1338633784,), (1338633789,), (1338633798,), (1338633839,), (1338633845,), (1338633849,), (1338633854,), (1338633856,), (1338641243,), (1338641489,), (1338641496,), (1338641500,), (1338641502,), (1338641505,), (1338641519,), (1338641522,), (1338641524,), (1338641528,), (1338641531,), (1338641697,), (1338641699,), (1338641701,), (1338641704,), (1338642102,), (1338642179,), (1338642260,), (1338642265,), (1338642438,), (1338642442,), (1338642454,), (1338642537,), (1338642542,), (1338642545,), (1338642623,), (1338642660,), (1338642669,), (1338642677,), (1338642695,), (1338642698,), (1338642700,), (1338642704,), (1338642707,), (1338642716,), (1338642741,), (1338642744,), (1338642748,), (1338642752,), (1338642782,), (1338642784,), (1338642795,), (1338642797,), (1338642821,), (1338642838,), (1338642843,), (1338642847,), (1338642851,), (1338642854,), (1338642901,), (1338642904,), (1338642908,), (1338642966,), (1338642968,), (1338642970,), (1338642972,), (1338642981,), (1338642983,), (1338643050,), (1338643052,), (1338643054,), (1338643058,), (1338643061,), (1338643830,), (1338643466,), (1338643472,), (1338643659,), (1338644321,), (1338644323,), (1338644347,), (1338644486,), (1338644655,), (1338644662,), (1338644664,), (1338644667,), (1338644692,), (1338644756,), (1338645010,), (1338645083,), (1338645121,), (1338645126,), (1338645357,), (1338645452,), (1338645454,), (1338645458,), (1338645499,), (1338645515,), (1338645570,), (1338645586,), (1338645592,), (1338645604,), (1338645607,), (1338645631,), (1338645633,), (1338645636,), (1338645639,), (1338645669,), (1338645671,), (1338645675,), (1338645702,), (1338645708,), (1338645726,), (1338645755,), (1338645758,), (1338645820,), (1338645823,), (1338645825,), (1338645829,), (1338645832,), (1338645854,), (1338645859,), (1338645863,), (1338645868,), (1338645908,), (1338645889,), (1338645892,), (1338645894,), (1338645899,), (1338645904,), (1338645924,), (1338645930,), (1338645935,), (1338645938,), (1338645940,), (1338645943,), (1338645957,), (1338645961,), (1338645970,), (1338645981,), (1338646023,), (1338646025,), (1338646027,), (1338646037,), (1338646072,), (1338646074,), (1338646082,), (1338646087,), (1338646090,), (1338646095,), (1338646634,), (1338646741,), (1338646752,), (1338646757,), (1338646760,), (1338646944,), (1338646984,), (1338646998,), (1338647100,), (1338647103,), (1338647106,), (1338647108,), (1338647112,), (1338647152,), (1338647156,), (1338647160,), (1338647166,), (1338647173,), (1338647203,), (1338647207,), (1338647210,), (1338647213,), (1338647217,), (1338647237,), (1338647239,), (1338647241,), (1338647243,), (1338647245,), (1338647288,), (1338647292,), (1338647295,), (1338647298,), (1338647303,), (1338647323,), (1338647327,), (1338647331,), (1338647334,), (1338647341,), (1338647361,), (1338647365,), (1338647399,), (1338647406,), (1338647409,), (1338647414,), (1338647460,), (1338647446,), (1338647449,), (1338647452,), (1338647455,), (1338647457,), (1338647633,), (1338647635,), (1338647637,), (1338647669,), (1338647671,), (1338647673,), (1338647726,), (1338647759,), (1338647769,), (1338647785,), (1338647791,), (1338647884,), (1338647894,), (1338647897,), (1338647900,), (1338647903,), (1338647912,), (1338648706,), (1338648764,), (1338648795,), (1338649475,), (1338649477,), (1338649479,), (1338649481,), (1338649507,), (1338649510,), (1338649514,), (1338649517,), (1338650132,), (1338650155,), (1338650162,), (1338650166,), (1338650170,), (1338650543,), (1338650456,), (1338650477,), (1338650510,), (1338650911,), (1338650967,), (1338650971,), (1338650976,), (1338650981,), (1338651115,), (1338651117,), (1338651192,), (1338651198,), (1338651201,), (1338651220,), (1338651222,), (1338651224,), (1338651298,), (1338651300,), (1338651305,), (1338651308,), (1338651332,), (1338651351,), (1338651362,), (1338651369,), (1338651373,), (1338651377,), (1338651393,), (1338651395,), (1338651398,), (1338651402,), (1338651405,), (1338651747,), (1338651951,), (1338652209,), (1338652428,), (1338652432,), (1338652499,), (1338652502,), (1338652531,), (1338652549,), (1338652558,), (1338652571,), (1338652575,), (1338652579,), (1338652627,), (1338652641,), (1338652645,), (1338652660,), (1338652664,), (1338652723,), (1338652726,), (1338652729,), (1338652732,), (1338652750,), (1338652752,), (1338652754,), (1338652757,), (1338652760,), (1338652787,), (1338652790,), (1338652794,), (1338652800,), (1338652803,), (1338652806,), (1338652822,), (1338652825,), (1338652836,), (1338652842,), (1338652848,), (1338652891,), (1338652878,), (1338652881,), (1338652886,), (1338652933,), (1338652935,), (1338652941,), (1338652945,), (1338653184,), (1338653327,), (1338653330,), (1338653519,), (1338653538,), (1338653605,), (1338653611,), (1338653620,), (1338653634,), (1338653638,), (1338653642,), (1338653692,), (1338653696,), (1338653700,), (1338653704,), (1338653707,), (1338653710,), (1338653753,), (1338653759,), (1338653781,), (1338653874,), (1338653878,), (1338653882,), (1338653885,), (1338653888,), (1338653912,), (1338653914,), (1338653917,), (1338653921,), (1338653925,), (1338653950,), (1338653954,), (1338653958,), (1338653962,), (1338653994,), (1338653996,), (1338654002,), (1338654007,), (1338654028,), (1338654031,), (1338654036,), (1338654038,), (1338654041,), (1338654045,), (1338654067,), (1338654068,), (1338654069,), (1338654072,), (1338654232,), (1338654234,), (1338654237,), (1338654276,), (1338654279,), (1338654283,), (1338654287,), (1338654291,), (1338654331,), (1338654317,), (1338654321,), (1338654324,), (1338654328,), (1338654360,), (1338654368,), (1338654371,), (1338654375,), (1338654403,), (1338654407,), (1338654413,), (1338654440,), (1338654443,), (1338654446,), (1338654466,), (1338654499,), (1338654503,), (1338654512,), (1338654524,), (1338654539,), (1338654543,), (1338654570,), (1338654575,), (1338654578,), (1338654581,), (1338654619,), (1338654631,), (1338654638,), (1338654658,), (1338654661,), (1338654664,), (1338654670,), (1338654674,), (1338654742,), (1338654749,), (1338654754,), (1338654758,), (1338654762,), (1338654779,), (1338654782,), (1338655826,), (1338655829,), (1338655851,), (1338655855,), (1338655858,), (1338655877,), (1338655879,), (1338655882,), (1338655884,), (1338655887,), (1338656311,), (1338656394,), (1338656401,), (1338656405,), (1338656409,), (1338656534,), (1338656539,), (1338656547,), (1338656562,), (1338656568,), (1338656959,), (1338656918,), (1338656929,), (1338656934,), (1338656952,), (1338657720,), (1338657931,), (1338657934,), (1338657937,), (1338657940,), (1338657943,), (1338657961,), (1338658057,), (1338658131,), (1338658143,), (1338658151,), (1338658155,), (1338658201,), (1338658207,), (1338658213,), (1338658217,), (1338658254,), (1338658261,), (1338658264,), (1338658293,), (1338658296,), (1338658328,), (1338658332,), (1338658335,), (1338658342,), (1338658347,), (1338658351,), (1338658396,), (1338658400,), (1338658404,), (1338658423,), (1338658427,), (1338658431,), (1338658440,), (1338658442,), (1338658446,), (1338658454,), (1338658517,), (1338658519,), (1338658523,), (1338658525,), (1338658572,), (1338658609,), (1338658612,), (1338658615,), (1338658620,), (1338658624,), (1338658679,), (1338658683,), (1338658752,), (1338658806,), (1338658808,), (1338658813,), (1338658955,), (1338659008,), (1338659015,), (1338659022,), (1338659029,), (1338659033,), (1338659132,), (1338659109,), (1338659111,), (1338659114,), (1338659124,), (1338659416,), (1338659432,), (1338659437,), (1338659441,), (1338659443,), (1338659481,), (1338659490,), (1338659497,), (1338659500,), (1338659503,), (1338659533,), (1338659536,), (1338659539,), (1338659542,), (1338659545,), (1338659580,), (1338659582,), (1338659586,), (1338659593,), (1338659615,), (1338659618,), (1338659621,), (1338659667,), (1338659670,), (1338659673,), (1338659676,), (1338659721,), (1338659732,), (1338659735,), (1338659739,), (1338659741,), (1338659743,), (1338659759,), (1338659761,), (1338659765,), (1338659769,), (1338659772,), (1338659941,), (1338659990,), (1338659992,), (1338659995,), (1338659997,), (1338660017,), (1338660018,), (1338660020,), (1338660023,), (1338660025,), (1338660027,), (1338660044,), (1338660046,), (1338660048,), (1338660050,), (1338660131,), (1338660136,), (1338660137,), (1338660140,), (1338660200,), (1338660203,), (1338660205,), (1338660208,), (1338660211,), (1338660212,), (1338660455,), (1338660448,), (1338660451,), (1338660453,), (1338660507,), (1338660511,), (1338660519,), (1338660527,), (1338660535,), (1338660886,), (1338660889,), (1338660891,), (1338660896,), (1338660900,), (1338660944,), (1338660947,), (1338660950,), (1338661002,), (1338661554,), (1338661560,), (1338661566,), (1338661579,), (1338661685,), (1338661763,), (1338661799,), (1338661804,), (1338661833,), (1338661836,), (1338661839,), (1338661864,), (1338661867,), (1338661870,), (1338661960,), (1338661963,), (1338661969,), (1338662046,), (1338662050,), (1338662114,), (1338662117,), (1338662121,), (1338662123,), (1338662156,), (1338662162,), (1338662170,), (1338662179,), (1338662184,), (1338662254,), (1338662197,), (1338662200,), (1338662203,), (1338662249,), (1338662251,), (1338662414,), (1338662437,), (1338662441,), (1338662445,), (1338662499,), (1338662583,), (1338662589,), (1338662591,), (1338663051,), (1338663063,), (1338663186,), (1338663202,), (1338663327,), (1338663330,), (1338663336,), (1338663343,), (1338663347,), (1338663349,), (1338663376,), (1338663378,), (1338663381,), (1338663385,), (1338663388,), (1338663391,), (1338663404,), (1338663413,), (1338663415,), (1338663419,), (1338663439,), (1338663442,), (1338663445,), (1338663448,), (1338663482,), (1338663518,), (1338663523,), (1338663527,), (1338663531,), (1338663545,), (1338663547,), (1338663549,), (1338663551,), (1338663553,), (1338663578,), (1338663580,), (1338663582,), (1338664475,), (1338666178,), (1338666296,), (1338666852,), (1338667395,), (1338667397,), (1338667445,), (1338667448,), (1338667449,), (1338667467,), (1338667476,), (1338667507,), (1338668433,), (1338668436,), (1338668715,), (1338668718,), (1338668756,), (1338668802,), (1338668810,), (1338668817,), (1338668819,), (1338668865,), (1338668869,), (1338668872,), (1338668891,), (1338668977,), (1338668980,), (1338668983,), (1338668986,), (1338668989,), (1338668992,), (1338669003,), (1338669005,), (1338669007,), (1338669011,), (1338669067,), (1338669069,), (1338669071,), (1338669116,), (1338669119,), (1338669124,), (1338669153,), (1338669156,), (1338669157,), (1338669162,), (1338669164,), (1338669216,), (1338669194,), (1338669197,), (1338669200,), (1338669203,), (1338669518,), (1338669523,), (1338669529,), (1338669577,), (1338669717,), (1338669877,), (1338669882,), (1338669884,), (1338669887,), (1338669890,), (1338669915,), (1338669926,), (1338669935,), (1338669937,), (1338669940,), (1338669943,), (1338669969,), (1338669972,), (1338669975,), (1338669978,), (1338669980,), (1338669983,), (1338670001,), (1338670005,), (1338670008,), (1338670011,), (1338670061,), (1338670064,), (1338670067,), (1338670070,), (1338670072,), (1338670107,), (1338670112,), (1338670115,), (1338670169,), (1338670183,), (1338670228,), (1338670253,), (1338670263,), (1338670269,), (1338670339,), (1338670344,), (1338670347,), (1338670350,), (1338670353,), (1338670356,), (1338670405,), (1338670407,), (1338670412,), (1338670423,), (1338670524,), (1338670529,), (1338670555,), (1338670602,), (1338670615,), (1338670619,), (1338670656,), (1338670659,), (1338670661,), (1338670664,), (1338670667,), (1338670703,), (1338670705,), (1338670707,), (1338670713,), (1338670775,), (1338670821,), (1338670823,), (1338670826,), (1338670872,), (1338670848,), (1338670853,), (1338670861,), (1338670868,), (1338670885,), (1338670887,), (1338670889,), (1338670893,), (1338670934,), (1338670939,), (1338670945,), (1338670952,), (1338670962,), (1338671012,), (1338671014,), (1338671015,), (1338671019,), (1338671021,), (1338671026,), (1338671058,), (1338671060,), (1338671061,), (1338671063,), (1338671080,), (1338671085,), (1338671177,), (1338671180,), (1338671182,), (1338671184,), (1338671186,), (1338671494,), (1338671497,), (1338671501,), (1338671505,), (1338671511,), (1338671617,), (1338671625,), (1338671629,), (1338671631,), (1338671634,), (1338671637,), (1338671664,), (1338671666,), (1338671668,), (1338671672,), (1338671675,), (1338671679,), (1338671698,), (1338671700,), (1338671708,), (1338671711,), (1338671715,), (1338671730,), (1338671897,), (1338672068,), (1338672236,), (1338672404,), (1338672716,), (1338672720,), (1338672726,), (1338672734,), (1338672738,), (1338672742,), (1338672782,), (1338672922,), (1338673069,), (1338673176,), (1338673185,), (1338673311,), (1338673313,), (1338673319,), (1338673324,), (1338673328,), (1338673332,), (1338673373,), (1338673379,), (1338673416,), (1338673590,), (1338673694,), (1338673679,), (1338673682,), (1338673686,), (1338673690,), (1338673718,), (1338673722,), (1338673726,), (1338673729,), (1338673740,), (1338673784,), (1338673788,), (1338673791,), (1338673796,), (1338673805,), (1338673871,), (1338673876,), (1338673880,), (1338673883,), (1338673886,), (1338673890,), (1338673973,), (1338673976,), (1338673978,), (1338673986,), (1338674233,), (1338674235,), (1338674238,), (1338674241,), (1338674252,), (1338674255,), (1338674271,), (1338674291,), (1338674293,), (1338674295,), (1338674298,), (1338674301,), (1338674347,), (1338674350,), (1338674353,), (1338674356,), (1338674358,), (1338674377,), (1338674380,), (1338674382,), (1338674479,), (1338675441,), (1338675442,), (1338675486,), (1338675693,), (1338675716,), (1338675789,), (1338675992,), (1338676069,), (1338676228,), (1338676231,), (1338676234,), (1338676238,), (1338676477,), (1338676479,), (1338676481,), (1338676483,), (1338676486,), (1338676488,), (1338676536,), (1338676541,), (1338676547,), (1338676552,), (1338676560,), (1338676563,), (1338676564,), (1338676565,), (1338676568,), (1338676569,), (1338676571,), (1338676573,), (1338676575,), (1338676576,), (1338676605,), (1338676582,), (1338676587,), (1338676591,), (1338676596,), (1338676601,), (1338676618,), (1338676622,), (1338676626,), (1338676630,), (1338676634,), (1338676659,), (1338676663,), (1338676667,), (1338676673,), (1338676678,), (1338676682,), (1338676701,), (1338676712,), (1338676719,), (1338676725,), (1338676744,), (1338676747,), (1338676750,), (1338676755,), (1338677307,), (1338677330,), (1338677334,), (1338677362,), (1338677367,), (1338677375,), (1338677388,), (1338677393,), (1338677396,), (1338677400,), (1338677402,), (1338677437,), (1338677447,), (1338677448,), (1338677451,), (1338677454,), (1338677458,), (1338677477,), (1338677481,), (1338677486,), (1338677489,), (1338677513,), (1338677521,), (1338677525,), (1338677528,), (1338677531,), (1338677534,), (1338677568,), (1338677577,), (1338677585,), (1338677595,), (1338677633,), (1338677635,), (1338677637,), (1338677639,), (1338677641,), (1338677682,), (1338677686,), (1338677694,), (1338677697,), (1338677700,), (1338677703,), (1338677749,), (1338677754,), (1338677758,), (1338677793,), (1338677796,), (1338677800,), (1338677806,), (1338677818,), (1338677823,), (1338677869,), (1338677834,), (1338677842,), (1338677849,), (1338677859,), (1338677864,), (1338677906,), (1338678009,), (1338678099,), (1338678102,), (1338678595,), (1338678667,), (1338678735,), (1338678816,), (1338678844,), (1338678848,), (1338678912,), (1338678914,), (1338678916,), (1338678920,), (1338678956,), (1338678961,), (1338678963,), (1338678966,), (1338678971,), (1338678977,), (1338679005,), (1338679009,), (1338679011,), (1338679015,), (1338679018,), (1338679021,), (1338679046,), (1338679048,), (1338679050,), (1338679053,), (1338679110,), (1338679112,), (1338679114,), (1338679118,), (1338679122,), (1338679126,), (1338679144,), (1338679147,), (1338679149,), (1338679151,), (1338679154,), (1338679156,), (1338679173,), (1338679176,), (1338679178,), (1338679182,), (1338679232,), (1338679235,), (1338679238,), (1338679286,), (1338679337,), (1338679973,), (1338681057,), (1338681051,), (1338681054,), (1338681081,), (1338681083,), (1338682062,), (1338682063,), (1338682066,), (1338682104,), (1338682106,), (1338682108,), (1338682110,), (1338682112,), (1338682134,), (1338682135,), (1338682136,), (1338682138,), (1338682140,), (1338682143,), (1338682160,), (1338682165,), (1338682168,), (1338682173,), (1338682200,), (1338682204,), (1338682208,), (1338682212,), (1338682217,), (1338682220,), (1338682231,), (1338682233,), (1338682234,), (1338682237,), (1338682240,), (1338682298,), (1338682301,), (1338682304,), (1338682307,), (1338682310,), (1338682314,), (1338682387,), (1338682371,), (1338682374,), (1338682380,), (1338682408,), (1338682450,), (1338682458,), (1338682655,), (1338682672,), (1338682930,), (1338682932,), (1338682935,), (1338682939,), (1338682941,), (1338682944,), (1338682968,), (1338682970,), (1338682972,), (1338683151,), (1338683157,), (1338683161,), (1338683163,), (1338684832,), (1338684804,), (1338684860,), (1338684862,), (1338684865,), (1338684869,), (1338684873,), (1338684876,), (1338685029,), (1338685115,), (1338685119,), (1338685138,), (1338685139,), (1338685141,), (1338685145,), (1338685148,), (1338685195,), (1338685202,), (1338685215,), (1338685221,), (1338685223,), (1338685239,), (1338685240,), (1338685242,), (1338685245,), (1338685248,), (1338685252,), (1338685270,), (1338685272,), (1338685277,), (1338685280,), (1338685318,), (1338685336,), (1338685385,), (1338685453,), (1338685525,), (1338685604,), (1338686200,), (1338686411,), (1338686596,), (1338686724,), (1338686728,), (1338686759,), (1338686761,), (1338686916,), (1338686988,), (1338687128,), (1338687131,), (1338687133,), (1338687137,), (1338687147,), (1338687156,), (1338687217,), (1338687271,), (1338687321,), (1338687334,), (1338687427,), (1338687492,), (1338687520,), (1338687524,), (1338687630,), (1338687633,), (1338687635,), (1338687638,), (1338687641,), (1338687681,), (1338687703,), (1338687710,), (1338687724,), (1338687731,), (1338687747,), (1338687821,), (1338687804,), (1338687806,), (1338687808,), (1338687813,), (1338687817,), (1338688086,), (1338688163,), (1338688216,), (1338688218,), (1338688256,), (1338688258,), (1338688260,), (1338688357,), (1338688557,), (1338688728,), (1338688765,), (1338688768,), (1338688771,), (1338688954,), (1338688956,), (1338688958,), (1338688960,), (1338688980,), (1338688981,), (1338689060,), (1338689081,), (1338689191,), (1338689194,), (1338689197,), (1338689200,), (1338689231,), (1338689234,), (1338689237,), (1338689261,), (1338689263,), (1338689322,), (1338689324,), (1338689326,), (1338689327,), (1338689329,), (1338689332,), (1338689355,), (1338689357,), (1338689359,), (1338689362,), (1338689390,), (1338689391,), (1338689393,), (1338689430,), (1338689432,), (1338689434,), (1338689441,), (1338689471,), (1338689476,), (1338689477,), (1338689481,), (1338689485,), (1338689509,), (1338689511,), (1338689514,), (1338689519,), (1338689577,), (1338689555,), (1338689560,), (1338689563,), (1338689566,), (1338689569,), (1338689803,), (1338689881,), (1338689910,), (1338689918,), (1338689921,), (1338689940,), (1338689944,), (1338689949,), (1338689954,), (1338689960,), (1338689963,), (1338689982,), (1338689988,), (1338689997,), (1338690005,), (1338690035,), (1338690037,), (1338690071,), (1338690073,), (1338690075,), (1338690077,), (1338690080,), (1338690083,), (1338690099,), (1338690101,), (1338690105,), (1338690109,), (1338690132,), (1338690208,), (1338690223,), (1338690226,), (1338690229,), (1338690327,), (1338690335,), (1338690338,), (1338690342,), (1338690346,), (1338690368,), (1338690371,), (1338690375,), (1338690601,), (1338690607,), (1338690765,), (1338690767,), (1338690770,), (1338690772,), (1338690776,), (1338690781,), (1338690823,), (1338690830,), (1338690838,), (1338690855,), (1338690884,), (1338690897,), (1338690906,), (1338690910,), (1338690919,), (1338690923,), (1338690969,), (1338690965,), (1338690967,), (1338691060,), (1338691062,), (1338691065,), (1338691069,), (1338691072,), (1338691076,), (1338691120,), (1338691123,), (1338691126,), (1338691131,), (1338691135,), (1338691151,), (1338691156,), (1338691160,), (1338691164,), (1338691189,), (1338691197,), (1338691217,), (1338691403,), (1338692498,), (1338692502,), (1338692536,), (1338692546,), (1338692551,), (1338692555,), (1338692568,), (1338692585,), (1338692587,), (1338692591,), (1338692594,), (1338692599,), (1338692629,), (1338692633,), (1338692636,), (1338692691,), (1338693273,), (1338693278,), (1338693327,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20022025': {'nb_upload': 16, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20684204]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] map_info['map_portfolio_photo'] : {20684204: [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712]} final : True mtd_id 4302 list_pids : [1338641243, 1338633856, 1338633854, 1338633849, 1338633845, 1338633839, 1338633798, 1338633789, 1338633784, 1338633781, 1338633744, 1338633742, 1338633740, 1338633739, 1338633737, 1338633712] Looping around the photos to save general results len do output : 1 /20684204Didn'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, '2602976') ('4302', '20684204', '1338641243', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633856', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633854', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633849', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633845', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633839', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633798', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633789', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633784', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633781', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633744', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633742', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633740', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633739', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633737', None, None, None, None, None, '2602976') ('4302', None, None, None, None, None, None, None, '2602976') ('4302', '20684204', '1338633712', None, None, None, None, None, '2602976') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '20684204', 'None', None, None, None, None, '2602976'), ('4302', '20684204', '1338641243', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633856', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633854', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633849', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633845', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633839', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633798', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633789', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633784', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633781', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633744', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633742', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633740', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633739', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633737', None, None, None, None, None, '2602976'), ('4302', '20684204', '1338633712', None, None, None, None, None, '2602976')] time used for this insertion : 0.022630929946899414 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3960039615631104 time spend to save output : 0.022919654846191406 total time spend for step 5 : 2.4189236164093018 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 (2602976) 2.52user 1.62system 0:14.42elapsed 28%CPU (0avgtext+0avgdata 161300maxresident)k 760inputs+13584outputs (22major+78817minor)pagefaults 0swaps