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 : 3170794 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 (2585383) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2585383) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523199 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2585383'] with mtr_portfolio_ids : ['20523199'] and first list_photo_ids : [] new path : /proc/3170794/ Name: python3 Umask: 0002 State: R (running) Tgid: 3170794 Ngid: 0 Pid: 3170794 PPid: 3170793 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3170794 NSpid: 3170794 NSpgid: 3169301 NSsid: 3169301 VmPeak: 1106580 kB VmSize: 1106556 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97796 kB VmRSS: 97796 kB RssAnon: 59732 kB RssFile: 38064 kB RssShmem: 0 kB VmData: 865308 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3170794', 'Ngid': '0', 'Pid': '3170794', 'PPid': '3170793', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3170794', 'NSpid': '3170794', 'NSpgid': '3169301', 'NSsid': '3169301', 'VmPeak': '1106580 kB', 'VmSize': '1106556 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97796 kB', 'VmRSS': '97796 kB', 'RssAnon': '59732 kB', 'RssFile': '38064 kB', 'RssShmem': '0 kB', 'VmData': '865308 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '3170794', '1106580', '0', '1106556', '865308', '97796', b'', 'marlene', '2585383') 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 (20523199) 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 (2585383 ) ) 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 (20523199) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1337447788, 'portfolio_id': 20523199}, {'photo_id': 1337444859, 'portfolio_id': 20523199}, {'photo_id': 1337444858, 'portfolio_id': 20523199}, {'photo_id': 1337444856, 'portfolio_id': 20523199}, {'photo_id': 1337444825, 'portfolio_id': 20523199}, {'photo_id': 1337444822, 'portfolio_id': 20523199}, {'photo_id': 1337444821, 'portfolio_id': 20523199}, {'photo_id': 1337444819, 'portfolio_id': 20523199}, {'photo_id': 1337444744, 'portfolio_id': 20523199}, {'photo_id': 1337444742, 'portfolio_id': 20523199}, {'photo_id': 1337443000, 'portfolio_id': 20523199}, {'photo_id': 1337442898, 'portfolio_id': 20523199}, {'photo_id': 1337442670, 'portfolio_id': 20523199}, {'photo_id': 1337442668, 'portfolio_id': 20523199}, {'photo_id': 1337442667, 'portfolio_id': 20523199}, {'photo_id': 1337442591, 'portfolio_id': 20523199}, {'photo_id': 1337442579, 'portfolio_id': 20523199}, {'photo_id': 1337442576, 'portfolio_id': 20523199}, {'photo_id': 1337442573, 'portfolio_id': 20523199}, {'photo_id': 1337442571, 'portfolio_id': 20523199}, {'photo_id': 1337442532, 'portfolio_id': 20523199}, {'photo_id': 1337442526, 'portfolio_id': 20523199}, {'photo_id': 1337442514, 'portfolio_id': 20523199}] map_portfolio_id_photo_id: {20523199: [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514]} ##### 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.5296728610992432 #### 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 14 06:09:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20523199) 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 : 20523199 get user id for portfolio 20523199 get sub ptf for main ptf 20523199, type 3726 and hashtags ['kraft', 'papier', 'plastique', 'Carton_brun', 'environnement', 'metal', 'Carton_gris', 'Teint_Dans_La_Masse', 'cartonnette', 'mal_croppe', 'flou', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20523199 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_brun','environnement','metal','Carton_gris','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20523199 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_brun','environnement','metal','Carton_gris','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20523199, 'sub_port_id': 20523203, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190008, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'flou': {'main_port_id': 20523199, 'sub_port_id': 20523204, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190009, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'cartonnette': {'main_port_id': 20523199, 'sub_port_id': 20523205, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190010, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'environnement': {'main_port_id': 20523199, 'sub_port_id': 20523206, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190011, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'mal_croppe': {'main_port_id': 20523199, 'sub_port_id': 20523207, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190012, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'kraft': {'main_port_id': 20523199, 'sub_port_id': 20523208, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190013, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'Carton_brun': {'main_port_id': 20523199, 'sub_port_id': 20523209, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190014, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 20523199, 'sub_port_id': 20523210, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190015, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'Carton_gris': {'main_port_id': 20523199, 'sub_port_id': 20523211, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190016, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'autre_refus': {'main_port_id': 20523199, 'sub_port_id': 20523212, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190017, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'plastique': {'main_port_id': 20523199, 'sub_port_id': 20523213, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190018, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}, 'metal': {'main_port_id': 20523199, 'sub_port_id': 20523214, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190019, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523203 , 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=20523199 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 (20523203) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523204 , 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=20523199 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 (20523204) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523205 , 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=20523199 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 (20523205) result : ((1337444517,), (1337444894,), (1337444895,), (1337444907,), (1337444908,), (1337444909,), (1337444915,), (1337448394,), (1337448395,), (1337448396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523206 , 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=20523199 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 (20523206) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523207 , 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=20523199 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 (20523207) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523208 , 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=20523199 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 (20523208) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523209 , 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=20523199 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 (20523209) result : ((1337444268,), (1337444269,), (1337444897,), (1337444916,), (1337448438,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523210 , 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=20523199 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 (20523210) result : ((1337444265,), (1337444899,), (1337444900,), (1337444901,), (1337448385,), (1337448386,), (1337448387,), (1337448388,), (1337448431,), (1337448432,), (1337448433,), (1337448434,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523211 , 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=20523199 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 (20523211) result : ((1337444893,), (1337444905,), (1337444906,), (1337444914,), (1337448392,), (1337448393,), (1337448437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523212 , 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=20523199 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 (20523212) result : ((1337444267,), (1337444490,), (1337444892,), (1337444902,), (1337444903,), (1337448390,), (1337448391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523213 , 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=20523199 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 (20523213) result : ((1337444270,), (1337444547,), (1337448440,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20523214 , 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=20523199 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 (20523214) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20523199) result : ((1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,)) 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 (1337443000) and cspi.crop_hashtag_id = chi.id; 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`=20523199 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_brun','environnement','metal','Carton_gris','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20523199 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_brun','environnement','metal','Carton_gris','Teint_Dans_La_Masse','cartonnette','mal_croppe','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20523199, 'sub_port_id': 20523215, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190020, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'flou': {'main_port_id': 20523199, 'sub_port_id': 20523216, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190021, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'cartonnette': {'main_port_id': 20523199, 'sub_port_id': 20523217, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190022, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'environnement': {'main_port_id': 20523199, 'sub_port_id': 20523218, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190023, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'mal_croppe': {'main_port_id': 20523199, 'sub_port_id': 20523219, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190024, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'kraft': {'main_port_id': 20523199, 'sub_port_id': 20523220, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190025, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'Carton_brun': {'main_port_id': 20523199, 'sub_port_id': 20523221, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190026, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20523199, 'sub_port_id': 20523222, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190027, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'Carton_gris': {'main_port_id': 20523199, 'sub_port_id': 20523223, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190028, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'autre_refus': {'main_port_id': 20523199, 'sub_port_id': 20523224, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190029, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'plastique': {'main_port_id': 20523199, 'sub_port_id': 20523225, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190030, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 18, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}, 'metal': {'main_port_id': 20523199, 'sub_port_id': 20523226, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13190031, 'last_updated_at': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 13, 21, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 13, 21, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523208 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523209 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20523226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20523214 lien utilise dans velours : https://www.fotonower.com/velours/20523215,20523216,20523217,20523218,20523219,20523220,20523221,20523222,20523223,20523224,20523225,20523226?tags=papier,flou,cartonnette,environnement,mal_croppe,kraft,Carton_brun,Teint_Dans_La_Masse,Carton_gris,autre_refus,plastique,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20523199]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] map_info['map_portfolio_photo'] : {20523199: [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514]} final : False mtd_id 4302 list_pids : [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] Looping around the photos to save general results len do output : 1 /20523199. 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, '2585383') ('4302', '20523199', '1337447788', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444859', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444858', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444856', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444825', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444822', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444821', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444819', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444744', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444742', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337443000', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442898', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442670', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442668', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442667', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442591', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442579', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442576', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442573', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442571', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442532', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442526', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442514', None, None, None, None, None, '2585383') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '20523199', "{'papier': 20523203, 'flou': 20523204, 'cartonnette': 20523205, 'environnement': 20523206, 'mal_croppe': 20523207, 'kraft': 20523208, 'Carton_brun': 20523209, 'Teint_Dans_La_Masse': 20523210, 'Carton_gris': 20523211, 'autre_refus': 20523212, 'plastique': 20523213, 'metal': 20523214}", None, None, None, None, '2585383'), ('4302', '20523199', '1337447788', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444859', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444858', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444856', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444825', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444822', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444821', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444819', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444744', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444742', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337443000', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442898', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442670', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442668', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442667', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442591', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442579', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442576', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442573', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442571', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442532', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442526', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442514', None, None, None, None, None, '2585383')] time used for this insertion : 0.01778697967529297 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.342597484588623 time spend to save output : 0.018131494522094727 total time spend for step 1 : 1.3607289791107178 step2:final Fri Feb 14 06:09:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (20523199) 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 20523199 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1337442532,1337442526,1337442514,1337442591,1337442579,1337442576,1337442573,1337442571,1337443000,1337442898,1337442670,1337442668,1337442667,1337444744,1337444742,1337444825,1337444822,1337444821,1337444819,1337444859,1337444858,1337444856,1337447788); 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([20523199]) Inside saveOutput : final : False verbose : True original output for save of step final : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} new output for save of step final : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] map_info['map_portfolio_photo'] : {20523199: [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514]} final : False mtd_id 4302 list_pids : [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] Looping around the photos to save general results len do output : 23 /1337447788.Didn't retrieve data . /1337444859.Didn't retrieve data . /1337444858.Didn't retrieve data . /1337444856.Didn't retrieve data . /1337444825.Didn't retrieve data . /1337444822.Didn't retrieve data . /1337444821.Didn't retrieve data . /1337444819.Didn't retrieve data . /1337444744.Didn't retrieve data . /1337444742.Didn't retrieve data . /1337443000.Didn't retrieve data . /1337442898.Didn't retrieve data . /1337442670.Didn't retrieve data . /1337442668.Didn't retrieve data . /1337442667.Didn't retrieve data . /1337442591.Didn't retrieve data . /1337442579.Didn't retrieve data . /1337442576.Didn't retrieve data . /1337442573.Didn't retrieve data . /1337442571.Didn't retrieve data . /1337442532.Didn't retrieve data . /1337442526.Didn't retrieve data . /1337442514.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, '2585383') ('4302', '20523199', '1337447788', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444859', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444858', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444856', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444825', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444822', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444821', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444819', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444744', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444742', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337443000', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442898', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442670', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442668', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442667', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442591', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442579', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442576', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442573', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442571', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442532', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442526', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442514', None, None, None, None, None, '2585383') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 69 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', '20523199', '1337447788', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444859', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444858', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444856', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444825', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444822', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444821', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444819', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444744', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337444742', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337443000', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442898', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442670', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442668', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442667', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442591', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442579', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442576', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442573', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442571', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442532', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442526', '0.035691100158827836', None, None, None, None, '2585383'), ('4302', '20523199', '1337442514', '0.035691100158827836', None, None, None, None, '2585383')] time used for this insertion : 0.01711750030517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.21124863624572754 time spend to save output : 0.01861739158630371 total time spend for step 2 : 0.22986602783203125 step3:velours_tree Fri Feb 14 06:10: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 : {20523199: [{'papier': 20523203, 'flou': 20523204, 'cartonnette': 20523205, 'environnement': 20523206, 'mal_croppe': 20523207, 'kraft': 20523208, 'Carton_brun': 20523209, 'Teint_Dans_La_Masse': 20523210, 'Carton_gris': 20523211, 'autre_refus': 20523212, 'plastique': 20523213, 'metal': 20523214}]} input_args_next_step : {20523199: ()} output_args : {20523199: [{'papier': 20523203, 'flou': 20523204, 'cartonnette': 20523205, 'environnement': 20523206, 'mal_croppe': 20523207, 'kraft': 20523208, 'Carton_brun': 20523209, 'Teint_Dans_La_Masse': 20523210, 'Carton_gris': 20523211, 'autre_refus': 20523212, 'plastique': 20523213, 'metal': 20523214}]} args : 20523199 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': 20523203, 'flou': 20523204, 'cartonnette': 20523205, 'environnement': 20523206, 'mal_croppe': 20523207, 'kraft': 20523208, 'Carton_brun': 20523209, 'Teint_Dans_La_Masse': 20523210, 'Carton_gris': 20523211, 'autre_refus': 20523212, 'plastique': 20523213, 'metal': 20523214},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20523199) 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([20523199]) 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.29448628425598145 time spend to save output : 5.745887756347656e-05 total time spend for step 3 : 0.2945437431335449 step4:send_mail_cod Fri Feb 14 06:10: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 ! complete output_args for input 2 : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} input_args_next_step : {1337447788: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337447788 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444859 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444858 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444856 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444825 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444822 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444821 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444819 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444744 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337444742 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337443000 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442898 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442670 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442668 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442667 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442591 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442579 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442576 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442573 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442571 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442532 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442526 depend.output_id : 0 input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ()} output_args : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',)} args : 1337442514 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 : {20523199: [{'papier': 20523203, 'flou': 20523204, 'cartonnette': 20523205, 'environnement': 20523206, 'mal_croppe': 20523207, 'kraft': 20523208, 'Carton_brun': 20523209, 'Teint_Dans_La_Masse': 20523210, 'Carton_gris': 20523211, 'autre_refus': 20523212, 'plastique': 20523213, 'metal': 20523214}]} input_args_next_step : {1337447788: ('0.035691100158827836',), 1337444859: ('0.035691100158827836',), 1337444858: ('0.035691100158827836',), 1337444856: ('0.035691100158827836',), 1337444825: ('0.035691100158827836',), 1337444822: ('0.035691100158827836',), 1337444821: ('0.035691100158827836',), 1337444819: ('0.035691100158827836',), 1337444744: ('0.035691100158827836',), 1337444742: ('0.035691100158827836',), 1337443000: ('0.035691100158827836',), 1337442898: ('0.035691100158827836',), 1337442670: ('0.035691100158827836',), 1337442668: ('0.035691100158827836',), 1337442667: ('0.035691100158827836',), 1337442591: ('0.035691100158827836',), 1337442579: ('0.035691100158827836',), 1337442576: ('0.035691100158827836',), 1337442573: ('0.035691100158827836',), 1337442571: ('0.035691100158827836',), 1337442532: ('0.035691100158827836',), 1337442526: ('0.035691100158827836',), 1337442514: ('0.035691100158827836',), 20523199: ()} output_args : {20523199: [{'papier': 20523203, 'flou': 20523204, 'cartonnette': 20523205, 'environnement': 20523206, 'mal_croppe': 20523207, 'kraft': 20523208, 'Carton_brun': 20523209, 'Teint_Dans_La_Masse': 20523210, 'Carton_gris': 20523211, 'autre_refus': 20523212, 'plastique': 20523213, 'metal': 20523214}]} args : 20523199 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 :24, first value : ('0.035691100158827836',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20523199) 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 (1337447788,1337444859,1337444858,1337444856,1337444825,1337444822,1337444821,1337444819,1337444744,1337444742,1337443000,1337442898,1337442670,1337442668,1337442667,1337442591,1337442579,1337442576,1337442573,1337442571,1337442532,1337442526,1337442514) Found this number of photos: 23 ##### Call download_photos : nb_thread : 5 begin to download photo : 1337442514 begin to download photo : 1337442576 begin to download photo : 1337442670 begin to download photo : 1337444819 begin to download photo : 1337444858 download finish for photo 1337444858 begin to download photo : 1337444859 download finish for photo 1337442670 begin to download photo : 1337442898 download finish for photo 1337442576 begin to download photo : 1337442579 download finish for photo 1337444819 begin to download photo : 1337444821 download finish for photo 1337442514 begin to download photo : 1337442526 download finish for photo 1337442579 begin to download photo : 1337442591 download finish for photo 1337444859 begin to download photo : 1337447788 download finish for photo 1337442898 begin to download photo : 1337443000 download finish for photo 1337444821 begin to download photo : 1337444822 download finish for photo 1337442591 begin to download photo : 1337442667 download finish for photo 1337447788 download finish for photo 1337442526 begin to download photo : 1337442532 download finish for photo 1337443000 begin to download photo : 1337444742 download finish for photo 1337444822 begin to download photo : 1337444825 download finish for photo 1337442667 begin to download photo : 1337442668 download finish for photo 1337444742 begin to download photo : 1337444744 download finish for photo 1337442532 begin to download photo : 1337442571 download finish for photo 1337444825 begin to download photo : 1337444856 download finish for photo 1337442668 download finish for photo 1337444744 download finish for photo 1337442571 begin to download photo : 1337442573 download finish for photo 1337444856 download finish for photo 1337442573 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette205232041739509801/ length of list_filenames : 23 ; length of list_pids : 23 ; length of list_args : 23 results_Auto_P20523199_14-02-2025_06_10_01.pdf 20523204 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=20523204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205232041739509801 20523205 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=20523205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337444517: '1739478073_1618842_1337442532_6607d2de6488180d89a85f101347669f_rle_crop_3673843321_0.png', 1337444894: '1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844752_0.png', 1337444895: '1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844755_0.png', 1337444907: '1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844786_0.png', 1337444908: '1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844791_0.png', 1337444909: '1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844801_0.png', 1337444915: '1739478331_1621969_1337444742_9159adcf01046169d86dea8b61ea738d_rle_crop_3673846481_0.png', 1337448394: '1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844786_0.png', 1337448395: '1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844791_0.png', 1337448396: '1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844801_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/74281f7456b8b205c23cbae3f035996a_72946181.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0d6d3529d15ec065e468189f959e02f4_12767197.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/68277e36a5e0444f3c2cb312cfe7ca90_84999774.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f0210ab2c8e2a9930515d34d6f8e1cbe_81764503.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/baed3fbd0009ea734742e32de35b5aa4_79525565.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d1bcf006e8937517aa107ae79e3e47df_81393254.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/7c1a4656b62e7b9eeab6a6f4931846d1_23189325.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f0210ab2c8e2a9930515d34d6f8e1cbe_13379597.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/baed3fbd0009ea734742e32de35b5aa4_29243417.png change filename to text .imagette205232051739509801/ imagette205232051739509801/1739478331_1621969_1337444742_9159adcf01046169d86dea8b61ea738d_rle_crop_3673846481_0.png.png imagette205232051739509801/1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844801_0.png.png imagette205232051739509801/1739478073_1618842_1337442532_6607d2de6488180d89a85f101347669f_rle_crop_3673843321_0.png.png imagette205232051739509801/1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844752_0.png.png imagette205232051739509801/1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844791_0.png.png imagette205232051739509801/1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844791_0.png.png imagette205232051739509801/1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844786_0.png.png imagette205232051739509801/1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844786_0.png.png imagette205232051739509801/1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844801_0.png.png imagette205232051739509801/1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844755_0.png.png imagette205232071739509802/ imagette205232081739509802/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d1bcf006e8937517aa107ae79e3e47df_47942382.png imagette205232051739509801 20523207 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=20523207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205232071739509802 20523208 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=20523208 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205232081739509802 20523212 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=20523212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337444267: '1739478052_1618598_1337442668_3315aede9c730c9321f54a1ef67718d4_rle_crop_3673843659_0.png', 1337444490: '1739478073_1618842_1337442532_6607d2de6488180d89a85f101347669f_rle_crop_3673843320_0.png', 1337444892: '1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844757_0.png', 1337444902: '1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844804_0.png', 1337444903: '1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844806_0.png', 1337448390: '1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844804_0.png', 1337448391: '1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844806_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/70700f965b518fc44c5833d020687f59_28757567.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/767615b0f0ffa185f402dc80a2b5f341_50132702.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/77b278c7832e2319551e611c818dd872_56078164.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/5acfafc33a2b884717a430eb6ffedc42_65951662.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0a572fdf0a2137e5b6bf973c18579861_61656762.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/5acfafc33a2b884717a430eb6ffedc42_43962594.png change filename to text .imagette205232121739509802/ imagette205232121739509802/1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844804_0.png.png imagette205232121739509802/1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844806_0.png.png imagette205232121739509802/1739478073_1618842_1337442532_6607d2de6488180d89a85f101347669f_rle_crop_3673843320_0.png.png imagette205232121739509802/1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844757_0.png.png imagette205232121739509802/1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844806_0.png.png imagette205232121739509802/1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844804_0.png.png imagette205232121739509802/1739478052_1618598_1337442668_3315aede9c730c9321f54a1ef67718d4_rle_crop_3673843659_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0a572fdf0a2137e5b6bf973c18579861_12717075.png imagette205232121739509802 20523213 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=20523213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337444270: '1739478052_1618598_1337442668_3315aede9c730c9321f54a1ef67718d4_rle_crop_3673843667_0.png', 1337444547: '1739478073_1618842_1337442532_6607d2de6488180d89a85f101347669f_rle_crop_3673843329_0.png', 1337448440: '1739480494_1671824_1337442576_5407bfcc733342b277a371477da517da_rle_crop_3673868900_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9e39c976f650634365f077f582511eb6_15771145.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a1fd79e1d366587f36bff568235a963f_54609512.png change filename to text .imagette205232131739509802/ imagette205232131739509802/1739478073_1618842_1337442532_6607d2de6488180d89a85f101347669f_rle_crop_3673843329_0.png.png imagette205232131739509802/1739480494_1671824_1337442576_5407bfcc733342b277a371477da517da_rle_crop_3673868900_0.png.png imagette205232131739509802/1739478052_1618598_1337442668_3315aede9c730c9321f54a1ef67718d4_rle_crop_3673843667_0.png.png imagette205232141739509803/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/58628dda44dbe5a2f58ef1e13b3ef42b_56847314.png imagette205232131739509802 20523214 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=20523214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette205232141739509803 20523209 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=20523209 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337444268: '1739478052_1618598_1337442670_7a8d1d2c33f2ee8c7e4e79e6fddb0cac_rle_crop_3673843636_0.png', 1337444269: '1739478052_1618598_1337442670_7a8d1d2c33f2ee8c7e4e79e6fddb0cac_rle_crop_3673843635_0.png', 1337444897: '1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844753_0.png', 1337444916: '1739478331_1621969_1337444742_9159adcf01046169d86dea8b61ea738d_rle_crop_3673846482_0.png', 1337448438: '1739480494_1671824_1337442571_b4c9c30ba07906ab9740f0e94608bc6a_rle_crop_3673868981_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/27e7a65cb5aece599caec9764dcec6d0_8382932.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/0242a7049bef87062bcca81b893d74a1_96751600.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/bef7f6b58548f13170b063ee353b476b_51893784.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a8c9b56527496e73c25f070b6566831e_27363192.png change filename to text .imagette205232091739509803/ imagette205232091739509803/1739478052_1618598_1337442670_7a8d1d2c33f2ee8c7e4e79e6fddb0cac_rle_crop_3673843636_0.png.png imagette205232091739509803/1739480494_1671824_1337442571_b4c9c30ba07906ab9740f0e94608bc6a_rle_crop_3673868981_0.png.png imagette205232091739509803/1739478052_1618598_1337442670_7a8d1d2c33f2ee8c7e4e79e6fddb0cac_rle_crop_3673843635_0.png.png imagette205232091739509803/1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844753_0.png.png imagette205232091739509803/1739478331_1621969_1337444742_9159adcf01046169d86dea8b61ea738d_rle_crop_3673846482_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/b2e467bd9cb50e2605479679c5f464bb_40547486.png imagette205232091739509803 20523210 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=20523210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337444265: '1739478052_1618598_1337442668_3315aede9c730c9321f54a1ef67718d4_rle_crop_3673843663_0.png', 1337444899: '1739478292_1621031_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844773_0.png', 1337444900: '1739478292_1621031_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844770_0.png', 1337444901: '1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844809_0.png', 1337448385: '1739480434_1652046_1337444859_d0e104bf9f11b1b4fd2db005e9254f29_rle_crop_3673862138_0.png', 1337448386: '1739480434_1652046_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844773_0.png', 1337448387: '1739480434_1652046_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844770_0.png', 1337448388: '1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844809_0.png', 1337448431: '1739480494_1671824_1337443000_beef963fb4e1cf08b6f191da42865c5f_rle_crop_3673868882_0.png', 1337448432: '1739480494_1671824_1337443000_beef963fb4e1cf08b6f191da42865c5f_rle_crop_3673868881_0.png', 1337448433: '1739480494_1671824_1337442573_11bd9cb97918d5f7fec1577fb7c78ace_rle_crop_3673868971_0.png', 1337448434: '1739480494_1671824_1337442571_b4c9c30ba07906ab9740f0e94608bc6a_rle_crop_3673868985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/188cfa24366e70c6a0772987a2cd4527_15652718.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/45d42b089d2b0e21ba6fd8c687e278ba_84868468.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f1590c5be33484bba9befed4a75e350b_96969284.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a6027f00bb93f8dbafa53a148f372c20_4056119.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/5b8ce864e2a6cdc9060ffb5ca7a01988_14687438.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/45d42b089d2b0e21ba6fd8c687e278ba_93189629.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/f1590c5be33484bba9befed4a75e350b_46198437.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/a6027f00bb93f8dbafa53a148f372c20_77664317.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/47a49fca67242b53bfc23d53dbe546cd_10500405.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/705914e9abece1f341859a2dc7dd1ae4_65434071.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/e96f34a5a568dad831ed40509b8e8aa5_75949877.png change filename to text .imagette205232101739509803/ imagette205232101739509803/1739480434_1652046_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844770_0.png.png imagette205232101739509803/1739478292_1621031_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844809_0.png.png imagette205232101739509803/1739480434_1652046_1337444859_d0e104bf9f11b1b4fd2db005e9254f29_rle_crop_3673862138_0.png.png imagette205232101739509803/1739480494_1671824_1337443000_beef963fb4e1cf08b6f191da42865c5f_rle_crop_3673868882_0.png.png imagette205232101739509803/1739478052_1618598_1337442668_3315aede9c730c9321f54a1ef67718d4_rle_crop_3673843663_0.png.png imagette205232101739509803/1739480494_1671824_1337442571_b4c9c30ba07906ab9740f0e94608bc6a_rle_crop_3673868985_0.png.png imagette205232101739509803/1739480494_1671824_1337443000_beef963fb4e1cf08b6f191da42865c5f_rle_crop_3673868881_0.png.png imagette205232101739509803/1739478292_1621031_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844770_0.png.png imagette205232101739509803/1739480494_1671824_1337442573_11bd9cb97918d5f7fec1577fb7c78ace_rle_crop_3673868971_0.png.png imagette205232101739509803/1739480434_1652046_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844773_0.png.png imagette205232101739509803/1739478292_1621031_1337444822_cf2429b7ebb82f41be0150d75773d8e1_rle_crop_3673844773_0.png.png imagette205232101739509803/1739480434_1652046_1337444819_e4b599e6b173cc73164fdba9c88c4ffe_rle_crop_3673844809_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/1fad0edf6e09f831ea3ad4e5ff91a441_94649576.png imagette205232101739509803 20523211 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=20523211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1337444893: '1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844751_0.png', 1337444905: '1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844784_0.png', 1337444906: '1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844788_0.png', 1337444914: '1739478331_1621969_1337444825_1aee1c29e5c8af9bf03f4a9505f2b9f1_rle_crop_3673845006_0.png', 1337448392: '1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844784_0.png', 1337448393: '1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844788_0.png', 1337448437: '1739480494_1671824_1337443000_beef963fb4e1cf08b6f191da42865c5f_rle_crop_3673868884_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/1a011dc2764a9e2856ed0936d94f50e6_23847928.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9985cc70576c57f9f6b1e1acc60493b3_10033636.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d6d989c20ef8bc68c3192ccbe2bb1bb5_48920951.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/842221f246ac915caf27dfda76a7c2c5_5674009.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/9985cc70576c57f9f6b1e1acc60493b3_76297249.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d6d989c20ef8bc68c3192ccbe2bb1bb5_32490598.png change filename to text .imagette205232111739509804/ imagette205232111739509804/1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844784_0.png.png imagette205232111739509804/1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844784_0.png.png imagette205232111739509804/1739478292_1621031_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844788_0.png.png imagette205232111739509804/1739480434_1652046_1337444821_a105d7ac3a6a00b2e0de443932eb70a4_rle_crop_3673844788_0.png.png imagette205232111739509804/1739480494_1671824_1337443000_beef963fb4e1cf08b6f191da42865c5f_rle_crop_3673868884_0.png.png imagette205232111739509804/1739478312_1621722_1337444744_bfd84f1aace72ffe433d8845101726fa_rle_crop_3673844751_0.png.png imagette205232111739509804/1739478331_1621969_1337444825_1aee1c29e5c8af9bf03f4a9505f2b9f1_rle_crop_3673845006_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/7ff7d9b793cb61760f3073fcd8a2c0c3_5429492.png imagette205232111739509804 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20523199 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20523215,20523216,20523217,20523218,20523219,20523220,20523221,20523222,20523223,20523224,20523225,20523226?tags=papier,flou,cartonnette,environnement,mal_croppe,kraft,Carton_brun,Teint_Dans_La_Masse,Carton_gris,autre_refus,plastique,metal your option no_mail is active, we will not send the real mail to your client args[1337447788] : ('0.035691100158827836',) no score found for photo 1337447788 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444859] : ('0.035691100158827836',) no score found for photo 1337444859 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444858] : ('0.035691100158827836',) no score found for photo 1337444858 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444856] : ('0.035691100158827836',) no score found for photo 1337444856 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444825] : ('0.035691100158827836',) no score found for photo 1337444825 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444822] : ('0.035691100158827836',) no score found for photo 1337444822 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444821] : ('0.035691100158827836',) no score found for photo 1337444821 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444819] : ('0.035691100158827836',) no score found for photo 1337444819 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444744] : ('0.035691100158827836',) no score found for photo 1337444744 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337444742] : ('0.035691100158827836',) no score found for photo 1337444742 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337443000] : ('0.035691100158827836',) no score found for photo 1337443000 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442898] : ('0.035691100158827836',) no score found for photo 1337442898 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442670] : ('0.035691100158827836',) no score found for photo 1337442670 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442668] : ('0.035691100158827836',) no score found for photo 1337442668 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442667] : ('0.035691100158827836',) no score found for photo 1337442667 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442591] : ('0.035691100158827836',) no score found for photo 1337442591 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442579] : ('0.035691100158827836',) no score found for photo 1337442579 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442576] : ('0.035691100158827836',) no score found for photo 1337442576 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442573] : ('0.035691100158827836',) no score found for photo 1337442573 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442571] : ('0.035691100158827836',) no score found for photo 1337442571 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442532] : ('0.035691100158827836',) no score found for photo 1337442532 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442526] : ('0.035691100158827836',) no score found for photo 1337442526 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com args[1337442514] : ('0.035691100158827836',) no score found for photo 1337442514 apple ('0.035691100158827836',) We are sending mail with results at report@fotonower.com refus_total : 0.035691100158827836 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=20523199 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_P20523199_14-02-2025_06_10_01.pdf results_Auto_P20523199_14-02-2025_06_10_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20523199_14-02-2025_06_10_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20523199','results_Auto_P20523199_14-02-2025_06_10_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20523199_14-02-2025_06_10_01.pdf','pdf','','0.28','0.035691100158827836') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20523199]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] map_info['map_portfolio_photo'] : {20523199: [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514]} final : False mtd_id 4302 list_pids : [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] 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, '2585383') ('4302', '20523199', '1337447788', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444859', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444858', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444856', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444825', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444822', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444821', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444819', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444744', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444742', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337443000', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442898', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442670', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442668', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442667', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442591', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442579', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442576', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442573', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442571', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442532', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442526', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442514', None, None, None, None, None, '2585383') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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', '20523199', '1337447788', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444859', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444858', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444856', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444825', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444822', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444821', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444819', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444744', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444742', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337443000', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442898', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442670', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442668', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442667', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442591', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442579', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442576', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442573', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442571', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442532', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442526', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442514', None, None, None, None, None, '2585383')] time used for this insertion : 0.01584458351135254 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.628545761108398 time spend to save output : 0.01613306999206543 total time spend for step 4 : 6.644678831100464 step5:split_time_score Fri Feb 14 06:10: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 : ['20523199'] 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 : [('20523199',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20523199) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1337444858: {'path': 'temp/1739509800_3170794_1337444858_394bafcd0d43be0e1bc31a79b12bc9ec.jpg', 'extension': 'jpg'}, 1337444859: {'path': 'temp/1739509800_3170794_1337444859_d0e104bf9f11b1b4fd2db005e9254f29.jpg', 'extension': 'jpg'}, 1337447788: {'path': 'temp/1739509800_3170794_1337447788_02fd2d61894afbc12cda5d48da713be0.jpg', 'extension': 'jpg'}, 1337442576: {'path': 'temp/1739509800_3170794_1337442576_5407bfcc733342b277a371477da517da.jpg', 'extension': 'jpg'}, 1337442579: {'path': 'temp/1739509800_3170794_1337442579_5e9d4e82184cd5695f1d039c04e833d0.jpg', 'extension': 'jpg'}, 1337442591: {'path': 'temp/1739509800_3170794_1337442591_affc97269077d6956a8680db549ed057.jpg', 'extension': 'jpg'}, 1337442667: {'path': 'temp/1739509800_3170794_1337442667_19d2d6cec4ced2a97526c9c5737b4592.jpg', 'extension': 'jpg'}, 1337442668: {'path': 'temp/1739509800_3170794_1337442668_3315aede9c730c9321f54a1ef67718d4.jpg', 'extension': 'jpg'}, 1337442670: {'path': 'temp/1739509800_3170794_1337442670_7a8d1d2c33f2ee8c7e4e79e6fddb0cac.jpg', 'extension': 'jpg'}, 1337442898: {'path': 'temp/1739509800_3170794_1337442898_f23515914a084cfeb409d5af308ef33f.jpg', 'extension': 'jpg'}, 1337443000: {'path': 'temp/1739509800_3170794_1337443000_beef963fb4e1cf08b6f191da42865c5f.jpg', 'extension': 'jpg'}, 1337444742: {'path': 'temp/1739509800_3170794_1337444742_9159adcf01046169d86dea8b61ea738d.jpg', 'extension': 'jpg'}, 1337444744: {'path': 'temp/1739509800_3170794_1337444744_bfd84f1aace72ffe433d8845101726fa.jpg', 'extension': 'jpg'}, 1337444819: {'path': 'temp/1739509800_3170794_1337444819_e4b599e6b173cc73164fdba9c88c4ffe.jpg', 'extension': 'jpg'}, 1337444821: {'path': 'temp/1739509800_3170794_1337444821_a105d7ac3a6a00b2e0de443932eb70a4.jpg', 'extension': 'jpg'}, 1337444822: {'path': 'temp/1739509800_3170794_1337444822_cf2429b7ebb82f41be0150d75773d8e1.jpg', 'extension': 'jpg'}, 1337444825: {'path': 'temp/1739509800_3170794_1337444825_1aee1c29e5c8af9bf03f4a9505f2b9f1.jpg', 'extension': 'jpg'}, 1337444856: {'path': 'temp/1739509800_3170794_1337444856_48d6c94fe708bddfb436aa7aaa1e3dec.jpg', 'extension': 'jpg'}, 1337442514: {'path': 'temp/1739509800_3170794_1337442514_d04fa32418f54557cba47e64861371a7.jpg', 'extension': 'jpg'}, 1337442526: {'path': 'temp/1739509800_3170794_1337442526_28c631ee8d79ec96fe59192a4f257883.jpg', 'extension': 'jpg'}, 1337442532: {'path': 'temp/1739509800_3170794_1337442532_6607d2de6488180d89a85f101347669f.jpg', 'extension': 'jpg'}, 1337442571: {'path': 'temp/1739509800_3170794_1337442571_b4c9c30ba07906ab9740f0e94608bc6a.jpg', 'extension': 'jpg'}, 1337442573: {'path': 'temp/1739509800_3170794_1337442573_11bd9cb97918d5f7fec1577fb7c78ace.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 = 20523199; (('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 = 20523199 group by h (('21', 23),) 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=20523199 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 (20523199) 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 (20523199) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13022025 20523199 Nombre de photos uploadées : 23 / 23040 (0%) 13022025 20523199 Nombre de photos taguées (types de déchets): 0 / 23 (0%) 13022025 20523199 Nombre de photos taguées (volume) : 0 / 23 (0%) [{'photo_id': 1337442532, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/6607d2de6488180d89a85f101347669f.jpg', 'username': None, 'uploaded_at': 1739477768, 'text': 'image_13022025_21_15_04_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337442526, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/28c631ee8d79ec96fe59192a4f257883.jpg', 'username': None, 'uploaded_at': 1739477768, 'text': 'image_13022025_21_15_14_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337442514, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/d04fa32418f54557cba47e64861371a7.jpg', 'username': None, 'uploaded_at': 1739477768, 'text': 'image_13022025_21_15_44_010141m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1337442591, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/13/affc97269077d6956a8680db549ed057.jpg', 'username': None, 'uploaded_at': 1739477827, 'text': 'image_13022025_21_15_54_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ??????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008375644683837891 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20523199, '2025-02-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1599443,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02813863754272461 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= 1599443 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20496702, 'dashboard_result_id': 8885134, '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_P20496702_14-02-2025_05_34_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20496703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20496704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20496705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20496706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20496707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20496708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20496709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20496710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20496711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20496712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20496713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20496714, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20496893, 'dashboard_result_id': 8885135, '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_P20496893_14-02-2025_05_35_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20496895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20496896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20496897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20496898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20496899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20496900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20496901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20496902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20496903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20496904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20496905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20496906, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20497229, 'dashboard_result_id': 8885136, '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_P20497229_14-02-2025_05_36_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20497266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20497270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20497271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20497272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20497273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20497274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20497275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20497276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20497277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20497278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20497279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20497280, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20497769, 'dashboard_result_id': 8885137, '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_P20497769_14-02-2025_05_36_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20497772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20497773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20497774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20497775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20497776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20497777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20497778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20497779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20497780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20497781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20497782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20497783, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20498225, 'dashboard_result_id': 8885138, '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_P20498225_14-02-2025_05_38_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498263, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20498729, 'dashboard_result_id': 8885139, '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_P20498729_14-02-2025_05_39_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498791, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20499230, 'dashboard_result_id': 8885140, '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_P20499230_14-02-2025_05_40_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20499234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499245, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20499537, 'dashboard_result_id': 8885141, '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_P20499537_14-02-2025_05_40_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20499623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499627, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20500137, 'dashboard_result_id': 8885142, '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_P20500137_14-02-2025_05_41_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20500153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20500154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20500155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20500156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20500157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20500158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20500159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20500160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20500161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20500162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20500163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20500164, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20500514, 'dashboard_result_id': 8885143, '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_P20500514_14-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20500588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20500589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20500590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20500591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20500592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20500593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20500594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20500595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20500596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20500597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20500598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20500599, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20501204, 'dashboard_result_id': 8885144, '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_P20501204_14-02-2025_05_42_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20501206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20501207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20501208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20501209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20501210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20501211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20501212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20501213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20501214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20501215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20501216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20501217, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20501611, 'dashboard_result_id': 8885145, '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_P20501611_14-02-2025_05_47_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20501640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20501641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20501642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20501643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20501644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20501645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20501646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20501647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20501648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20501649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20501650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20501651, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20502251, 'dashboard_result_id': 8885146, '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_P20502251_14-02-2025_05_47_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20502278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20502279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20502280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20502281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20502282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20502283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20502284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20502285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20502286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20502287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20502288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20502289, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20502819, 'dashboard_result_id': 8885147, '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_P20502819_14-02-2025_05_48_10.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20502893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20502894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20502895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20502896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20502897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20502898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20502899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20502900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20502901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20502902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20502903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20502904, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20503438, 'dashboard_result_id': 8885148, '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_P20503438_14-02-2025_05_48_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20503491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20503492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20503493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20503494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20503495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20503496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20503497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20503498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20503499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20503500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20503501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20503502, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20504018, 'dashboard_result_id': 8885149, '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_P20504018_14-02-2025_05_49_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20504023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20504024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20504025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20504026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20504027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20504028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20504029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20504030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20504031, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20504032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20504033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20504034, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20507322, 'dashboard_result_id': 8885150, '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_P20507322_14-02-2025_05_50_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20507324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20507325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20507326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20507327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20507328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20507329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20507330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20507331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20507332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20507333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20507334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20507335, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20507586, 'dashboard_result_id': 8885151, '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_P20507586_14-02-2025_05_51_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20507590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20507591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20507592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20507593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20507594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20507595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20507596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20507597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20507598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20507599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20507600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20507601, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20508054, 'dashboard_result_id': 8885152, '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_P20508054_14-02-2025_05_51_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20508069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20508070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20508071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20508072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20508073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20508074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20508075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20508076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20508077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20508078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20508079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20508080, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20508612, 'dashboard_result_id': 8885153, '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_P20508612_14-02-2025_05_52_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20508616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20508617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20508618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20508619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20508620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20508621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20508622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20508623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20508624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20508625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20508626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20508627, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20508913, 'dashboard_result_id': 8885154, '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_P20508913_14-02-2025_05_52_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20509003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20509004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20509005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20509006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20509007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20509008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20509009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20509010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20509011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20509012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20509013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20509014, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20509635, 'dashboard_result_id': 8885155, '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_P20509635_14-02-2025_05_53_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20509662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20509663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20509664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20509665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20509666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20509667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20509668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20509669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20509670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20509671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20509672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20509673, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20510094, 'dashboard_result_id': 8885156, '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_P20510094_14-02-2025_05_54_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20510147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20510148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20510149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20510150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20510151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20510152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20510153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20510154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20510155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20510156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20510157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20510158, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20510922, 'dashboard_result_id': 8885157, '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_P20510922_14-02-2025_05_54_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20510925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20510926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20510927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20510928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20510929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20510930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20510931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20510932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20510933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20510934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20510935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20510936, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20511266, 'dashboard_result_id': 8885158, '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_P20511266_14-02-2025_05_55_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20511296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20511297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20511298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20511299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20511300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20511301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20511302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20511303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20511304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20511305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20511306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20511307, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20511878, 'dashboard_result_id': 8885159, '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_P20511878_14-02-2025_05_56_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20511885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20511886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20511887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20511888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20511889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20511890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20511891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20511892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20511893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20511894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20511895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20511896, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20512359, 'dashboard_result_id': 8885160, '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_P20512359_14-02-2025_05_56_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20512416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20512417, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20512418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20512419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20512420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20512421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20512422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20512423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20512424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20512425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20512426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20512427, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20513169, 'dashboard_result_id': 8885161, '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_P20513169_14-02-2025_05_57_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20513211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20513212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20513213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20513214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20513215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20513216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20513217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20513218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20513219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20513220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20513221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20513222, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20513944, 'dashboard_result_id': 8885162, '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_P20513944_14-02-2025_05_58_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20513995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20513996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20513997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20513998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20513999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20514003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514006, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20514464, 'dashboard_result_id': 8885163, '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_P20514464_14-02-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20514472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20514474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20514476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20514477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20514479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20514483, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20514902, 'dashboard_result_id': 8885164, '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_P20514902_14-02-2025_05_59_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20514921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20514922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20514923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20514929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20514930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20514931, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20516593, 'dashboard_result_id': 8885165, '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_P20516593_14-02-2025_06_00_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20516596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20516597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20516598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20516599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20516600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20516601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20516602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20516603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20516604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20516605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20516606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20516607, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20516902, 'dashboard_result_id': 8885166, '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_P20516902_14-02-2025_06_00_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20516908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20516909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20516910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20516911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20516912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20516913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20516914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20516915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20516916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20516917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20516918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20516919, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20517393, 'dashboard_result_id': 8885167, '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_P20517393_14-02-2025_06_01_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20517447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20517448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20517449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20517450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20517451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20517452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20517453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20517454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20517455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20517456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20517457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20517458, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20518029, 'dashboard_result_id': 8885168, '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_P20518029_14-02-2025_06_02_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20518056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20518057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20518058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20518059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20518060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20518061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20518062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20518063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20518064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20518065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20518066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20518067, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20518770, 'dashboard_result_id': 8885169, '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_P20518770_14-02-2025_06_03_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20518773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20518774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20518775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20518776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20518777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20518778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20518779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20518780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20518781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20518782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20518783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20518784, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20519099, 'dashboard_result_id': 8885170, '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_P20519099_14-02-2025_06_05_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20519154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20519155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20519156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20519157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20519158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20519159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20519160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20519161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20519162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20519163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20519164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20519165, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20519720, 'dashboard_result_id': 8885171, '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_P20519720_14-02-2025_06_06_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20519747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20519748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20519749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20519750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20519751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20519752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20519753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20519754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20519755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20519756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20519757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20519758, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20520504, 'dashboard_result_id': 8885172, '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_P20520504_14-02-2025_06_06_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20520508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20520509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20520510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20520511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20520512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20520513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20520514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20520515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20520516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20520517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20520518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20520519, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20520906, 'dashboard_result_id': 8885173, '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_P20520906_14-02-2025_06_07_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20520913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20520914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20520915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20520916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20520917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20520918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20520919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20520920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20520921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20520922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20520923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20520924, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20521634, 'dashboard_result_id': 8885174, '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_P20521634_14-02-2025_06_08_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20521664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20521665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20521666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20521667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20521668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20521669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20521670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20521671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20521672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20521673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20521675, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20522165, 'dashboard_result_id': 8885175, '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_P20522165_14-02-2025_06_08_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20522215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20522216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20522217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20522218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20522219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20522220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20522221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20522222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20522223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20522224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20522226, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20523051, 'dashboard_result_id': 8885176, '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_P20523051_14-02-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20523054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20523055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20523056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20523057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20523058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20523059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20523060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20523061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20523062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20523063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20523064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20523065, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20523199, 'dashboard_result_id': 8885177, '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_P20523199_13-02-2025_21_52_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20523203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20523204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20523205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20523206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20523207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20523208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20523209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20523210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20523211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20523212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20523213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20523214, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20524003, 'dashboard_result_id': 8885178, '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_P20524003_13-02-2025_22_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20524007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524016, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20524409, 'dashboard_result_id': 8885179, '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_P20524409_13-02-2025_22_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20524417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524423, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20524841, 'dashboard_result_id': 8885180, '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_P20524841_13-02-2025_22_33_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20524844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524855, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20525286, 'dashboard_result_id': 8885181, '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_P20525286_13-02-2025_22_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20525291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20525292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20525293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20525294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20525295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20525296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20525297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20525298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20525299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20525300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20525301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20525302, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20526127, 'dashboard_result_id': 8885182, '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_P20526127_13-02-2025_23_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20526130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526141, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20526558, 'dashboard_result_id': 8885183, '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_P20526558_13-02-2025_23_19_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20526567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526571, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20526995, 'dashboard_result_id': 8885184, '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_P20526995_13-02-2025_23_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20527039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20527040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20527041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20527042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20527043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20527044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20527045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20527046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20527047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20527048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20527049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20527050, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20527820, 'dashboard_result_id': 8885185, '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_P20527820_13-02-2025_23_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20527878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20527879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20527880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20527881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20527882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20527883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20527884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20527885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20527886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20527887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20527888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20527889, 'pht': 3726}}"}, {'dashboat_entry_day': 1599443, 'dashboard_run_id': 1610494, 'mtr_portfolio_id': 20528257, 'dashboard_result_id': 8885186, '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_P20528257_14-02-2025_04_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20528335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20528336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20528337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20528338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20528339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20528340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20528341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20528342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20528343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20528344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20528345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20528346, '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 = 20496702 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': 2585340, 'mtr_portfolio_id': 20496702, 'created_at': datetime.datetime(2025, 2, 14, 5, 34, 32), 'result': '0.0787631748319839', 'result_long': None, 'result_double': None}] Qualite : 0.0787631748319839 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20496702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20496702_14-02-2025_05_34_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20496702 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_P20496702_14-02-2025_05_34_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20496703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20496704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20496705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20496706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20496707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20496708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20496709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20496710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20496711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20496712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20496713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20496714, 'pht': 3726}}" where mtr_portfolio_id = 20496702 and dashboard_run_id = 1610494 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`=20496702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885134, 0.0787631748319839, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20496702_14-02-2025_05_34_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20496703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20496704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20496705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20496706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20496707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20496708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20496709, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20496710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20496711, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20496712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20496713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20496714, '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 = 20496893 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': 2585341, 'mtr_portfolio_id': 20496893, 'created_at': datetime.datetime(2025, 2, 14, 5, 35, 27), 'result': '0.04929415372185177', 'result_long': None, 'result_double': None}] Qualite : 0.04929415372185177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20496893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20496893_14-02-2025_05_35_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20496893 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_P20496893_14-02-2025_05_35_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20496895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20496896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20496897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20496898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20496899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20496900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20496901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20496902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20496903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20496904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20496905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20496906, 'pht': 3726}}" where mtr_portfolio_id = 20496893 and dashboard_run_id = 1610494 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`=20496893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885135, 0.04929415372185177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20496893_14-02-2025_05_35_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20496895, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20496896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20496897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20496898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20496899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20496900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20496901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20496902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20496903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20496904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20496905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20496906, '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 = 20497229 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': 2585342, 'mtr_portfolio_id': 20497229, 'created_at': datetime.datetime(2025, 2, 14, 5, 36, 2), 'result': '0.046791777458869976', 'result_long': None, 'result_double': None}] Qualite : 0.046791777458869976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20497229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20497229_14-02-2025_05_36_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20497229 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_P20497229_14-02-2025_05_36_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20497266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20497270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20497271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20497272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20497273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20497274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20497275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20497276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20497277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20497278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20497279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20497280, 'pht': 3726}}" where mtr_portfolio_id = 20497229 and dashboard_run_id = 1610494 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`=20497229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885136, 0.046791777458869976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20497229_14-02-2025_05_36_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20497266, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20497270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20497271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20497272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20497273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20497274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20497275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20497276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20497277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20497278, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20497279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20497280, '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 = 20497769 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': 2585343, 'mtr_portfolio_id': 20497769, 'created_at': datetime.datetime(2025, 2, 14, 5, 36, 30), 'result': '0.04199171666581403', 'result_long': None, 'result_double': None}] Qualite : 0.04199171666581403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20497769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20497769_14-02-2025_05_36_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20497769 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_P20497769_14-02-2025_05_36_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20497772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20497773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20497774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20497775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20497776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20497777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20497778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20497779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20497780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20497781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20497782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20497783, 'pht': 3726}}" where mtr_portfolio_id = 20497769 and dashboard_run_id = 1610494 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`=20497769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885137, 0.04199171666581403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20497769_14-02-2025_05_36_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20497772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20497773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20497774, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20497775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20497776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20497777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20497778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20497779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20497780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20497781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20497782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20497783, '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 = 20498225 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': 2585344, 'mtr_portfolio_id': 20498225, 'created_at': datetime.datetime(2025, 2, 14, 5, 38, 33), 'result': '0.04552629853286118', 'result_long': None, 'result_double': None}] Qualite : 0.04552629853286118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20498225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498225_14-02-2025_05_38_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20498225 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_P20498225_14-02-2025_05_38_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498263, 'pht': 3726}}" where mtr_portfolio_id = 20498225 and dashboard_run_id = 1610494 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`=20498225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885138, 0.04552629853286118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498225_14-02-2025_05_38_36.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498263, '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 = 20498729 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': 2585345, 'mtr_portfolio_id': 20498729, 'created_at': datetime.datetime(2025, 2, 14, 5, 39, 28), 'result': '0.04961918393745524', 'result_long': None, 'result_double': None}] Qualite : 0.04961918393745524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20498729 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498729_14-02-2025_05_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20498729 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_P20498729_14-02-2025_05_39_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498791, 'pht': 3726}}" where mtr_portfolio_id = 20498729 and dashboard_run_id = 1610494 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`=20498729 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885139, 0.04961918393745524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20498729_14-02-2025_05_39_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20498780, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20498781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20498782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20498783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20498784, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20498785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20498786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20498787, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20498788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20498789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20498790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20498791, '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 = 20499230 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': 2585346, 'mtr_portfolio_id': 20499230, 'created_at': datetime.datetime(2025, 2, 14, 5, 40), 'result': '0.0477902055756086', 'result_long': None, 'result_double': None}] Qualite : 0.0477902055756086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20499230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499230_14-02-2025_05_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20499230 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_P20499230_14-02-2025_05_40_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20499234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499245, 'pht': 3726}}" where mtr_portfolio_id = 20499230 and dashboard_run_id = 1610494 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`=20499230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885140, 0.0477902055756086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499230_14-02-2025_05_40_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20499234, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499245, '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 = 20499537 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': 2585347, 'mtr_portfolio_id': 20499537, 'created_at': datetime.datetime(2025, 2, 14, 5, 40, 32), 'result': '0.05923722820601683', 'result_long': None, 'result_double': None}] Qualite : 0.05923722820601683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20499537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499537_14-02-2025_05_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20499537 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_P20499537_14-02-2025_05_40_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20499623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499627, 'pht': 3726}}" where mtr_portfolio_id = 20499537 and dashboard_run_id = 1610494 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`=20499537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885141, 0.05923722820601683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20499537_14-02-2025_05_40_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20499616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20499617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20499618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20499619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20499620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20499621, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20499622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20499623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20499624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20499625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20499626, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20499627, '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 = 20500137 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': 2585348, 'mtr_portfolio_id': 20500137, 'created_at': datetime.datetime(2025, 2, 14, 5, 41, 30), 'result': '0.05412015019625956', 'result_long': None, 'result_double': None}] Qualite : 0.05412015019625956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20500137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20500137_14-02-2025_05_41_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20500137 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_P20500137_14-02-2025_05_41_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20500153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20500154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20500155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20500156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20500157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20500158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20500159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20500160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20500161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20500162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20500163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20500164, 'pht': 3726}}" where mtr_portfolio_id = 20500137 and dashboard_run_id = 1610494 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`=20500137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885142, 0.05412015019625956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20500137_14-02-2025_05_41_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20500153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20500154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20500155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20500156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20500157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20500158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20500159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20500160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20500161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20500162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20500163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20500164, '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 = 20500514 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': 2585349, 'mtr_portfolio_id': 20500514, 'created_at': datetime.datetime(2025, 2, 14, 5, 41, 59), 'result': '0.04775774899333977', 'result_long': None, 'result_double': None}] Qualite : 0.04775774899333977 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20500514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20500514_14-02-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20500514 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_P20500514_14-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20500588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20500589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20500590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20500591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20500592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20500593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20500594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20500595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20500596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20500597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20500598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20500599, 'pht': 3726}}" where mtr_portfolio_id = 20500514 and dashboard_run_id = 1610494 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`=20500514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885143, 0.04775774899333977, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20500514_14-02-2025_05_42_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20500588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20500589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20500590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20500591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20500592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20500593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20500594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20500595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20500596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20500597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20500598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20500599, '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 = 20501204 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': 2585350, 'mtr_portfolio_id': 20501204, 'created_at': datetime.datetime(2025, 2, 14, 5, 42, 33), 'result': '0.04576428365696704', 'result_long': None, 'result_double': None}] Qualite : 0.04576428365696704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20501204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20501204_14-02-2025_05_42_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20501204 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_P20501204_14-02-2025_05_42_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20501206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20501207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20501208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20501209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20501210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20501211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20501212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20501213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20501214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20501215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20501216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20501217, 'pht': 3726}}" where mtr_portfolio_id = 20501204 and dashboard_run_id = 1610494 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`=20501204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885144, 0.04576428365696704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20501204_14-02-2025_05_42_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20501206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20501207, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20501208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20501209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20501210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20501211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20501212, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20501213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20501214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20501215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20501216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20501217, '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 = 20501611 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': 2585351, 'mtr_portfolio_id': 20501611, 'created_at': datetime.datetime(2025, 2, 14, 5, 47, 3), 'result': '0.04260438432594769', 'result_long': None, 'result_double': None}] Qualite : 0.04260438432594769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20501611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20501611_14-02-2025_05_47_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20501611 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_P20501611_14-02-2025_05_47_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20501640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20501641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20501642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20501643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20501644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20501645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20501646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20501647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20501648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20501649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20501650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20501651, 'pht': 3726}}" where mtr_portfolio_id = 20501611 and dashboard_run_id = 1610494 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`=20501611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885145, 0.04260438432594769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20501611_14-02-2025_05_47_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20501640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20501641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20501642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20501643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20501644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20501645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20501646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20501647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20501648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20501649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20501650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20501651, '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 = 20502251 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': 2585352, 'mtr_portfolio_id': 20502251, 'created_at': datetime.datetime(2025, 2, 14, 5, 47, 32), 'result': '0.035647970281521134', 'result_long': None, 'result_double': None}] Qualite : 0.035647970281521134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20502251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20502251_14-02-2025_05_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20502251 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_P20502251_14-02-2025_05_47_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20502278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20502279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20502280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20502281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20502282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20502283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20502284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20502285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20502286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20502287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20502288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20502289, 'pht': 3726}}" where mtr_portfolio_id = 20502251 and dashboard_run_id = 1610494 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`=20502251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885146, 0.035647970281521134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20502251_14-02-2025_05_47_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20502278, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20502279, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20502280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20502281, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20502282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20502283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20502284, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20502285, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20502286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20502287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20502288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20502289, '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 = 20502819 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': 2585353, 'mtr_portfolio_id': 20502819, 'created_at': datetime.datetime(2025, 2, 14, 5, 48, 8), 'result': '0.04851151713167158', 'result_long': None, 'result_double': None}] Qualite : 0.04851151713167158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20502819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20502819_14-02-2025_05_48_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20502819 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_P20502819_14-02-2025_05_48_10.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20502893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20502894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20502895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20502896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20502897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20502898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20502899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20502900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20502901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20502902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20502903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20502904, 'pht': 3726}}" where mtr_portfolio_id = 20502819 and dashboard_run_id = 1610494 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`=20502819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885147, 0.04851151713167158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20502819_14-02-2025_05_48_10.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20502893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20502894, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20502895, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20502896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20502897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20502898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20502899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20502900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20502901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20502902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20502903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20502904, '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 = 20503438 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': 2585354, 'mtr_portfolio_id': 20503438, 'created_at': datetime.datetime(2025, 2, 14, 5, 48, 32), 'result': '0.051955359494568', 'result_long': None, 'result_double': None}] Qualite : 0.051955359494568 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20503438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20503438_14-02-2025_05_48_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20503438 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_P20503438_14-02-2025_05_48_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20503491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20503492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20503493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20503494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20503495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20503496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20503497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20503498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20503499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20503500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20503501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20503502, 'pht': 3726}}" where mtr_portfolio_id = 20503438 and dashboard_run_id = 1610494 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`=20503438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885148, 0.051955359494568, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20503438_14-02-2025_05_48_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20503491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20503492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20503493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20503494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20503495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20503496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20503497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20503498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20503499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20503500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20503501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20503502, '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 = 20504018 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': 2585355, 'mtr_portfolio_id': 20504018, 'created_at': datetime.datetime(2025, 2, 14, 5, 49, 32), 'result': '0.0433180252621215', 'result_long': None, 'result_double': None}] Qualite : 0.0433180252621215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20504018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20504018_14-02-2025_05_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20504018 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_P20504018_14-02-2025_05_49_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20504023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20504024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20504025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20504026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20504027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20504028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20504029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20504030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20504031, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20504032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20504033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20504034, 'pht': 3726}}" where mtr_portfolio_id = 20504018 and dashboard_run_id = 1610494 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`=20504018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885149, 0.0433180252621215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20504018_14-02-2025_05_49_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20504023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20504024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20504025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20504026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20504027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20504028, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20504029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20504030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20504031, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20504032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20504033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20504034, '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 = 20507322 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': 2585356, 'mtr_portfolio_id': 20507322, 'created_at': datetime.datetime(2025, 2, 14, 5, 49, 59), 'result': '0.046203339803286836', 'result_long': None, 'result_double': None}] Qualite : 0.046203339803286836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20507322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20507322_14-02-2025_05_50_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20507322 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_P20507322_14-02-2025_05_50_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20507324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20507325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20507326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20507327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20507328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20507329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20507330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20507331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20507332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20507333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20507334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20507335, 'pht': 3726}}" where mtr_portfolio_id = 20507322 and dashboard_run_id = 1610494 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`=20507322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885150, 0.046203339803286836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20507322_14-02-2025_05_50_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20507324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20507325, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20507326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20507327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20507328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20507329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20507330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20507331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20507332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20507333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20507334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20507335, '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 = 20507586 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': 2585357, 'mtr_portfolio_id': 20507586, 'created_at': datetime.datetime(2025, 2, 14, 5, 50, 59), 'result': '0.038813652568694484', 'result_long': None, 'result_double': None}] Qualite : 0.038813652568694484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20507586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20507586_14-02-2025_05_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20507586 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_P20507586_14-02-2025_05_51_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20507590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20507591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20507592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20507593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20507594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20507595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20507596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20507597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20507598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20507599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20507600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20507601, 'pht': 3726}}" where mtr_portfolio_id = 20507586 and dashboard_run_id = 1610494 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`=20507586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885151, 0.038813652568694484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20507586_14-02-2025_05_51_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20507590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20507591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20507592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20507593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20507594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20507595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20507596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20507597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20507598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20507599, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20507600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20507601, '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 = 20508054 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': 2585358, 'mtr_portfolio_id': 20508054, 'created_at': datetime.datetime(2025, 2, 14, 5, 51, 31), 'result': '0.04079363407099793', 'result_long': None, 'result_double': None}] Qualite : 0.04079363407099793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20508054 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20508054_14-02-2025_05_51_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20508054 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_P20508054_14-02-2025_05_51_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20508069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20508070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20508071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20508072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20508073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20508074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20508075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20508076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20508077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20508078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20508079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20508080, 'pht': 3726}}" where mtr_portfolio_id = 20508054 and dashboard_run_id = 1610494 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`=20508054 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885152, 0.04079363407099793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20508054_14-02-2025_05_51_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20508069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20508070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20508071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20508072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20508073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20508074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20508075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20508076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20508077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20508078, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20508079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20508080, '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 = 20508612 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': 2585359, 'mtr_portfolio_id': 20508612, 'created_at': datetime.datetime(2025, 2, 14, 5, 52, 5), 'result': '0.0384166696994205', 'result_long': None, 'result_double': None}] Qualite : 0.0384166696994205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20508612 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20508612_14-02-2025_05_52_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20508612 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_P20508612_14-02-2025_05_52_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20508616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20508617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20508618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20508619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20508620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20508621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20508622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20508623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20508624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20508625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20508626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20508627, 'pht': 3726}}" where mtr_portfolio_id = 20508612 and dashboard_run_id = 1610494 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`=20508612 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885153, 0.0384166696994205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20508612_14-02-2025_05_52_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20508616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20508617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20508618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20508619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20508620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20508621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20508622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20508623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20508624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20508625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20508626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20508627, '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 = 20508913 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': 2585360, 'mtr_portfolio_id': 20508913, 'created_at': datetime.datetime(2025, 2, 14, 5, 52, 29), 'result': '0.04869746126983598', 'result_long': None, 'result_double': None}] Qualite : 0.04869746126983598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20508913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20508913_14-02-2025_05_52_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20508913 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_P20508913_14-02-2025_05_52_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20509003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20509004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20509005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20509006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20509007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20509008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20509009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20509010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20509011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20509012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20509013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20509014, 'pht': 3726}}" where mtr_portfolio_id = 20508913 and dashboard_run_id = 1610494 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`=20508913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885154, 0.04869746126983598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20508913_14-02-2025_05_52_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20509003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20509004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20509005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20509006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20509007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20509008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20509009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20509010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20509011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20509012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20509013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20509014, '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 = 20509635 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': 2585361, 'mtr_portfolio_id': 20509635, 'created_at': datetime.datetime(2025, 2, 14, 5, 53, 31), 'result': '0.042448892075204', 'result_long': None, 'result_double': None}] Qualite : 0.042448892075204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20509635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20509635_14-02-2025_05_53_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20509635 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_P20509635_14-02-2025_05_53_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20509662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20509663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20509664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20509665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20509666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20509667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20509668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20509669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20509670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20509671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20509672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20509673, 'pht': 3726}}" where mtr_portfolio_id = 20509635 and dashboard_run_id = 1610494 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`=20509635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885155, 0.042448892075204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20509635_14-02-2025_05_53_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20509662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20509663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20509664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20509665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20509666, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20509667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20509668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20509669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20509670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20509671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20509672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20509673, '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 = 20510094 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': 2585362, 'mtr_portfolio_id': 20510094, 'created_at': datetime.datetime(2025, 2, 14, 5, 54, 3), 'result': '0.04360889761143547', 'result_long': None, 'result_double': None}] Qualite : 0.04360889761143547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20510094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20510094_14-02-2025_05_54_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20510094 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_P20510094_14-02-2025_05_54_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20510147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20510148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20510149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20510150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20510151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20510152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20510153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20510154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20510155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20510156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20510157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20510158, 'pht': 3726}}" where mtr_portfolio_id = 20510094 and dashboard_run_id = 1610494 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`=20510094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885156, 0.04360889761143547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20510094_14-02-2025_05_54_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20510147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20510148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20510149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20510150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20510151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20510152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20510153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20510154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20510155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20510156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20510157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20510158, '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 = 20510922 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': 2585363, 'mtr_portfolio_id': 20510922, 'created_at': datetime.datetime(2025, 2, 14, 5, 54, 32), 'result': '0.049148788419833826', 'result_long': None, 'result_double': None}] Qualite : 0.049148788419833826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20510922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20510922_14-02-2025_05_54_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20510922 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_P20510922_14-02-2025_05_54_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20510925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20510926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20510927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20510928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20510929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20510930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20510931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20510932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20510933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20510934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20510935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20510936, 'pht': 3726}}" where mtr_portfolio_id = 20510922 and dashboard_run_id = 1610494 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`=20510922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885157, 0.049148788419833826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20510922_14-02-2025_05_54_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20510925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20510926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20510927, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20510928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20510929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20510930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20510931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20510932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20510933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20510934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20510935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20510936, '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 = 20511266 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': 2585364, 'mtr_portfolio_id': 20511266, 'created_at': datetime.datetime(2025, 2, 14, 5, 55, 27), 'result': '0.03132485486682838', 'result_long': None, 'result_double': None}] Qualite : 0.03132485486682838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20511266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20511266_14-02-2025_05_55_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20511266 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_P20511266_14-02-2025_05_55_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20511296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20511297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20511298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20511299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20511300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20511301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20511302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20511303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20511304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20511305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20511306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20511307, 'pht': 3726}}" where mtr_portfolio_id = 20511266 and dashboard_run_id = 1610494 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`=20511266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885158, 0.03132485486682838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20511266_14-02-2025_05_55_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20511296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20511297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20511298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20511299, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20511300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20511301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20511302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20511303, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20511304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20511305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20511306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20511307, '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 = 20511878 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': 2585365, 'mtr_portfolio_id': 20511878, 'created_at': datetime.datetime(2025, 2, 14, 5, 56, 4), 'result': '0.052386764394290325', 'result_long': None, 'result_double': None}] Qualite : 0.052386764394290325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20511878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20511878_14-02-2025_05_56_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20511878 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_P20511878_14-02-2025_05_56_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20511885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20511886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20511887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20511888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20511889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20511890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20511891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20511892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20511893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20511894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20511895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20511896, 'pht': 3726}}" where mtr_portfolio_id = 20511878 and dashboard_run_id = 1610494 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`=20511878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885159, 0.052386764394290325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20511878_14-02-2025_05_56_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20511885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20511886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20511887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20511888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20511889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20511890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20511891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20511892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20511893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20511894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20511895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20511896, '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 = 20512359 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': 2585366, 'mtr_portfolio_id': 20512359, 'created_at': datetime.datetime(2025, 2, 14, 5, 56, 32), 'result': '0.04459758387936247', 'result_long': None, 'result_double': None}] Qualite : 0.04459758387936247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20512359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20512359_14-02-2025_05_56_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20512359 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_P20512359_14-02-2025_05_56_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20512416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20512417, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20512418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20512419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20512420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20512421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20512422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20512423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20512424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20512425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20512426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20512427, 'pht': 3726}}" where mtr_portfolio_id = 20512359 and dashboard_run_id = 1610494 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`=20512359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885160, 0.04459758387936247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20512359_14-02-2025_05_56_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20512416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20512417, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20512418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20512419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20512420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20512421, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20512422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20512423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20512424, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20512425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20512426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20512427, '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 = 20513169 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': 2585367, 'mtr_portfolio_id': 20513169, 'created_at': datetime.datetime(2025, 2, 14, 5, 57, 33), 'result': '0.030173302105685876', 'result_long': None, 'result_double': None}] Qualite : 0.030173302105685876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20513169 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20513169_14-02-2025_05_57_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20513169 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_P20513169_14-02-2025_05_57_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20513211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20513212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20513213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20513214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20513215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20513216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20513217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20513218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20513219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20513220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20513221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20513222, 'pht': 3726}}" where mtr_portfolio_id = 20513169 and dashboard_run_id = 1610494 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`=20513169 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885161, 0.030173302105685876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20513169_14-02-2025_05_57_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20513211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20513212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20513213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20513214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20513215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20513216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20513217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20513218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20513219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20513220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20513221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20513222, '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 = 20513944 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': 2585368, 'mtr_portfolio_id': 20513944, 'created_at': datetime.datetime(2025, 2, 14, 5, 58, 4), 'result': '0.04784741239625882', 'result_long': None, 'result_double': None}] Qualite : 0.04784741239625882 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20513944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20513944_14-02-2025_05_58_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20513944 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_P20513944_14-02-2025_05_58_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20513995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20513996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20513997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20513998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20513999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20514003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514006, 'pht': 3726}}" where mtr_portfolio_id = 20513944 and dashboard_run_id = 1610494 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`=20513944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885162, 0.04784741239625882, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20513944_14-02-2025_05_58_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20513995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20513996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20513997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20513998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20513999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20514003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514006, '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 = 20514464 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': 2585369, 'mtr_portfolio_id': 20514464, 'created_at': datetime.datetime(2025, 2, 14, 5, 58, 31), 'result': '0.04229597315791667', 'result_long': None, 'result_double': None}] Qualite : 0.04229597315791667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20514464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20514464_14-02-2025_05_58_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20514464 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_P20514464_14-02-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20514472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20514474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20514476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20514477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20514479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20514483, 'pht': 3726}}" where mtr_portfolio_id = 20514464 and dashboard_run_id = 1610494 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`=20514464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885163, 0.04229597315791667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20514464_14-02-2025_05_58_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20514472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20514474, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20514476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20514477, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20514479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20514483, '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 = 20514902 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': 2585370, 'mtr_portfolio_id': 20514902, 'created_at': datetime.datetime(2025, 2, 14, 5, 59, 30), 'result': '0.04599093319686628', 'result_long': None, 'result_double': None}] Qualite : 0.04599093319686628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20514902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20514902_14-02-2025_05_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20514902 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_P20514902_14-02-2025_05_59_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20514921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20514922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20514923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20514929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20514930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20514931, 'pht': 3726}}" where mtr_portfolio_id = 20514902 and dashboard_run_id = 1610494 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`=20514902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885164, 0.04599093319686628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20514902_14-02-2025_05_59_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20514920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20514921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20514922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20514923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20514924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20514925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20514926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20514927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20514928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20514929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20514930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20514931, '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 = 20516593 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': 2585371, 'mtr_portfolio_id': 20516593, 'created_at': datetime.datetime(2025, 2, 14, 6, 0), 'result': '0.043832776007235764', 'result_long': None, 'result_double': None}] Qualite : 0.043832776007235764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20516593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20516593_14-02-2025_06_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20516593 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_P20516593_14-02-2025_06_00_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20516596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20516597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20516598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20516599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20516600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20516601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20516602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20516603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20516604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20516605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20516606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20516607, 'pht': 3726}}" where mtr_portfolio_id = 20516593 and dashboard_run_id = 1610494 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`=20516593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885165, 0.043832776007235764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20516593_14-02-2025_06_00_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20516596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20516597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20516598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20516599, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20516600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20516601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20516602, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20516603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20516604, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20516605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20516606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20516607, '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 = 20516902 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': 2585372, 'mtr_portfolio_id': 20516902, 'created_at': datetime.datetime(2025, 2, 14, 6, 0, 32), 'result': '0.035023195948913226', 'result_long': None, 'result_double': None}] Qualite : 0.035023195948913226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20516902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20516902_14-02-2025_06_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20516902 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_P20516902_14-02-2025_06_00_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20516908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20516909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20516910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20516911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20516912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20516913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20516914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20516915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20516916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20516917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20516918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20516919, 'pht': 3726}}" where mtr_portfolio_id = 20516902 and dashboard_run_id = 1610494 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`=20516902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885166, 0.035023195948913226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20516902_14-02-2025_06_00_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20516908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20516909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20516910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20516911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20516912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20516913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20516914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20516915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20516916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20516917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20516918, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20516919, '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 = 20517393 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': 2585373, 'mtr_portfolio_id': 20517393, 'created_at': datetime.datetime(2025, 2, 14, 6, 1, 29), 'result': '0.034923369451849415', 'result_long': None, 'result_double': None}] Qualite : 0.034923369451849415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20517393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20517393_14-02-2025_06_01_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20517393 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_P20517393_14-02-2025_06_01_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20517447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20517448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20517449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20517450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20517451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20517452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20517453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20517454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20517455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20517456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20517457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20517458, 'pht': 3726}}" where mtr_portfolio_id = 20517393 and dashboard_run_id = 1610494 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`=20517393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885167, 0.034923369451849415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20517393_14-02-2025_06_01_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20517447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20517448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20517449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20517450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20517451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20517452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20517453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20517454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20517455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20517456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20517457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20517458, '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 = 20518029 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': 2585374, 'mtr_portfolio_id': 20518029, 'created_at': datetime.datetime(2025, 2, 14, 6, 1, 58), 'result': '0.0393445656042057', 'result_long': None, 'result_double': None}] Qualite : 0.0393445656042057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20518029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20518029_14-02-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20518029 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_P20518029_14-02-2025_06_02_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20518056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20518057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20518058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20518059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20518060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20518061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20518062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20518063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20518064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20518065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20518066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20518067, 'pht': 3726}}" where mtr_portfolio_id = 20518029 and dashboard_run_id = 1610494 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`=20518029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885168, 0.0393445656042057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20518029_14-02-2025_06_02_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20518056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20518057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20518058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20518059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20518060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20518061, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20518062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20518063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20518064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20518065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20518066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20518067, '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 = 20518770 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': 2585375, 'mtr_portfolio_id': 20518770, 'created_at': datetime.datetime(2025, 2, 14, 6, 3, 7), 'result': '0.03614604375527036', 'result_long': None, 'result_double': None}] Qualite : 0.03614604375527036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20518770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20518770_14-02-2025_06_03_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20518770 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_P20518770_14-02-2025_06_03_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20518773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20518774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20518775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20518776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20518777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20518778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20518779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20518780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20518781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20518782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20518783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20518784, 'pht': 3726}}" where mtr_portfolio_id = 20518770 and dashboard_run_id = 1610494 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`=20518770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885169, 0.03614604375527036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20518770_14-02-2025_06_03_10.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20518773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20518774, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20518775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20518776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20518777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20518778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20518779, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20518780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20518781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20518782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20518783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20518784, '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 = 20519099 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': 2585376, 'mtr_portfolio_id': 20519099, 'created_at': datetime.datetime(2025, 2, 14, 6, 5, 33), 'result': '0.03619245673650885', 'result_long': None, 'result_double': None}] Qualite : 0.03619245673650885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20519099 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20519099_14-02-2025_06_05_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20519099 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_P20519099_14-02-2025_06_05_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20519154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20519155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20519156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20519157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20519158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20519159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20519160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20519161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20519162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20519163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20519164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20519165, 'pht': 3726}}" where mtr_portfolio_id = 20519099 and dashboard_run_id = 1610494 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`=20519099 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885170, 0.03619245673650885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20519099_14-02-2025_06_05_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20519154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20519155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20519156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20519157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20519158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20519159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20519160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20519161, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20519162, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20519163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20519164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20519165, '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 = 20519720 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': 2585377, 'mtr_portfolio_id': 20519720, 'created_at': datetime.datetime(2025, 2, 14, 6, 6, 2), 'result': '0.048178943920851224', 'result_long': None, 'result_double': None}] Qualite : 0.048178943920851224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20519720 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20519720_14-02-2025_06_06_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20519720 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_P20519720_14-02-2025_06_06_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20519747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20519748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20519749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20519750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20519751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20519752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20519753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20519754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20519755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20519756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20519757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20519758, 'pht': 3726}}" where mtr_portfolio_id = 20519720 and dashboard_run_id = 1610494 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`=20519720 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885171, 0.048178943920851224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20519720_14-02-2025_06_06_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20519747, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20519748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20519749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20519750, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20519751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20519752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20519753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20519754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20519755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20519756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20519757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20519758, '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 = 20520504 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': 2585378, 'mtr_portfolio_id': 20520504, 'created_at': datetime.datetime(2025, 2, 14, 6, 6, 32), 'result': '0.04089538588679669', 'result_long': None, 'result_double': None}] Qualite : 0.04089538588679669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20520504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20520504_14-02-2025_06_06_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20520504 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_P20520504_14-02-2025_06_06_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20520508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20520509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20520510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20520511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20520512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20520513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20520514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20520515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20520516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20520517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20520518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20520519, 'pht': 3726}}" where mtr_portfolio_id = 20520504 and dashboard_run_id = 1610494 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`=20520504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885172, 0.04089538588679669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20520504_14-02-2025_06_06_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20520508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20520509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20520510, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20520511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20520512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20520513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20520514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20520515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20520516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20520517, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20520518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20520519, '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 = 20520906 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': 2585379, 'mtr_portfolio_id': 20520906, 'created_at': datetime.datetime(2025, 2, 14, 6, 7, 31), 'result': '0.041261856139384843', 'result_long': None, 'result_double': None}] Qualite : 0.041261856139384843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20520906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20520906_14-02-2025_06_07_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20520906 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_P20520906_14-02-2025_06_07_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20520913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20520914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20520915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20520916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20520917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20520918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20520919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20520920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20520921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20520922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20520923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20520924, 'pht': 3726}}" where mtr_portfolio_id = 20520906 and dashboard_run_id = 1610494 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`=20520906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885173, 0.041261856139384843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20520906_14-02-2025_06_07_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20520913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20520914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20520915, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20520916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20520917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20520918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20520919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20520920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20520921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20520922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20520923, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20520924, '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 = 20521634 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': 2585380, 'mtr_portfolio_id': 20521634, 'created_at': datetime.datetime(2025, 2, 14, 6, 8, 5), 'result': '0.0363102193680705', 'result_long': None, 'result_double': None}] Qualite : 0.0363102193680705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20521634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20521634_14-02-2025_06_08_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20521634 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_P20521634_14-02-2025_06_08_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20521664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20521665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20521666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20521667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20521668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20521669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20521670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20521671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20521672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20521673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20521675, 'pht': 3726}}" where mtr_portfolio_id = 20521634 and dashboard_run_id = 1610494 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`=20521634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885174, 0.0363102193680705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20521634_14-02-2025_06_08_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20521664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20521665, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20521666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20521667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20521668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20521669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20521670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20521671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20521672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20521673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20521674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20521675, '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 = 20522165 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': 2585381, 'mtr_portfolio_id': 20522165, 'created_at': datetime.datetime(2025, 2, 14, 6, 8, 34), 'result': '0.042396130101101034', 'result_long': None, 'result_double': None}] Qualite : 0.042396130101101034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20522165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20522165_14-02-2025_06_08_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20522165 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_P20522165_14-02-2025_06_08_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20522215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20522216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20522217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20522218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20522219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20522220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20522221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20522222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20522223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20522224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20522226, 'pht': 3726}}" where mtr_portfolio_id = 20522165 and dashboard_run_id = 1610494 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`=20522165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885175, 0.042396130101101034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20522165_14-02-2025_06_08_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20522215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20522216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20522217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20522218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20522219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20522220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20522221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20522222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20522223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20522224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20522225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20522226, '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 = 20523051 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': 2585382, 'mtr_portfolio_id': 20523051, 'created_at': datetime.datetime(2025, 2, 14, 6, 9, 31), 'result': '0.026988190438543714', 'result_long': None, 'result_double': None}] Qualite : 0.026988190438543714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20523051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20523051_14-02-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20523051 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_P20523051_14-02-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20523054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20523055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20523056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20523057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20523058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20523059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20523060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20523061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20523062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20523063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20523064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20523065, 'pht': 3726}}" where mtr_portfolio_id = 20523051 and dashboard_run_id = 1610494 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`=20523051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885176, 0.026988190438543714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20523051_14-02-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20523054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20523055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20523056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20523057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20523058, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20523059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20523060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20523061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20523062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20523063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20523064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20523065, '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 = 20523199 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': 2585383, 'mtr_portfolio_id': 20523199, 'created_at': datetime.datetime(2025, 2, 14, 6, 10), 'result': '0.035691100158827836', 'result_long': None, 'result_double': None}] Qualite : 0.035691100158827836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20523199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20523199_14-02-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20523199 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_P20523199_14-02-2025_06_10_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20523203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20523204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20523205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20523206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20523207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20523208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20523209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20523210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20523211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20523212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20523213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20523214, 'pht': 3726}}" where mtr_portfolio_id = 20523199 and dashboard_run_id = 1610494 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`=20523199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885177, 0.035691100158827836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20523199_14-02-2025_06_10_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20523203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20523204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20523205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20523206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20523207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20523208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20523209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20523210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20523211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20523212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20523213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20523214, '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 = 20524003 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': 2583990, 'mtr_portfolio_id': 20524003, 'created_at': datetime.datetime(2025, 2, 13, 22, 2, 59), 'result': '0.04956352137158782', 'result_long': None, 'result_double': None}] Qualite : 0.04956352137158782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20524003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524003_13-02-2025_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20524003 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_P20524003_13-02-2025_22_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20524007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524016, 'pht': 3726}}" where mtr_portfolio_id = 20524003 and dashboard_run_id = 1610494 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`=20524003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885178, 0.04956352137158782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524003_13-02-2025_22_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20524007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524008, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524016, '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 = 20524409 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': 2584082, 'mtr_portfolio_id': 20524409, 'created_at': datetime.datetime(2025, 2, 13, 22, 16, 30), 'result': '0.03963416211849185', 'result_long': None, 'result_double': None}] Qualite : 0.03963416211849185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20524409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524409_13-02-2025_22_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20524409 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_P20524409_13-02-2025_22_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20524417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524423, 'pht': 3726}}" where mtr_portfolio_id = 20524409 and dashboard_run_id = 1610494 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`=20524409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885179, 0.03963416211849185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524409_13-02-2025_22_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20524417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524423, '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 = 20524841 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': 2584114, 'mtr_portfolio_id': 20524841, 'created_at': datetime.datetime(2025, 2, 13, 22, 33, 29), 'result': '0.05749399874969437', 'result_long': None, 'result_double': None}] Qualite : 0.05749399874969437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20524841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524841_13-02-2025_22_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20524841 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_P20524841_13-02-2025_22_33_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20524844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524855, 'pht': 3726}}" where mtr_portfolio_id = 20524841 and dashboard_run_id = 1610494 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`=20524841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885180, 0.05749399874969437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20524841_13-02-2025_22_33_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20524844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20524845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20524846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20524847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20524848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20524849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20524850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20524851, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20524852, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20524853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20524854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20524855, '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 = 20525286 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': 2584141, 'mtr_portfolio_id': 20525286, 'created_at': datetime.datetime(2025, 2, 13, 22, 46, 56), 'result': '0.059493555636541476', 'result_long': None, 'result_double': None}] Qualite : 0.059493555636541476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20525286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20525286_13-02-2025_22_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20525286 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_P20525286_13-02-2025_22_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20525291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20525292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20525293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20525294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20525295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20525296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20525297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20525298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20525299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20525300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20525301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20525302, 'pht': 3726}}" where mtr_portfolio_id = 20525286 and dashboard_run_id = 1610494 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`=20525286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885181, 0.059493555636541476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20525286_13-02-2025_22_46_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20525291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20525292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20525293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20525294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20525295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20525296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20525297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20525298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20525299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20525300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20525301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20525302, '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 = 20526127 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': 2584186, 'mtr_portfolio_id': 20526127, 'created_at': datetime.datetime(2025, 2, 13, 23, 2, 58), 'result': '0.04590287569442672', 'result_long': None, 'result_double': None}] Qualite : 0.04590287569442672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20526127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526127_13-02-2025_23_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20526127 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_P20526127_13-02-2025_23_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20526130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526141, 'pht': 3726}}" where mtr_portfolio_id = 20526127 and dashboard_run_id = 1610494 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`=20526127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885182, 0.04590287569442672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526127_13-02-2025_23_02_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20526130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526140, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526141, '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 = 20526558 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': 2584220, 'mtr_portfolio_id': 20526558, 'created_at': datetime.datetime(2025, 2, 13, 23, 19, 29), 'result': '0.0431418347256479', 'result_long': None, 'result_double': None}] Qualite : 0.0431418347256479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20526558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526558_13-02-2025_23_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20526558 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_P20526558_13-02-2025_23_19_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20526567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526571, 'pht': 3726}}" where mtr_portfolio_id = 20526558 and dashboard_run_id = 1610494 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`=20526558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885183, 0.0431418347256479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526558_13-02-2025_23_19_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20526560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20526561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20526562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20526563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20526564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20526565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20526566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20526567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20526568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20526569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20526570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20526571, '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 = 20526995 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': 2584256, 'mtr_portfolio_id': 20526995, 'created_at': datetime.datetime(2025, 2, 13, 23, 33), 'result': '0.04480899892960075', 'result_long': None, 'result_double': None}] Qualite : 0.04480899892960075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20526995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526995_13-02-2025_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20526995 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_P20526995_13-02-2025_23_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20527039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20527040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20527041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20527042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20527043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20527044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20527045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20527046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20527047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20527048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20527049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20527050, 'pht': 3726}}" where mtr_portfolio_id = 20526995 and dashboard_run_id = 1610494 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`=20526995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885184, 0.04480899892960075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20526995_13-02-2025_23_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20527039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20527040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20527041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20527042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20527043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20527044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20527045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20527046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20527047, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20527048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20527049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20527050, '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 = 20527820 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': 2584303, 'mtr_portfolio_id': 20527820, 'created_at': datetime.datetime(2025, 2, 13, 23, 48, 56), 'result': '0.06451756633204798', 'result_long': None, 'result_double': None}] Qualite : 0.06451756633204798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20527820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20527820_13-02-2025_23_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20527820 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_P20527820_13-02-2025_23_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20527878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20527879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20527880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20527881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20527882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20527883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20527884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20527885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20527886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20527887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20527888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20527889, 'pht': 3726}}" where mtr_portfolio_id = 20527820 and dashboard_run_id = 1610494 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`=20527820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885185, 0.06451756633204798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20527820_13-02-2025_23_48_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20527878, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20527879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20527880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20527881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20527882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20527883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20527884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20527885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20527886, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20527887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20527888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20527889, '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 = 20528257 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': 2584333, 'mtr_portfolio_id': 20528257, 'created_at': datetime.datetime(2025, 2, 14, 4, 25, 59), 'result': '0.04214211821449696', 'result_long': None, 'result_double': None}] Qualite : 0.04214211821449696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20528257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20528257_14-02-2025_04_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528257 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_P20528257_14-02-2025_04_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20528335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20528336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20528337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20528338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20528339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20528340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20528341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20528342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20528343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20528344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20528345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20528346, 'pht': 3726}}" where mtr_portfolio_id = 20528257 and dashboard_run_id = 1610494 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`=20528257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8885186, 0.04214211821449696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20528257_14-02-2025_04_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20528335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20528336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20528337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20528338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20528339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20528340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20528341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20528342, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20528343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20528344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20528345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20528346, '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 (20496702,20496893,20497229,20497769,20498225,20498729,20499230,20499537,20500137,20500514,20501204,20501611,20502251,20502819,20503438,20504018,20507322,20507586,20508054,20508612,20508913,20509635,20510094,20510922,20511266,20511878,20512359,20513169,20513944,20514464,20514902,20516593,20516902,20517393,20518029,20518770,20519099,20519720,20520504,20520906,20521634,20522165,20523051,20523199,20524003,20524409,20524841,20525286,20526127,20526558,20526995,20527820,20528257) result : ((1337269028,), (1337270069,), (1337270603,), (1337271192,), (1337271215,), (1337271241,), (1337271374,), (1337271398,), (1337271401,), (1337271428,), (1337271430,), (1337271455,), (1337271457,), (1337271475,), (1337271516,), (1337271534,), (1337271990,), (1337272064,), (1337272087,), (1337272088,), (1337272089,), (1337272415,), (1337272416,), (1337272474,), (1337272564,), (1337272565,), (1337272566,), (1337272576,), (1337272653,), (1337272654,), (1337272655,), (1337272659,), (1337272662,), (1337272699,), (1337272700,), (1337272725,), (1337272727,), (1337272729,), (1337272757,), (1337272759,), (1337272761,), (1337272789,), (1337272791,), (1337272792,), (1337272799,), (1337272803,), (1337272805,), (1337272823,), (1337272824,), (1337272825,), (1337272849,), (1337272850,), (1337272852,), (1337272857,), (1337272867,), (1337272882,), (1337273155,), (1337273000,), (1337273079,), (1337273081,), (1337273083,), (1337273138,), (1337273293,), (1337273356,), (1337273357,), (1337273387,), (1337273388,), (1337273389,), (1337273390,), (1337273395,), (1337273427,), (1337273429,), (1337273432,), (1337273434,), (1337273437,), (1337273462,), (1337273464,), (1337273467,), (1337273515,), (1337273526,), (1337273536,), (1337273537,), (1337273539,), (1337273650,), (1337273651,), (1337273652,), (1337273656,), (1337273658,), (1337273660,), (1337273681,), (1337273682,), (1337273683,), (1337273686,), (1337273717,), (1337273718,), (1337273719,), (1337273721,), (1337273724,), (1337273726,), (1337273744,), (1337273745,), (1337273748,), (1337273756,), (1337273759,), (1337273790,), (1337273791,), (1337273792,), (1337273793,), (1337273795,), (1337274102,), (1337274173,), (1337274245,), (1337274316,), (1337274455,), (1337274880,), (1337274881,), (1337274882,), (1337274883,), (1337274885,), (1337274887,), (1337275036,), (1337275085,), (1337275155,), (1337275218,), (1337275476,), (1337275478,), (1337275483,), (1337275490,), (1337275493,), (1337275981,), (1337275644,), (1337275710,), (1337275824,), (1337275877,), (1337275948,), (1337276435,), (1337276469,), (1337276531,), (1337276693,), (1337276695,), (1337276697,), (1337276715,), (1337276723,), (1337276728,), (1337276754,), (1337276758,), (1337276760,), (1337276763,), (1337276766,), (1337276772,), (1337276780,), (1337276782,), (1337276784,), (1337276802,), (1337276803,), (1337276804,), (1337276805,), (1337276807,), (1337276809,), (1337277164,), (1337277238,), (1337277315,), (1337277855,), (1337277856,), (1337277857,), (1337277860,), (1337277864,), (1337277878,), (1337278077,), (1337278137,), (1337278221,), (1337278272,), (1337278277,), (1337278563,), (1337278571,), (1337278573,), (1337278582,), (1337278590,), (1337278744,), (1337278817,), (1337278858,), (1337278914,), (1337279051,), (1337279058,), (1337279065,), (1337279068,), (1337279070,), (1337279073,), (1337279085,), (1337279093,), (1337279095,), (1337279097,), (1337279100,), (1337279103,), (1337279116,), (1337279120,), (1337279124,), (1337279128,), (1337279140,), (1337279152,), (1337279154,), (1337279155,), (1337279156,), (1337279157,), (1337279159,), (1337279161,), (1337279164,), (1337279165,), (1337279168,), (1337279186,), (1337279175,), (1337279177,), (1337279180,), (1337279182,), (1337279234,), (1337279237,), (1337279239,), (1337279246,), (1337279250,), (1337279253,), (1337279268,), (1337279271,), (1337279273,), (1337279288,), (1337279293,), (1337279295,), (1337279298,), (1337279301,), (1337279303,), (1337280085,), (1337280087,), (1337280090,), (1337280092,), (1337280370,), (1337280408,), (1337280415,), (1337280417,), (1337280420,), (1337280433,), (1337280435,), (1337280437,), (1337280439,), (1337280441,), (1337280444,), (1337280460,), (1337280463,), (1337280467,), (1337280469,), (1337280472,), (1337280497,), (1337280499,), (1337280501,), (1337280503,), (1337280506,), (1337280507,), (1337280533,), (1337280534,), (1337280535,), (1337280536,), (1337280538,), (1337280578,), (1337280579,), (1337280580,), (1337280581,), (1337280582,), (1337280602,), (1337280603,), (1337280607,), (1337280613,), (1337280614,), (1337280752,), (1337280822,), (1337280892,), (1337280896,), (1337280897,), (1337280924,), (1337280925,), (1337280926,), (1337280927,), (1337280928,), (1337280950,), (1337280952,), (1337280953,), (1337280954,), (1337280955,), (1337280998,), (1337280983,), (1337280996,), (1337280997,), (1337281321,), (1337281322,), (1337281323,), (1337281324,), (1337281325,), (1337281327,), (1337281345,), (1337281346,), (1337281347,), (1337281348,), (1337281384,), (1337281385,), (1337281386,), (1337281405,), (1337281406,), (1337281444,), (1337281446,), (1337281448,), (1337281450,), (1337281471,), (1337281472,), (1337281473,), (1337281474,), (1337281475,), (1337281477,), (1337281821,), (1337281828,), (1337281886,), (1337281890,), (1337281912,), (1337281952,), (1337281954,), (1337281956,), (1337281958,), (1337281961,), (1337281963,), (1337281975,), (1337281977,), (1337281979,), (1337281981,), (1337282006,), (1337282008,), (1337282009,), (1337282011,), (1337282020,), (1337282026,), (1337282038,), (1337282040,), (1337282042,), (1337282044,), (1337282047,), (1337282066,), (1337282078,), (1337282085,), (1337282088,), (1337282091,), (1337282094,), (1337282104,), (1337282106,), (1337282108,), (1337282126,), (1337282128,), (1337282132,), (1337282134,), (1337282140,), (1337282152,), (1337282606,), (1337282602,), (1337282603,), (1337282620,), (1337282622,), (1337282625,), (1337282628,), (1337282638,), (1337282644,), (1337282657,), (1337282659,), (1337282661,), (1337282663,), (1337282680,), (1337282682,), (1337282684,), (1337282686,), (1337282699,), (1337282704,), (1337282706,), (1337282710,), (1337282713,), (1337282716,), (1337282729,), (1337282731,), (1337282733,), (1337282745,), (1337282748,), (1337282803,), (1337282863,), (1337282897,), (1337282913,), (1337282915,), (1337282921,), (1337282928,), (1337282931,), (1337282933,), (1337282944,), (1337282951,), (1337283007,), (1337283037,), (1337283102,), (1337283457,), (1337283458,), (1337283459,), (1337283460,), (1337283773,), (1337283782,), (1337284292,), (1337284857,), (1337284845,), (1337284846,), (1337284847,), (1337284848,), (1337284850,), (1337285136,), (1337285142,), (1337285146,), (1337285412,), (1337285413,), (1337285414,), (1337285436,), (1337285438,), (1337285439,), (1337285440,), (1337285442,), (1337285852,), (1337285969,), (1337286097,), (1337286223,), (1337286302,), (1337286303,), (1337286336,), (1337286337,), (1337286338,), (1337286468,), (1337286875,), (1337286876,), (1337286877,), (1337286878,), (1337286880,), (1337286882,), (1337286899,), (1337286901,), (1337286904,), (1337286906,), (1337286909,), (1337286944,), (1337286946,), (1337286948,), (1337286950,), (1337286966,), (1337286968,), (1337286970,), (1337286972,), (1337286975,), (1337286978,), (1337286993,), (1337286995,), (1337287010,), (1337287014,), (1337287041,), (1337287043,), (1337287045,), (1337287047,), (1337287081,), (1337287083,), (1337287085,), (1337287089,), (1337287093,), (1337287097,), (1337287141,), (1337287145,), (1337287149,), (1337287188,), (1337287176,), (1337287180,), (1337287183,), (1337287185,), (1337287203,), (1337287214,), (1337287221,), (1337287227,), (1337287815,), (1337287884,), (1337287958,), (1337288041,), (1337288070,), (1337288072,), (1337288085,), (1337288087,), (1337288090,), (1337288093,), (1337288095,), (1337288481,), (1337288486,), (1337288489,), (1337288492,), (1337288501,), (1337288505,), (1337288777,), (1337288788,), (1337288902,), (1337288922,), (1337289019,), (1337289406,), (1337289479,), (1337289544,), (1337289583,), (1337289593,), (1337289598,), (1337289807,), (1337289828,), (1337289885,), (1337289887,), (1337289913,), (1337289916,), (1337290038,), (1337290040,), (1337290044,), (1337290046,), (1337290074,), (1337290080,), (1337290084,), (1337290090,), (1337290096,), (1337290100,), (1337290113,), (1337290114,), (1337290115,), (1337290152,), (1337290155,), (1337290159,), (1337290164,), (1337290169,), (1337290172,), (1337290189,), (1337290192,), (1337290196,), (1337290199,), (1337290213,), (1337290216,), (1337290220,), (1337290224,), (1337290228,), (1337290230,), (1337290252,), (1337290258,), (1337290301,), (1337290304,), (1337290308,), (1337290310,), (1337290312,), (1337290313,), (1337290343,), (1337290348,), (1337290358,), (1337290360,), (1337290110,), (1337290111,), (1337290112,), (1337290120,), (1337290124,), (1337290130,), (1337290136,), (1337290142,), (1337290148,), (1337290184,), (1337290186,), (1337290244,), (1337290245,), (1337290247,), (1337290250,), (1337290276,), (1337290279,), (1337290282,), (1337290285,), (1337290287,), (1337290291,), (1337290328,), (1337290333,), (1337290336,), (1337290340,), (1337290367,), (1337290370,), (1337290374,), (1337290378,), (1337290381,), (1337290385,), (1337290423,), (1337290442,), (1337290445,), (1337290448,), (1337290455,), (1337290464,), (1337290526,), (1337290529,), (1337290533,), (1337290587,), (1337290598,), (1337290603,), (1337290616,), (1337290620,), (1337290623,), (1337291239,), (1337291330,), (1337291414,), (1337291501,), (1337291591,), (1337291598,), (1337291622,), (1337292735,), (1337292737,), (1337293869,), (1337293597,), (1337293779,), (1337294079,), (1337294083,), (1337294087,), (1337294090,), (1337294094,), (1337294095,), (1337294119,), (1337294121,), (1337294168,), (1337294173,), (1337294208,), (1337294210,), (1337294214,), (1337294218,), (1337294373,), (1337294375,), (1337294378,), (1337294382,), (1337294385,), (1337294389,), (1337294414,), (1337294419,), (1337294424,), (1337294429,), (1337294460,), (1337294462,), (1337294465,), (1337294468,), (1337294471,), (1337294508,), (1337294510,), (1337294512,), (1337294515,), (1337294519,), (1337294676,), (1337294679,), (1337294682,), (1337294732,), (1337294734,), (1337294737,), (1337294740,), (1337294761,), (1337294763,), (1337294768,), (1337294771,), (1337294814,), (1337294817,), (1337294820,), (1337294826,), (1337294867,), (1337294872,), (1337294875,), (1337294957,), (1337294901,), (1337294903,), (1337294906,), (1337295049,), (1337295052,), (1337295061,), (1337295066,), (1337295068,), (1337295072,), (1337295476,), (1337295538,), (1337295553,), (1337295565,), (1337295609,), (1337295612,), (1337295614,), (1337295617,), (1337295679,), (1337295682,), (1337295685,), (1337295686,), (1337295690,), (1337295793,), (1337295796,), (1337295800,), (1337295802,), (1337295833,), (1337295835,), (1337295837,), (1337295840,), (1337295844,), (1337295847,), (1337296010,), (1337296061,), (1337296064,), (1337296067,), (1337296086,), (1337296089,), (1337296093,), (1337296097,), (1337296120,), (1337296123,), (1337296126,), (1337296129,), (1337296132,), (1337296141,), (1337296162,), (1337296164,), (1337296168,), (1337296196,), (1337296199,), (1337296203,), (1337296207,), (1337296237,), (1337296241,), (1337296247,), (1337296255,), (1337296263,), (1337296268,), (1337296452,), (1337296441,), (1337296444,), (1337296448,), (1337296490,), (1337296493,), (1337296497,), (1337296501,), (1337296505,), (1337296521,), (1337296524,), (1337296528,), (1337296532,), (1337296560,), (1337296563,), (1337296565,), (1337296566,), (1337296568,), (1337296572,), (1337297332,), (1337297334,), (1337297335,), (1337297337,), (1337297341,), (1337297361,), (1337297635,), (1337297637,), (1337297640,), (1337297680,), (1337297682,), (1337297685,), (1337297712,), (1337297715,), (1337297718,), (1337297721,), (1337297725,), (1337297765,), (1337297767,), (1337297801,), (1337297803,), (1337297812,), (1337297813,), (1337297817,), (1337297821,), (1337297864,), (1337297869,), (1337297871,), (1337297874,), (1337297904,), (1337297905,), (1337297907,), (1337298187,), (1337298064,), (1337298088,), (1337298090,), (1337298093,), (1337298298,), (1337298305,), (1337298308,), (1337298311,), (1337298316,), (1337298324,), (1337298556,), (1337298558,), (1337298561,), (1337298564,), (1337298566,), (1337298628,), (1337298631,), (1337298662,), (1337298744,), (1337298775,), (1337298778,), (1337299138,), (1337299153,), (1337299190,), (1337299223,), (1337299225,), (1337299229,), (1337299428,), (1337299513,), (1337299516,), (1337299566,), (1337299568,), (1337299571,), (1337299633,), (1337299647,), (1337299780,), (1337299783,), (1337299787,), (1337299970,), (1337300001,), (1337300004,), (1337300007,), (1337300048,), (1337300054,), (1337300075,), (1337300083,), (1337300153,), (1337300139,), (1337300141,), (1337300145,), (1337300149,), (1337300184,), (1337300185,), (1337300187,), (1337300190,), (1337300193,), (1337300219,), (1337300220,), (1337300222,), (1337300886,), (1337300889,), (1337300897,), (1337300942,), (1337301016,), (1337301018,), (1337301023,), (1337301051,), (1337301052,), (1337301054,), (1337301266,), (1337301267,), (1337301269,), (1337301291,), (1337301316,), (1337301317,), (1337301319,), (1337301350,), (1337301351,), (1337301353,), (1337301355,), (1337301382,), (1337301383,), (1337301494,), (1337303087,), (1337303218,), (1337303237,), (1337303453,), (1337303454,), (1337303456,), (1337303469,), (1337303471,), (1337303483,), (1337303514,), (1337303515,), (1337303517,), (1337303519,), (1337303521,), (1337303523,), (1337303543,), (1337303545,), (1337303547,), (1337303586,), (1337303811,), (1337303813,), (1337303815,), (1337303816,), (1337303818,), (1337303820,), (1337303919,), (1337303920,), (1337303925,), (1337303929,), (1337303973,), (1337303974,), (1337303976,), (1337303977,), (1337303980,), (1337303986,), (1337304039,), (1337304063,), (1337304065,), (1337304075,), (1337304176,), (1337304182,), (1337304193,), (1337304248,), (1337304252,), (1337304278,), (1337304289,), (1337304293,), (1337304298,), (1337304302,), (1337362904,), (1337363025,), (1337363058,), (1337364547,), (1337364599,), (1337364606,), (1337364611,), (1337364682,), (1337364684,), (1337364687,), (1337364690,), (1337364694,), (1337364773,), (1337364776,), (1337364780,), (1337364783,), (1337364787,), (1337364820,), (1337365566,), (1337365569,), (1337365573,), (1337366029,), (1337366044,), (1337366048,), (1337366051,), (1337366055,), (1337366411,), (1337366415,), (1337366420,), (1337366424,), (1337366430,), (1337366436,), (1337366444,), (1337366458,), (1337366494,), (1337366480,), (1337366484,), (1337366487,), (1337366489,), (1337366689,), (1337366693,), (1337366697,), (1337366699,), (1337366702,), (1337366706,), (1337367046,), (1337367211,), (1337367240,), (1337367246,), (1337367251,), (1337367433,), (1337367435,), (1337367438,), (1337367484,), (1337367488,), (1337367492,), (1337367498,), (1337367501,), (1337367505,), (1337367561,), (1337367565,), (1337367574,), (1337367579,), (1337367582,), (1337367586,), (1337367601,), (1337367603,), (1337367607,), (1337367828,), (1337367832,), (1337367836,), (1337367843,), (1337367909,), (1337367994,), (1337368078,), (1337368171,), (1337368266,), (1337369267,), (1337369271,), (1337369275,), (1337369280,), (1337369320,), (1337369323,), (1337369328,), (1337369332,), (1337369593,), (1337369684,), (1337369781,), (1337369868,), (1337369930,), (1337369944,), (1337370111,), (1337370143,), (1337370381,), (1337370471,), (1337370479,), (1337370489,), (1337370496,), (1337370500,), (1337370601,), (1337370553,), (1337370557,), (1337370564,), (1337370568,), (1337370588,), (1337370633,), (1337370637,), (1337370642,), (1337370646,), (1337370867,), (1337370869,), (1337370873,), (1337370876,), (1337370880,), (1337370884,), (1337371862,), (1337371913,), (1337371921,), (1337372308,), (1337372331,), (1337372420,), (1337372443,), (1337372446,), (1337372464,), (1337372499,), (1337372501,), (1337372505,), (1337372508,), (1337372512,), (1337372593,), (1337372595,), (1337372599,), (1337372603,), (1337372656,), (1337372659,), (1337372671,), (1337372675,), (1337372679,), (1337372681,), (1337372708,), (1337372711,), (1337372715,), (1337372717,), (1337372738,), (1337372740,), (1337372819,), (1337372822,), (1337372831,), (1337372834,), (1337372863,), (1337372866,), (1337372869,), (1337372872,), (1337372874,), (1337372879,), (1337372953,), (1337373042,), (1337373141,), (1337373236,), (1337373340,), (1337373440,), (1337373717,), (1337376707,), (1337377206,), (1337377212,), (1337377215,), (1337377219,), (1337377245,), (1337378072,), (1337378140,), (1337378190,), (1337378591,), (1337378598,), (1337378602,), (1337378707,), (1337378790,), (1337378881,), (1337378992,), (1337379037,), (1337379154,), (1337379159,), (1337379163,), (1337379166,), (1337379168,), (1337379480,), (1337379483,), (1337379487,), (1337379490,), (1337379518,), (1337379527,), (1337379529,), (1337379533,), (1337379538,), (1337379567,), (1337379570,), (1337379573,), (1337379611,), (1337379615,), (1337379737,), (1337379767,), (1337379823,), (1337379828,), (1337379833,), (1337379837,), (1337379841,), (1337379844,), (1337379905,), (1337379874,), (1337379879,), (1337379882,), (1337379887,), (1337379898,), (1337380102,), (1337380106,), (1337380111,), (1337380305,), (1337380309,), (1337380313,), (1337380321,), (1337380328,), (1337380331,), (1337380354,), (1337380357,), (1337380363,), (1337380367,), (1337380370,), (1337380393,), (1337380548,), (1337380551,), (1337380554,), (1337380558,), (1337380712,), (1337380880,), (1337380967,), (1337381036,), (1337381114,), (1337381278,), (1337381281,), (1337381300,), (1337381303,), (1337381586,), (1337381653,), (1337381720,), (1337381721,), (1337381728,), (1337381780,), (1337381870,), (1337381948,), (1337382070,), (1337382073,), (1337382082,), (1337382091,), (1337382134,), (1337382143,), (1337382175,), (1337382179,), (1337382184,), (1337382191,), (1337382196,), (1337382221,), (1337382359,), (1337382363,), (1337382369,), (1337382371,), (1337382375,), (1337382522,), (1337382540,), (1337382547,), (1337382569,), (1337382572,), (1337382576,), (1337383506,), (1337383503,), (1337385371,), (1337385374,), (1337385377,), (1337385380,), (1337385384,), (1337385532,), (1337385831,), (1337385843,), (1337386011,), (1337386013,), (1337386016,), (1337386019,), (1337386182,), (1337386439,), (1337386974,), (1337386976,), (1337387201,), (1337387364,), (1337387368,), (1337387382,), (1337387386,), (1337387390,), (1337387628,), (1337387643,), (1337387651,), (1337387653,), (1337387656,), (1337387688,), (1337387690,), (1337387700,), (1337387716,), (1337387763,), (1337387765,), (1337387768,), (1337387805,), (1337387823,), (1337387897,), (1337387952,), (1337387992,), (1337388014,), (1337388017,), (1337388021,), (1337388025,), (1337388036,), (1337388039,), (1337388067,), (1337388069,), (1337388072,), (1337388076,), (1337388139,), (1337388121,), (1337388123,), (1337388127,), (1337388131,), (1337388136,), (1337388162,), (1337388165,), (1337388168,), (1337388226,), (1337388229,), (1337388232,), (1337388235,), (1337388239,), (1337388243,), (1337388280,), (1337388282,), (1337388285,), (1337388326,), (1337388328,), (1337388331,), (1337388334,), (1337388337,), (1337388340,), (1337388376,), (1337388509,), (1337388567,), (1337388855,), (1337389018,), (1337389262,), (1337389332,), (1337389403,), (1337389958,), (1337389962,), (1337389965,), (1337389968,), (1337389971,), (1337389996,), (1337390027,), (1337390156,), (1337390169,), (1337390212,), (1337390215,), (1337390219,), (1337390222,), (1337390256,), (1337390260,), (1337390264,), (1337390284,), (1337390435,), (1337390438,), (1337390442,), (1337390447,), (1337390452,), (1337390456,), (1337390477,), (1337390481,), (1337390505,), (1337390508,), (1337390512,), (1337391127,), (1337391124,), (1337391319,), (1337391321,), (1337391323,), (1337391905,), (1337391964,), (1337392015,), (1337392225,), (1337392230,), (1337392231,), (1337392865,), (1337392875,), (1337392876,), (1337392881,), (1337392884,), (1337392886,), (1337392905,), (1337392911,), (1337393255,), (1337393262,), (1337393263,), (1337393276,), (1337393325,), (1337393371,), (1337393407,), (1337393409,), (1337393412,), (1337393521,), (1337393522,), (1337393523,), (1337393532,), (1337393535,), (1337393540,), (1337393581,), (1337393592,), (1337393594,), (1337393595,), (1337393597,), (1337393649,), (1337393651,), (1337393655,), (1337393659,), (1337393662,), (1337393664,), (1337393711,), (1337393703,), (1337393705,), (1337393708,), (1337393747,), (1337393753,), (1337393756,), (1337393759,), (1337393806,), (1337393808,), (1337393811,), (1337393830,), (1337394149,), (1337394237,), (1337394241,), (1337394243,), (1337394322,), (1337394325,), (1337394328,), (1337394336,), (1337394338,), (1337394373,), (1337394374,), (1337394377,), (1337394380,), (1337394550,), (1337394553,), (1337394560,), (1337394563,), (1337394882,), (1337394887,), (1337394891,), (1337395038,), (1337395050,), (1337395056,), (1337395100,), (1337395103,), (1337395107,), (1337395111,), (1337395114,), (1337395137,), (1337395148,), (1337395152,), (1337395162,), (1337395165,), (1337395192,), (1337395195,), (1337395199,), (1337395203,), (1337395373,), (1337395376,), (1337395381,), (1337395384,), (1337395389,), (1337395392,), (1337395420,), (1337395427,), (1337395431,), (1337395436,), (1337395441,), (1337395445,), (1337395455,), (1337395457,), (1337395461,), (1337395533,), (1337395494,), (1337395497,), (1337395500,), (1337395503,), (1337396191,), (1337396296,), (1337396299,), (1337396302,), (1337396306,), (1337396334,), (1337396366,), (1337396562,), (1337396690,), (1337396694,), (1337396697,), (1337396699,), (1337396702,), (1337396741,), (1337396744,), (1337396747,), (1337396750,), (1337396753,), (1337396755,), (1337396782,), (1337396786,), (1337396788,), (1337396791,), (1337396819,), (1337396821,), (1337396826,), (1337396829,), (1337396833,), (1337396835,), (1337396865,), (1337396869,), (1337396882,), (1337396885,), (1337396890,), (1337396924,), (1337396928,), (1337396930,), (1337396932,), (1337396957,), (1337396959,), (1337396965,), (1337396968,), (1337396971,), (1337396975,), (1337397005,), (1337397016,), (1337397027,), (1337397031,), (1337397117,), (1337397122,), (1337397126,), (1337397129,), (1337397145,), (1337397712,), (1337397970,), (1337398159,), (1337398162,), (1337398164,), (1337398167,), (1337398188,), (1337398190,), (1337398193,), (1337398618,), (1337398620,), (1337398624,), (1337398630,), (1337398637,), (1337398640,), (1337398709,), (1337398668,), (1337398685,), (1337398693,), (1337398700,), (1337398706,), (1337398745,), (1337398748,), (1337398763,), (1337398936,), (1337398950,), (1337399022,), (1337399117,), (1337399128,), (1337399131,), (1337399167,), (1337399170,), (1337399178,), (1337399190,), (1337399196,), (1337399210,), (1337399260,), (1337399262,), (1337399265,), (1337399268,), (1337399323,), (1337399326,), (1337399329,), (1337399334,), (1337399349,), (1337399357,), (1337399385,), (1337399424,), (1337399427,), (1337399429,), (1337399451,), (1337399554,), (1337399557,), (1337399560,), (1337399563,), (1337399566,), (1337399575,), (1337399618,), (1337399621,), (1337399625,), (1337399629,), (1337399632,), (1337399650,), (1337399858,), (1337399861,), (1337399865,), (1337399914,), (1337399917,), (1337399921,), (1337399924,), (1337399927,), (1337399931,), (1337399948,), (1337399950,), (1337399953,), (1337399956,), (1337399960,), (1337399995,), (1337399997,), (1337400000,), (1337400003,), (1337400049,), (1337400059,), (1337400062,), (1337400064,), (1337400066,), (1337400070,), (1337400089,), (1337400092,), (1337400095,), (1337400098,), (1337400104,), (1337400106,), (1337400155,), (1337400132,), (1337400141,), (1337400144,), (1337400194,), (1337400201,), (1337400213,), (1337400216,), (1337400219,), (1337400267,), (1337400270,), (1337400273,), (1337400283,), (1337400285,), (1337400332,), (1337400334,), (1337400336,), (1337400340,), (1337400344,), (1337400918,), (1337400945,), (1337400948,), (1337400951,), (1337400958,), (1337400960,), (1337401160,), (1337401162,), (1337401163,), (1337401205,), (1337401212,), (1337401217,), (1337401219,), (1337401404,), (1337401406,), (1337401455,), (1337401457,), (1337401460,), (1337401463,), (1337401494,), (1337401495,), (1337401498,), (1337401501,), (1337401502,), (1337401529,), (1337401532,), (1337401535,), (1337401537,), (1337401538,), (1337401544,), (1337401566,), (1337401569,), (1337401573,), (1337401682,), (1337401598,), (1337401652,), (1337401670,), (1337401748,), (1337401751,), (1337401755,), (1337401761,), (1337401764,), (1337401767,), (1337401786,), (1337401789,), (1337401847,), (1337401850,), (1337401859,), (1337401863,), (1337401934,), (1337401938,), (1337401941,), (1337401944,), (1337401950,), (1337401953,), (1337401981,), (1337401988,), (1337402021,), (1337402023,), (1337402026,), (1337402030,), (1337402036,), (1337402042,), (1337402069,), (1337402071,), (1337402075,), (1337402077,), (1337402080,), (1337402083,), (1337402125,), (1337402127,), (1337402130,), (1337402133,), (1337402191,), (1337402196,), (1337402222,), (1337402239,), (1337402243,), (1337402260,), (1337402263,), (1337402267,), (1337402270,), (1337402275,), (1337402281,), (1337402307,), (1337402313,), (1337402315,), (1337402394,), (1337402399,), (1337402404,), (1337402407,), (1337402410,), (1337402459,), (1337402464,), (1337402469,), (1337402476,), (1337402484,), (1337402487,), (1337402549,), (1337402541,), (1337402545,), (1337402547,), (1337402598,), (1337402618,), (1337402621,), (1337402624,), (1337402628,), (1337402637,), (1337402659,), (1337402661,), (1337402664,), (1337402667,), (1337402690,), (1337402692,), (1337402695,), (1337402698,), (1337402699,), (1337402758,), (1337402766,), (1337402770,), (1337402852,), (1337402854,), (1337402858,), (1337402860,), (1337402864,), (1337402908,), (1337402963,), (1337403029,), (1337403051,), (1337403228,), (1337403229,), (1337403232,), (1337403245,), (1337403249,), (1337403273,), (1337403362,), (1337403378,), (1337403380,), (1337403391,), (1337403395,), (1337403404,), (1337403490,), (1337403491,), (1337403562,), (1337403564,), (1337403567,), (1337403570,), (1337403676,), (1337403762,), (1337403775,), (1337403778,), (1337403782,), (1337403784,), (1337403841,), (1337403843,), (1337403875,), (1337403878,), (1337403934,), (1337404008,), (1337404226,), (1337404211,), (1337404214,), (1337404218,), (1337404222,), (1337404369,), (1337404372,), (1337404375,), (1337404382,), (1337404407,), (1337404410,), (1337404414,), (1337404418,), (1337404422,), (1337404427,), (1337404519,), (1337404722,), (1337404921,), (1337405214,), (1337405217,), (1337405222,), (1337405226,), (1337405234,), (1337405616,), (1337405620,), (1337405630,), (1337405636,), (1337405658,), (1337405667,), (1337405717,), (1337405765,), (1337405846,), (1337406197,), (1337406200,), (1337406203,), (1337406207,), (1337406214,), (1337406231,), (1337406233,), (1337406237,), (1337406241,), (1337406245,), (1337406250,), (1337406274,), (1337406276,), (1337406280,), (1337406359,), (1337406364,), (1337406366,), (1337406368,), (1337406436,), (1337406443,), (1337406466,), (1337407322,), (1337411725,), (1337411732,), (1337411735,), (1337411787,), (1337412833,), (1337412836,), (1337412840,), (1337412843,), (1337412968,), (1337412970,), (1337412973,), (1337413139,), (1337413143,), (1337413147,), (1337413148,), (1337413151,), (1337413223,), (1337413226,), (1337413229,), (1337413231,), (1337413234,), (1337413301,), (1337413303,), (1337413320,), (1337413364,), (1337413369,), (1337413375,), (1337413395,), (1337413404,), (1337413408,), (1337413414,), (1337413419,), (1337413445,), (1337413454,), (1337413457,), (1337413461,), (1337413464,), (1337413484,), (1337413486,), (1337413489,), (1337413636,), (1337413639,), (1337413642,), (1337413646,), (1337413840,), (1337413743,), (1337413745,), (1337413783,), (1337413835,), (1337413879,), (1337413881,), (1337413884,), (1337413887,), (1337413891,), (1337413912,), (1337413914,), (1337413917,), (1337413921,), (1337413943,), (1337413946,), (1337413950,), (1337413954,), (1337413956,), (1337413989,), (1337413992,), (1337413995,), (1337413999,), (1337414005,), (1337414030,), (1337414045,), (1337414055,), (1337414060,), (1337414064,), (1337415039,), (1337415042,), (1337415046,), (1337415050,), (1337415053,), (1337415057,), (1337415072,), (1337415304,), (1337415394,), (1337415408,), (1337415537,), (1337415540,), (1337415543,), (1337415546,), (1337415551,), (1337415554,), (1337415569,), (1337415593,), (1337415596,), (1337415600,), (1337415675,), (1337415678,), (1337415682,), (1337415685,), (1337415690,), (1337415710,), (1337415713,), (1337415717,), (1337415720,), (1337415723,), (1337415743,), (1337415754,), (1337415759,), (1337415762,), (1337415790,), (1337415794,), (1337415798,), (1337415835,), (1337415842,), (1337415844,), (1337415848,), (1337415850,), (1337415976,), (1337415876,), (1337415880,), (1337415884,), (1337415888,), (1337415959,), (1337416082,), (1337416087,), (1337416090,), (1337416328,), (1337416331,), (1337416340,), (1337416388,), (1337416391,), (1337416395,), (1337416398,), (1337416404,), (1337416431,), (1337416434,), (1337416441,), (1337416449,), (1337416507,), (1337416510,), (1337416662,), (1337416763,), (1337417001,), (1337417009,), (1337417397,), (1337417399,), (1337417403,), (1337417407,), (1337417735,), (1337417751,), (1337417755,), (1337417759,), (1337417809,), (1337417821,), (1337417906,), (1337417908,), (1337417911,), (1337417914,), (1337417916,), (1337417919,), (1337417942,), (1337417943,), (1337417945,), (1337417947,), (1337417984,), (1337417986,), (1337417989,), (1337417991,), (1337417994,), (1337418022,), (1337418025,), (1337418028,), (1337418030,), (1337418031,), (1337418034,), (1337418058,), (1337418059,), (1337418063,), (1337418107,), (1337418109,), (1337418112,), (1337418115,), (1337418117,), (1337418139,), (1337418283,), (1337418285,), (1337418287,), (1337418337,), (1337418327,), (1337418329,), (1337418332,), (1337418541,), (1337418548,), (1337418587,), (1337418602,), (1337418607,), (1337418620,), (1337418723,), (1337418725,), (1337418729,), (1337418738,), (1337418792,), (1337418795,), (1337418822,), (1337418823,), (1337418869,), (1337418872,), (1337418876,), (1337418879,), (1337418883,), (1337418885,), (1337418908,), (1337418911,), (1337418915,), (1337418939,), (1337418941,), (1337418944,), (1337418948,), (1337418953,), (1337419015,), (1337419019,), (1337419023,), (1337419036,), (1337419041,), (1337419101,), (1337419110,), (1337419115,), (1337419128,), (1337419136,), (1337419139,), (1337419161,), (1337419164,), (1337419168,), (1337419319,), (1337419322,), (1337419328,), (1337419330,), (1337419334,), (1337419339,), (1337419380,), (1337419388,), (1337419392,), (1337419395,), (1337419399,), (1337419401,), (1337419796,), (1337419800,), (1337419804,), (1337419815,), (1337419820,), (1337419823,), (1337419824,), (1337419826,), (1337419893,), (1337419869,), (1337419887,), (1337419891,), (1337421180,), (1337421259,), (1337421368,), (1337422233,), (1337422235,), (1337422238,), (1337422241,), (1337422244,), (1337422668,), (1337422670,), (1337422673,), (1337422815,), (1337422817,), (1337422830,), (1337422833,), (1337422846,), (1337422864,), (1337422868,), (1337422871,), (1337422874,), (1337422894,), (1337422897,), (1337422900,), (1337422904,), (1337422909,), (1337422911,), (1337422927,), (1337422929,), (1337422932,), (1337422935,), (1337422940,), (1337423135,), (1337423138,), (1337423142,), (1337423157,), (1337423160,), (1337423184,), (1337423186,), (1337423189,), (1337423193,), (1337423547,), (1337423430,), (1337423480,), (1337423493,), (1337423497,), (1337423545,), (1337424186,), (1337424275,), (1337424361,), (1337424454,), (1337424693,), (1337424765,), (1337424856,), (1337424899,), (1337424989,), (1337424993,), (1337424997,), (1337425005,), (1337425008,), (1337425396,), (1337425400,), (1337425403,), (1337425406,), (1337425464,), (1337425522,), (1337425610,), (1337425732,), (1337425878,), (1337425937,), (1337426071,), (1337426074,), (1337426076,), (1337426079,), (1337426082,), (1337426085,), (1337426105,), (1337426111,), (1337426121,), (1337426124,), (1337426155,), (1337426158,), (1337426161,), (1337426163,), (1337426165,), (1337426168,), (1337426187,), (1337426189,), (1337426202,), (1337426205,), (1337426233,), (1337426245,), (1337426248,), (1337426308,), (1337426350,), (1337426412,), (1337426414,), (1337426417,), (1337426420,), (1337426464,), (1337426494,), (1337426499,), (1337426505,), (1337426508,), (1337426534,), (1337426537,), (1337426540,), (1337426544,), (1337426548,), (1337426595,), (1337426597,), (1337426616,), (1337426644,), (1337426774,), (1337426762,), (1337426765,), (1337426768,), (1337426771,), (1337426797,), (1337426799,), (1337426805,), (1337426813,), (1337426853,), (1337426855,), (1337426858,), (1337426861,), (1337426863,), (1337426912,), (1337426926,), (1337426928,), (1337426930,), (1337426933,), (1337426957,), (1337426962,), (1337426965,), (1337426967,), (1337426993,), (1337426997,), (1337427001,), (1337427004,), (1337427009,), (1337427012,), (1337427031,), (1337427035,), (1337427038,), (1337427041,), (1337427044,), (1337427068,), (1337427078,), (1337427084,), (1337427108,), (1337427111,), (1337427114,), (1337427116,), (1337427144,), (1337427146,), (1337427149,), (1337427194,), (1337427196,), (1337427386,), (1337427392,), (1337427407,), (1337427432,), (1337427499,), (1337427502,), (1337427505,), (1337427901,), (1337427897,), (1337427932,), (1337427934,), (1337427969,), (1337428003,), (1337428007,), (1337428025,), (1337428029,), (1337428034,), (1337428040,), (1337428045,), (1337428258,), (1337428274,), (1337428278,), (1337428301,), (1337428304,), (1337428509,), (1337428512,), (1337428920,), (1337428988,), (1337429082,), (1337429157,), (1337429767,), (1337429865,), (1337429957,), (1337430041,), (1337430103,), (1337430105,), (1337430147,), (1337430157,), (1337430179,), (1337430182,), (1337430186,), (1337430188,), (1337430388,), (1337430453,), (1337430552,), (1337430644,), (1337430996,), (1337431000,), (1337431004,), (1337431010,), (1337431049,), (1337431138,), (1337431342,), (1337431333,), (1337431335,), (1337431338,), (1337431569,), (1337431640,), (1337431643,), (1337431646,), (1337431650,), (1337431655,), (1337431682,), (1337431685,), (1337431689,), (1337431692,), (1337431695,), (1337431698,), (1337431726,), (1337431729,), (1337431733,), (1337431737,), (1337431757,), (1337431762,), (1337431765,), (1337431769,), (1337431772,), (1337431778,), (1337431802,), (1337431808,), (1337431813,), (1337431815,), (1337431820,), (1337431856,), (1337432272,), (1337432375,), (1337432457,), (1337432944,), (1337432946,), (1337432956,), (1337432965,), (1337432968,), (1337432975,), (1337433310,), (1337433314,), (1337433317,), (1337433325,), (1337433328,), (1337433337,), (1337433368,), (1337433370,), (1337433428,), (1337433483,), (1337433679,), (1337433684,), (1337433686,), (1337434082,), (1337434121,), (1337434143,), (1337434167,), (1337434210,), (1337434217,), (1337434224,), (1337434228,), (1337434231,), (1337434253,), (1337434256,), (1337434260,), (1337434290,), (1337434294,), (1337434299,), (1337434456,), (1337434415,), (1337434445,), (1337434504,), (1337434509,), (1337434511,), (1337434527,), (1337434546,), (1337434549,), (1337434560,), (1337434564,), (1337434568,), (1337434587,), (1337434710,), (1337434723,), (1337434727,), (1337434779,), (1337434781,), (1337434797,), (1337434801,), (1337434804,), (1337434923,), (1337434929,), (1337434939,), (1337434981,), (1337434983,), (1337434986,), (1337434989,), (1337434991,), (1337435016,), (1337435020,), (1337435043,), (1337435046,), (1337435050,), (1337435054,), (1337435090,), (1337435093,), (1337435096,), (1337435100,), (1337435130,), (1337435135,), (1337435139,), (1337435144,), (1337435148,), (1337435256,), (1337435262,), (1337435268,), (1337435271,), (1337435296,), (1337435304,), (1337435306,), (1337435371,), (1337435379,), (1337435387,), (1337435390,), (1337435393,), (1337435395,), (1337435429,), (1337435416,), (1337435419,), (1337435425,), (1337435672,), (1337435674,), (1337435677,), (1337435719,), (1337435721,), (1337435945,), (1337436207,), (1337436248,), (1337436448,), (1337436485,), (1337436488,), (1337436514,), (1337436544,), (1337436791,), (1337436793,), (1337436796,), (1337436799,), (1337436824,), (1337436832,), (1337436835,), (1337436837,), (1337436840,), (1337436843,), (1337436885,), (1337436891,), (1337436896,), (1337436899,), (1337436901,), (1337436922,), (1337436936,), (1337436939,), (1337436942,), (1337436967,), (1337436969,), (1337436973,), (1337436977,), (1337436996,), (1337437023,), (1337437025,), (1337437027,), (1337437032,), (1337437040,), (1337437067,), (1337437069,), (1337437073,), (1337437076,), (1337441421,), (1337441417,), (1337441589,), (1337441701,), (1337441805,), (1337441808,), (1337441849,), (1337441852,), (1337441856,), (1337441860,), (1337442307,), (1337442310,), (1337442314,), (1337442317,), (1337442394,), (1337442465,), (1337442490,), (1337442536,), (1337442514,), (1337442526,), (1337442532,), (1337442571,), (1337442573,), (1337442576,), (1337442579,), (1337442591,), (1337442667,), (1337442668,), (1337442670,), (1337442898,), (1337443000,), (1337444742,), (1337444744,), (1337444819,), (1337444821,), (1337444822,), (1337444825,), (1337444856,), (1337444858,), (1337444859,), (1337447788,), (1337447954,), (1337447956,), (1337447960,), (1337447963,), (1337447966,), (1337447989,), (1337447990,), (1337448021,), (1337448022,), (1337448024,), (1337448026,), (1337448028,), (1337448051,), (1337448053,), (1337448056,), (1337448059,), (1337448079,), (1337448081,), (1337448127,), (1337448147,), (1337448160,), (1337448163,), (1337448201,), (1337448203,), (1337448206,), (1337448209,), (1337448245,), (1337448247,), (1337448250,), (1337448300,), (1337448304,), (1337448308,), (1337448314,), (1337448319,), (1337448331,), (1337448332,), (1337448336,), (1337448337,), (1337448345,), (1337448346,), (1337448382,), (1337448368,), (1337448374,), (1337448378,), (1337448380,), (1337448417,), (1337448419,), (1337448422,), (1337448424,), (1337448426,), (1337448429,), (1337448455,), (1337448456,), (1337448458,), (1337448460,), (1337448503,), (1337448516,), (1337448541,), (1337448542,), (1337448544,), (1337448546,), (1337448548,), (1337448549,), (1337448609,), (1337448846,), (1337449104,), (1337449363,), (1337449437,), (1337449619,), (1337449620,), (1337449632,), (1337449635,), (1337450082,), (1337450084,), (1337450086,), (1337450089,), (1337450203,), (1337450204,), (1337450207,), (1337450208,), (1337450210,), (1337450214,), (1337450247,), (1337450253,), (1337450255,), (1337450257,), (1337450284,), (1337450287,), (1337450290,), (1337450294,), (1337450298,), (1337450302,), (1337450325,), (1337450400,), (1337450409,), (1337450413,), (1337450417,), (1337450454,), (1337450459,), (1337450469,), (1337450473,), (1337450497,), (1337450499,), (1337450502,), (1337450505,), (1337450508,), (1337450583,), (1337450542,), (1337450543,), (1337450545,), (1337450550,), (1337451228,), (1337451388,), (1337451418,), (1337451543,), (1337451570,), (1337451572,), (1337451623,), (1337451624,), (1337451626,), (1337451628,), (1337451683,), (1337451752,), (1337451753,), (1337451755,), (1337451757,), (1337451758,), (1337451760,), (1337451775,), (1337451777,), (1337451780,), (1337451782,), (1337451783,), (1337451808,), (1337451812,), (1337451817,), (1337451820,), (1337451884,), (1337451887,), (1337451890,), (1337451893,), (1337451938,), (1337451941,), (1337451960,), (1337451973,), (1337451976,), (1337452030,), (1337452168,), (1337452171,), (1337452205,), (1337452208,), (1337452211,), (1337452233,), (1337452249,), (1337452252,), (1337452254,), (1337452256,), (1337452257,), (1337452271,), (1337452275,), (1337452278,), (1337452281,), (1337452284,), (1337452374,), (1337452376,), (1337452379,), (1337452407,), (1337452397,), (1337452399,), (1337452402,), (1337452405,), (1337452579,), (1337452581,), (1337452584,), (1337452587,), (1337452601,), (1337452604,), (1337452607,), (1337452614,), (1337452621,), (1337452653,), (1337452664,), (1337452669,), (1337452672,), (1337452675,), (1337452677,), (1337452704,), (1337452711,), (1337452714,), (1337452717,), (1337452719,), (1337452721,), (1337453652,), (1337453654,), (1337453659,), (1337454262,), (1337454288,), (1337454292,), (1337454296,), (1337454300,), (1337454304,), (1337454312,), (1337454319,), (1337454324,), (1337454331,), (1337454332,), (1337454333,), (1337454352,), (1337454354,), (1337454390,), (1337454393,), (1337454397,), (1337454401,), (1337454411,), (1337454414,), (1337454466,), (1337454482,), (1337454495,), (1337454497,), (1337454548,), (1337454569,), (1337454575,), (1337454584,), (1337454587,), (1337454675,), (1337454679,), (1337454684,), (1337454688,), (1337454689,), (1337454710,), (1337454720,), (1337454733,), (1337454737,), (1337454740,), (1337454741,), (1337454753,), (1337454756,), (1337454759,), (1337454762,), (1337454766,), (1337454868,), (1337454789,), (1337454792,), (1337454796,), (1337454851,), (1337454917,), (1337454923,), (1337454934,), (1337454939,), (1337455017,), (1337455087,), (1337455096,), (1337455103,), (1337455135,), (1337455137,), (1337455141,), (1337455143,), (1337455216,), (1337455219,), (1337455234,), (1337455241,), (1337455243,), (1337456136,), (1337456138,), (1337456141,), (1337456144,), (1337456537,), (1337456541,), (1337456551,), (1337456555,), (1337456616,), (1337456631,), (1337456670,), (1337456672,), (1337456675,), (1337456678,), (1337456680,), (1337456682,), (1337456760,), (1337456762,), (1337456765,), (1337456838,), (1337456840,), (1337456842,), (1337456845,), (1337456849,), (1337456851,), (1337456861,), (1337456864,), (1337456867,), (1337456873,), (1337456880,), (1337456881,), (1337456900,), (1337456903,), (1337456906,), (1337457212,), (1337457214,), (1337457217,), (1337457220,), (1337457222,), (1337457272,), (1337457392,), (1337457394,), (1337457396,), (1337457399,), (1337457402,), (1337457404,), (1337457501,), (1337457425,), (1337457427,), (1337457474,), (1337457493,), (1337457564,), (1337457576,), (1337457580,), (1337457584,), (1337457587,), (1337457603,), (1337457606,), (1337457610,), (1337458203,), (1337458207,), (1337458211,), (1337458215,), (1337458220,), (1337458561,), (1337458565,), (1337458567,), (1337458569,), (1337458571,), (1337458573,), (1337458592,), (1337458594,), (1337458596,), (1337458611,), (1337458613,), (1337458616,), (1337458619,), (1337458621,), (1337458623,), (1337458640,), (1337458642,), (1337458650,), (1337458656,), (1337458657,), (1337458689,), (1337458691,), (1337458694,), (1337458697,), (1337458736,), (1337458737,), (1337458740,), (1337458743,), (1337458756,), (1337458782,), (1337458786,), (1337458790,), (1337458793,), (1337458819,), (1337458821,), (1337458823,), (1337458827,), (1337458842,), (1337458844,), (1337458847,), (1337458849,), (1337458852,), (1337458855,), (1337458880,), (1337458884,), (1337458887,), (1337458902,), (1337458903,), (1337458946,), (1337458948,), (1337458982,), (1337458967,), (1337458969,), (1337458972,), (1337458975,), (1337458978,), (1337459269,), (1337459271,), (1337459276,), (1337459355,), (1337459426,), (1337459429,), (1337459436,), (1337459439,), (1337459442,), (1337459486,), (1337459488,), (1337459518,), (1337459522,), (1337459533,), (1337459536,), (1337459539,), (1337459577,), (1337459593,), (1337459617,), (1337459620,), (1337459622,), (1337459637,), (1337459641,), (1337459652,), (1337459660,), (1337459664,), (1337459682,), (1337459685,), (1337459689,), (1337459692,), (1337459694,), (1337459714,), (1337459716,), (1337459722,), (1337459736,), (1337459739,), (1337459742,), (1337459759,), (1337459761,), (1337459827,), (1337459842,), (1337459901,), (1337459902,), (1337459903,), (1337459905,), (1337459908,), (1337459909,), (1337459931,), (1337459932,), (1337459934,), (1337459936,), (1337459937,), (1337459940,), (1337460137,), (1337460138,), (1337460140,), (1337460188,), (1337460189,), (1337460191,), (1337460193,), (1337460217,), (1337460219,), (1337460221,), (1337460228,), (1337460236,), (1337460240,), (1337460284,), (1337460276,), (1337460279,), (1337460282,), (1337460348,), (1337460349,), (1337460351,), (1337460353,), (1337460405,), (1337460406,), (1337460408,), (1337462256,), (1337462522,), (1337462524,), (1337462532,), (1337462533,), (1337462560,), (1337462561,), (1337462563,), (1337462568,), (1337462662,), (1337462663,), (1337462665,), (1337462667,), (1337462700,), (1337462701,), (1337462703,), (1337462705,), (1337462706,), (1337462727,), (1337462728,), (1337462730,), (1337462732,), (1337462734,), (1337462775,), (1337462777,), (1337462781,), (1337462782,), (1337462784,), (1337462807,), (1337462809,), (1337462811,), (1337462852,), (1337462843,), (1337462844,), (1337462846,), (1337462848,), (1337462851,), (1337462890,), (1337462891,), (1337462893,), (1337462894,), (1337462933,), (1337462939,), (1337462943,), (1337462945,), (1337463588,), (1337463601,), (1337463613,), (1337463618,), (1337463619,), (1337463977,), (1337463992,), (1337463996,), (1337463998,), (1337464000,), (1337464030,), (1337464031,), (1337464033,), (1337464035,), (1337464037,), (1337464061,), (1337464063,), (1337464105,), (1337464112,), (1337464116,), (1337464118,), (1337464120,), (1337464122,), (1337464148,), (1337464157,), (1337464159,), (1337464160,), (1337464162,), (1337464163,), (1337464176,), (1337464177,), (1337464179,), (1337464197,), (1337464199,), (1337464201,), (1337464203,), (1337464218,), (1337464219,), (1337464221,), (1337464222,), (1337464226,), (1337464229,), (1337464246,), (1337464247,), (1337464249,), (1337464254,), (1337464260,), (1337464304,), (1337464307,), (1337464313,), (1337464476,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13022025': {'nb_upload': 23, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20523199]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] map_info['map_portfolio_photo'] : {20523199: [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514]} final : True mtd_id 4302 list_pids : [1337447788, 1337444859, 1337444858, 1337444856, 1337444825, 1337444822, 1337444821, 1337444819, 1337444744, 1337444742, 1337443000, 1337442898, 1337442670, 1337442668, 1337442667, 1337442591, 1337442579, 1337442576, 1337442573, 1337442571, 1337442532, 1337442526, 1337442514] Looping around the photos to save general results len do output : 1 /20523199Didn'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, '2585383') ('4302', '20523199', '1337447788', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444859', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444858', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444856', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444825', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444822', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444821', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444819', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444744', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337444742', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337443000', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442898', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442670', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442668', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442667', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442591', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442579', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442576', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442573', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442571', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442532', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442526', None, None, None, None, None, '2585383') ('4302', None, None, None, None, None, None, None, '2585383') ('4302', '20523199', '1337442514', None, None, None, None, None, '2585383') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '20523199', 'None', None, None, None, None, '2585383'), ('4302', '20523199', '1337447788', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444859', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444858', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444856', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444825', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444822', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444821', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444819', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444744', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337444742', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337443000', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442898', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442670', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442668', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442667', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442591', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442579', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442576', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442573', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442571', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442532', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442526', None, None, None, None, None, '2585383'), ('4302', '20523199', '1337442514', None, None, None, None, None, '2585383')] time used for this insertion : 0.017574071884155273 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1241118907928467 time spend to save output : 0.01775383949279785 total time spend for step 5 : 3.1418657302856445 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 (2585383) 2.67user 2.39system 0:15.15elapsed 33%CPU (0avgtext+0avgdata 161244maxresident)k 784inputs+19048outputs (1major+75228minor)pagefaults 0swaps