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 : 549050 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 (2614690) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2614690) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819025 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2614690'] with mtr_portfolio_ids : ['20819025'] and first list_photo_ids : [] new path : /proc/549050/ Name: python3 Umask: 0002 State: R (running) Tgid: 549050 Ngid: 0 Pid: 549050 PPid: 549049 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 549050 NSpid: 549050 NSpgid: 546457 NSsid: 546457 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98384 kB VmRSS: 98384 kB RssAnon: 59764 kB RssFile: 38620 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 59 nonvoluntary_ctxt_switches: 145 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '549050', 'Ngid': '0', 'Pid': '549050', 'PPid': '549049', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '549050', 'NSpid': '549050', 'NSpgid': '546457', 'NSsid': '546457', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98384 kB', 'VmRSS': '98384 kB', 'RssAnon': '59764 kB', 'RssFile': '38620 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '59', 'nonvoluntary_ctxt_switches': '145'} ('datou_batch_current', '549050', '1106844', '0', '1106844', '865592', '98384', b'', 'marlene', '2614690') 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 (20819025) 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 (2614690 ) ) 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 (20819025) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339603889, 'portfolio_id': 20819025}, {'photo_id': 1339603489, 'portfolio_id': 20819025}, {'photo_id': 1339603481, 'portfolio_id': 20819025}, {'photo_id': 1339603460, 'portfolio_id': 20819025}, {'photo_id': 1339603457, 'portfolio_id': 20819025}, {'photo_id': 1339603453, 'portfolio_id': 20819025}, {'photo_id': 1339603435, 'portfolio_id': 20819025}, {'photo_id': 1339603404, 'portfolio_id': 20819025}, {'photo_id': 1339603385, 'portfolio_id': 20819025}, {'photo_id': 1339603375, 'portfolio_id': 20819025}, {'photo_id': 1339603310, 'portfolio_id': 20819025}, {'photo_id': 1339603306, 'portfolio_id': 20819025}, {'photo_id': 1339602983, 'portfolio_id': 20819025}, {'photo_id': 1339601688, 'portfolio_id': 20819025}, {'photo_id': 1339601683, 'portfolio_id': 20819025}, {'photo_id': 1339601645, 'portfolio_id': 20819025}, {'photo_id': 1339601351, 'portfolio_id': 20819025}] map_portfolio_id_photo_id: {20819025: [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351]} ##### 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.02728104591369629 #### 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 Wed Feb 26 06:06:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20819025) 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 : 20819025 get user id for portfolio 20819025 get sub ptf for main ptf 20819025, type 3726 and hashtags ['papier', 'autre_refus', 'cartonnette', 'Carton_gris', 'Carton_brun', 'plastique', 'environnement', 'kraft', 'flou', 'Teint_Dans_La_Masse', 'metal', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20819025 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','cartonnette','Carton_gris','Carton_brun','plastique','environnement','kraft','flou','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20819025 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','cartonnette','Carton_gris','Carton_brun','plastique','environnement','kraft','flou','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20819025, 'sub_port_id': 20819027, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455698, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'metal': {'main_port_id': 20819025, 'sub_port_id': 20819028, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455699, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'Carton_gris': {'main_port_id': 20819025, 'sub_port_id': 20819029, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455700, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'environnement': {'main_port_id': 20819025, 'sub_port_id': 20819030, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455701, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'mal_croppe': {'main_port_id': 20819025, 'sub_port_id': 20819031, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455702, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'cartonnette': {'main_port_id': 20819025, 'sub_port_id': 20819032, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455703, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20819025, 'sub_port_id': 20819033, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455704, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'flou': {'main_port_id': 20819025, 'sub_port_id': 20819034, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455705, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'papier': {'main_port_id': 20819025, 'sub_port_id': 20819035, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455706, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'autre_refus': {'main_port_id': 20819025, 'sub_port_id': 20819036, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455707, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'Carton_brun': {'main_port_id': 20819025, 'sub_port_id': 20819037, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455708, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}, 'plastique': {'main_port_id': 20819025, 'sub_port_id': 20819038, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455709, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 12, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819027 , 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=20819025 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 (20819027) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819028 , 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=20819025 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 (20819028) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819029 , 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=20819025 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 (20819029) result : ((1339604097,), (1339604098,), (1339604099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819030 , 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=20819025 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 (20819030) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819031 , 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=20819025 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 (20819031) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819032 , 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=20819025 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 (20819032) result : ((1339602976,), (1339604102,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819033 , 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=20819025 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 (20819033) result : ((1339602975,), (1339603478,), (1339603479,), (1339604092,), (1339604093,), (1339604094,), (1339604109,), (1339604110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819034 , 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=20819025 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 (20819034) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819035 , 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=20819025 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 (20819035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819036 , 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=20819025 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 (20819036) result : ((1339603285,), (1339603428,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819037 , 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=20819025 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 (20819037) result : ((1339602977,), (1339603287,), (1339603429,), (1339603430,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20819038 , 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=20819025 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 (20819038) result : ((1339604104,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20819025) result : ((1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20819025 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','cartonnette','Carton_gris','Carton_brun','plastique','environnement','kraft','flou','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20819025 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','cartonnette','Carton_gris','Carton_brun','plastique','environnement','kraft','flou','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20819025, 'sub_port_id': 20819039, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455710, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'metal': {'main_port_id': 20819025, 'sub_port_id': 20819040, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455711, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'Carton_gris': {'main_port_id': 20819025, 'sub_port_id': 20819041, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455712, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'environnement': {'main_port_id': 20819025, 'sub_port_id': 20819042, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455713, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'mal_croppe': {'main_port_id': 20819025, 'sub_port_id': 20819043, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455714, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'cartonnette': {'main_port_id': 20819025, 'sub_port_id': 20819044, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455715, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'Teint_Dans_La_Masse': {'main_port_id': 20819025, 'sub_port_id': 20819045, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455716, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'flou': {'main_port_id': 20819025, 'sub_port_id': 20819046, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455717, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'papier': {'main_port_id': 20819025, 'sub_port_id': 20819047, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455718, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'autre_refus': {'main_port_id': 20819025, 'sub_port_id': 20819048, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455719, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'Carton_brun': {'main_port_id': 20819025, 'sub_port_id': 20819049, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455720, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}, 'plastique': {'main_port_id': 20819025, 'sub_port_id': 20819050, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13455721, 'last_updated_at': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 21, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 21, 13)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819039,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819027 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819040,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20819050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20819038 lien utilise dans velours : https://www.fotonower.com/velours/20819039,20819040,20819041,20819042,20819043,20819044,20819045,20819046,20819047,20819048,20819049,20819050?tags=kraft,metal,Carton_gris,environnement,mal_croppe,cartonnette,Teint_Dans_La_Masse,flou,papier,autre_refus,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20819025]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] map_info['map_portfolio_photo'] : {20819025: [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351]} final : False mtd_id 4302 list_pids : [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] Looping around the photos to save general results len do output : 1 /20819025. 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, '2614690') ('4302', '20819025', '1339603889', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603489', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603481', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603460', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603457', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603453', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603435', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603404', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603385', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603375', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603310', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603306', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339602983', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601688', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601683', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601645', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601351', None, None, None, None, None, '2614690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '20819025', "{'kraft': 20819027, 'metal': 20819028, 'Carton_gris': 20819029, 'environnement': 20819030, 'mal_croppe': 20819031, 'cartonnette': 20819032, 'Teint_Dans_La_Masse': 20819033, 'flou': 20819034, 'papier': 20819035, 'autre_refus': 20819036, 'Carton_brun': 20819037, 'plastique': 20819038}", None, None, None, None, '2614690'), ('4302', '20819025', '1339603889', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603489', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603481', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603460', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603457', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603453', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603435', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603404', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603385', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603375', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603310', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603306', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339602983', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601688', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601683', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601645', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601351', None, None, None, None, None, '2614690')] time used for this insertion : 0.13409042358398438 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4367411136627197 time spend to save output : 0.13446545600891113 total time spend for step 1 : 1.5712065696716309 step2:final Wed Feb 26 06:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20819025) 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 20819025 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339601351,1339601645,1339601688,1339601683,1339602983,1339603310,1339603306,1339603385,1339603404,1339603375,1339603435,1339603460,1339603457,1339603453,1339603489,1339603481,1339603889); 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([20819025]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} new output for save of step final : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] map_info['map_portfolio_photo'] : {20819025: [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351]} final : False mtd_id 4302 list_pids : [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] Looping around the photos to save general results len do output : 17 /1339603889.Didn't retrieve data . /1339603489.Didn't retrieve data . /1339603481.Didn't retrieve data . /1339603460.Didn't retrieve data . /1339603457.Didn't retrieve data . /1339603453.Didn't retrieve data . /1339603435.Didn't retrieve data . /1339603404.Didn't retrieve data . /1339603385.Didn't retrieve data . /1339603375.Didn't retrieve data . /1339603310.Didn't retrieve data . /1339603306.Didn't retrieve data . /1339602983.Didn't retrieve data . /1339601688.Didn't retrieve data . /1339601683.Didn't retrieve data . /1339601645.Didn't retrieve data . /1339601351.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, '2614690') ('4302', '20819025', '1339603889', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603489', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603481', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603460', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603457', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603453', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603435', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603404', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603385', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603375', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603310', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603306', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339602983', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601688', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601683', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601645', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601351', None, None, None, None, None, '2614690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '20819025', '1339603889', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603489', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603481', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603460', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603457', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603453', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603435', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603404', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603385', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603375', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603310', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339603306', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339602983', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339601688', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339601683', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339601645', '0.09072138616566583', None, None, None, None, '2614690'), ('4302', '20819025', '1339601351', '0.09072138616566583', None, None, None, None, '2614690')] time used for this insertion : 0.020672082901000977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06103825569152832 time spend to save output : 0.02154374122619629 total time spend for step 2 : 0.08258199691772461 step3:velours_tree Wed Feb 26 06:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20819025: [{'kraft': 20819027, 'metal': 20819028, 'Carton_gris': 20819029, 'environnement': 20819030, 'mal_croppe': 20819031, 'cartonnette': 20819032, 'Teint_Dans_La_Masse': 20819033, 'flou': 20819034, 'papier': 20819035, 'autre_refus': 20819036, 'Carton_brun': 20819037, 'plastique': 20819038}]} input_args_next_step : {20819025: ()} output_args : {20819025: [{'kraft': 20819027, 'metal': 20819028, 'Carton_gris': 20819029, 'environnement': 20819030, 'mal_croppe': 20819031, 'cartonnette': 20819032, 'Teint_Dans_La_Masse': 20819033, 'flou': 20819034, 'papier': 20819035, 'autre_refus': 20819036, 'Carton_brun': 20819037, 'plastique': 20819038}]} args : 20819025 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 20819027, 'metal': 20819028, 'Carton_gris': 20819029, 'environnement': 20819030, 'mal_croppe': 20819031, 'cartonnette': 20819032, 'Teint_Dans_La_Masse': 20819033, 'flou': 20819034, 'papier': 20819035, 'autre_refus': 20819036, 'Carton_brun': 20819037, 'plastique': 20819038},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20819025) 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([20819025]) 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.31767797470092773 time spend to save output : 4.3392181396484375e-05 total time spend for step 3 : 0.3177213668823242 step4:send_mail_cod Wed Feb 26 06:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} input_args_next_step : {1339603889: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603889 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603489 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603481 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603460 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603457 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603453 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603435 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603404 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603385 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603375 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603310 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339603306 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339602983 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339601688 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339601683 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339601645 depend.output_id : 0 input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ()} output_args : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',)} args : 1339601351 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 : {20819025: [{'kraft': 20819027, 'metal': 20819028, 'Carton_gris': 20819029, 'environnement': 20819030, 'mal_croppe': 20819031, 'cartonnette': 20819032, 'Teint_Dans_La_Masse': 20819033, 'flou': 20819034, 'papier': 20819035, 'autre_refus': 20819036, 'Carton_brun': 20819037, 'plastique': 20819038}]} input_args_next_step : {1339603889: ('0.09072138616566583',), 1339603489: ('0.09072138616566583',), 1339603481: ('0.09072138616566583',), 1339603460: ('0.09072138616566583',), 1339603457: ('0.09072138616566583',), 1339603453: ('0.09072138616566583',), 1339603435: ('0.09072138616566583',), 1339603404: ('0.09072138616566583',), 1339603385: ('0.09072138616566583',), 1339603375: ('0.09072138616566583',), 1339603310: ('0.09072138616566583',), 1339603306: ('0.09072138616566583',), 1339602983: ('0.09072138616566583',), 1339601688: ('0.09072138616566583',), 1339601683: ('0.09072138616566583',), 1339601645: ('0.09072138616566583',), 1339601351: ('0.09072138616566583',), 20819025: ()} output_args : {20819025: [{'kraft': 20819027, 'metal': 20819028, 'Carton_gris': 20819029, 'environnement': 20819030, 'mal_croppe': 20819031, 'cartonnette': 20819032, 'Teint_Dans_La_Masse': 20819033, 'flou': 20819034, 'papier': 20819035, 'autre_refus': 20819036, 'Carton_brun': 20819037, 'plastique': 20819038}]} args : 20819025 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 :18, first value : ('0.09072138616566583',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20819025) 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 (1339603889,1339603489,1339603481,1339603460,1339603457,1339603453,1339603435,1339603404,1339603385,1339603375,1339603310,1339603306,1339602983,1339601688,1339601683,1339601645,1339601351) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339601351 begin to download photo : 1339602983 begin to download photo : 1339603385 begin to download photo : 1339603457 begin to download photo : 1339603889 download finish for photo 1339602983 begin to download photo : 1339603306 download finish for photo 1339603889 download finish for photo 1339603457 begin to download photo : 1339603460 download finish for photo 1339601351 begin to download photo : 1339601645 download finish for photo 1339603385 begin to download photo : 1339603404 download finish for photo 1339603460 begin to download photo : 1339603481 download finish for photo 1339603306 begin to download photo : 1339603310 download finish for photo 1339603404 begin to download photo : 1339603435 download finish for photo 1339601645 begin to download photo : 1339601683 download finish for photo 1339603481 begin to download photo : 1339603489 download finish for photo 1339601683 begin to download photo : 1339601688 download finish for photo 1339603435 begin to download photo : 1339603453 download finish for photo 1339603310 begin to download photo : 1339603375 download finish for photo 1339601688 download finish for photo 1339603489 download finish for photo 1339603453 download finish for photo 1339603375 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208190271740546419/ imagette208190281740546419/ imagette208190311740546419/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P20819025_26-02-2025_06_06_59.pdf 20819027 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=20819027 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208190271740546419 20819028 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=20819028 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208190281740546419 20819031 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=20819031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208190311740546419 20819032 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=20819032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339602976: '1740514073_1934490_1339601645_f3923e931baff9507e782184e8a3d62b_rle_crop_3686780446_0.png', 1339604102: '1740514911_1943439_1339603457_45625610bbc26df31a5af70e53beaa44_rle_crop_3686795619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/113f05b697c8e0b1c6a1f463fc5f9d6b_74268281.png change filename to text .imagette208190321740546419/ imagette208190321740546419/1740514911_1943439_1339603457_45625610bbc26df31a5af70e53beaa44_rle_crop_3686795619_0.png.png imagette208190321740546419/1740514073_1934490_1339601645_f3923e931baff9507e782184e8a3d62b_rle_crop_3686780446_0.png.png imagette208190341740546419/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f26f06b579cbf7aea42f2dc4adf401c4_29129877.png imagette208190321740546419 20819034 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=20819034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208190341740546419 20819036 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=20819036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339603285: '1740514191_1935772_1339602983_d919f5dcbb61354de27400b722ddd422_rle_crop_3686780617_0.png', 1339603428: '1740514370_1937428_1339603385_b43109530dcc7467d4fccc271d86e93e_rle_crop_3686781295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f50375cf680d0dbea4d89250a45c0387_11365940.png change filename to text .imagette208190361740546419/ imagette208190361740546419/1740514370_1937428_1339603385_b43109530dcc7467d4fccc271d86e93e_rle_crop_3686781295_0.png.png imagette208190361740546419/1740514191_1935772_1339602983_d919f5dcbb61354de27400b722ddd422_rle_crop_3686780617_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/784576643f57ec07be8c206dd4e6b2da_80464913.png imagette208190361740546419 20819038 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=20819038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339604104: '1740514911_1943439_1339603457_45625610bbc26df31a5af70e53beaa44_rle_crop_3686795613_0.png'} change filename to text .imagette208190381740546420/ imagette208190381740546420/1740514911_1943439_1339603457_45625610bbc26df31a5af70e53beaa44_rle_crop_3686795613_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/50cab61326a8e374ce1267572650bdf3_26935704.png imagette208190381740546420 20819029 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=20819029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339604097: '1740514911_1943439_1339603489_959d0ec1d4c5a7d518b9a9cb3f892afa_rle_crop_3686795602_0.png', 1339604098: '1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795627_0.png', 1339604099: '1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795628_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f6995a9c3b23fc2af55324dcfb1f7dfd_73304866.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/aaa9fbd32094cd20610c3eb782ab0056_17042914.png change filename to text .imagette208190291740546420/ imagette208190291740546420/1740514911_1943439_1339603489_959d0ec1d4c5a7d518b9a9cb3f892afa_rle_crop_3686795602_0.png.png imagette208190291740546420/1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795627_0.png.png imagette208190291740546420/1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795628_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8b7565119ba723f68e633cc2e887aa6d_33433657.png imagette208190291740546420 20819033 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=20819033 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339602975: '1740514073_1934490_1339601645_f3923e931baff9507e782184e8a3d62b_rle_crop_3686780448_0.png', 1339603478: '1740514492_1938465_1339603404_ef3ca30598ddb948057208d0877ee820_rle_crop_3686782269_0.png', 1339603479: '1740514492_1938465_1339603375_a29021108ac77ed19c3bebde10d9cc4f_rle_crop_3686782293_0.png', 1339604092: '1740514911_1943439_1339603489_959d0ec1d4c5a7d518b9a9cb3f892afa_rle_crop_3686795601_0.png', 1339604093: '1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795631_0.png', 1339604094: '1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795632_0.png', 1339604109: '1740514931_1943678_1339603889_e2cc57dad5298e0b7cb9aca38e6b4681_rle_crop_3686795650_0.png', 1339604110: '1740514931_1943678_1339603481_f0ff2bfe1995db9908675547aa71acfc_rle_crop_3686795661_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7d49d3877190df4abc81da56ee926f90_7368109.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/827bcb98d470cb68f5cded19c5b77bc8_90396523.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d50a43796e33cfba73a1c560a2722743_11606516.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/99854b5deaa163aa6ef0397cf56ea41f_36770573.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7816ac3878ef3f0ba25581f546eefed6_61557507.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c2d552b3b8a5156c90e1f0df4153c2d3_12349843.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c3209de4d42d1f0f7a6dc5f5101de264_36120267.png change filename to text .imagette208190331740546420/ imagette208190331740546420/1740514492_1938465_1339603375_a29021108ac77ed19c3bebde10d9cc4f_rle_crop_3686782293_0.png.png imagette208190331740546420/1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795632_0.png.png imagette208190331740546420/1740514492_1938465_1339603404_ef3ca30598ddb948057208d0877ee820_rle_crop_3686782269_0.png.png imagette208190331740546420/1740514073_1934490_1339601645_f3923e931baff9507e782184e8a3d62b_rle_crop_3686780448_0.png.png imagette208190331740546420/1740514931_1943678_1339603481_f0ff2bfe1995db9908675547aa71acfc_rle_crop_3686795661_0.png.png imagette208190331740546420/1740514911_1943439_1339603489_959d0ec1d4c5a7d518b9a9cb3f892afa_rle_crop_3686795601_0.png.png imagette208190331740546420/1740514911_1943439_1339603453_60d20a7f0ff99b95b88ca1c97836472d_rle_crop_3686795631_0.png.png imagette208190331740546420/1740514931_1943678_1339603889_e2cc57dad5298e0b7cb9aca38e6b4681_rle_crop_3686795650_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3dca9746d2e7fde7b795cf2c525325de_32069902.png imagette208190331740546420 20819037 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=20819037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339602977: '1740514073_1934490_1339601688_e88d84eebfd44a8387656db43e32ef55_rle_crop_3686780433_0.png', 1339603287: '1740514191_1935772_1339601683_4c55e1fbea5b7d0658461bcfddd52263_rle_crop_3686780627_0.png', 1339603429: '1740514370_1937428_1339603385_b43109530dcc7467d4fccc271d86e93e_rle_crop_3686781296_0.png', 1339603430: '1740514370_1937428_1339603306_5ece3a98f04c797a43c92d51767e6196_rle_crop_3686781308_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f4868afe81fd00459cfed07a8b288646_82395496.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/65fa68b3cf1fecf7a4c1d907bf8c31dd_877116.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/99e188d0e302995617045ffb6b353fde_72760728.png change filename to text .imagette208190371740546421/ imagette208190371740546421/1740514370_1937428_1339603306_5ece3a98f04c797a43c92d51767e6196_rle_crop_3686781308_0.png.png imagette208190371740546421/1740514191_1935772_1339601683_4c55e1fbea5b7d0658461bcfddd52263_rle_crop_3686780627_0.png.png imagette208190371740546421/1740514073_1934490_1339601688_e88d84eebfd44a8387656db43e32ef55_rle_crop_3686780433_0.png.png imagette208190371740546421/1740514370_1937428_1339603385_b43109530dcc7467d4fccc271d86e93e_rle_crop_3686781296_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7ee280f53876959ba20037946189f6e0_38135528.png imagette208190371740546421 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20819025 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20819039,20819040,20819041,20819042,20819043,20819044,20819045,20819046,20819047,20819048,20819049,20819050?tags=kraft,metal,Carton_gris,environnement,mal_croppe,cartonnette,Teint_Dans_La_Masse,flou,papier,autre_refus,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1339603889] : ('0.09072138616566583',) no score found for photo 1339603889 We are sending mail with results at report@fotonower.com args[1339603489] : ('0.09072138616566583',) no score found for photo 1339603489 We are sending mail with results at report@fotonower.com args[1339603481] : ('0.09072138616566583',) no score found for photo 1339603481 We are sending mail with results at report@fotonower.com args[1339603460] : ('0.09072138616566583',) no score found for photo 1339603460 We are sending mail with results at report@fotonower.com args[1339603457] : ('0.09072138616566583',) no score found for photo 1339603457 We are sending mail with results at report@fotonower.com args[1339603453] : ('0.09072138616566583',) no score found for photo 1339603453 We are sending mail with results at report@fotonower.com args[1339603435] : ('0.09072138616566583',) no score found for photo 1339603435 We are sending mail with results at report@fotonower.com args[1339603404] : ('0.09072138616566583',) no score found for photo 1339603404 We are sending mail with results at report@fotonower.com args[1339603385] : ('0.09072138616566583',) no score found for photo 1339603385 We are sending mail with results at report@fotonower.com args[1339603375] : ('0.09072138616566583',) no score found for photo 1339603375 We are sending mail with results at report@fotonower.com args[1339603310] : ('0.09072138616566583',) no score found for photo 1339603310 We are sending mail with results at report@fotonower.com args[1339603306] : ('0.09072138616566583',) no score found for photo 1339603306 We are sending mail with results at report@fotonower.com args[1339602983] : ('0.09072138616566583',) no score found for photo 1339602983 We are sending mail with results at report@fotonower.com args[1339601688] : ('0.09072138616566583',) no score found for photo 1339601688 We are sending mail with results at report@fotonower.com args[1339601683] : ('0.09072138616566583',) no score found for photo 1339601683 We are sending mail with results at report@fotonower.com args[1339601645] : ('0.09072138616566583',) no score found for photo 1339601645 We are sending mail with results at report@fotonower.com args[1339601351] : ('0.09072138616566583',) no score found for photo 1339601351 We are sending mail with results at report@fotonower.com refus_total : 0.09072138616566583 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=20819025 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_P20819025_26-02-2025_06_06_59.pdf results_Auto_P20819025_26-02-2025_06_06_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20819025_26-02-2025_06_06_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20819025','results_Auto_P20819025_26-02-2025_06_06_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20819025_26-02-2025_06_06_59.pdf','pdf','','0.23','0.09072138616566583') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20819025]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] map_info['map_portfolio_photo'] : {20819025: [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351]} final : False mtd_id 4302 list_pids : [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] 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, '2614690') ('4302', '20819025', '1339603889', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603489', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603481', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603460', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603457', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603453', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603435', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603404', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603385', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603375', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603310', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603306', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339602983', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601688', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601683', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601645', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601351', None, None, None, None, None, '2614690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20819025', '1339603889', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603489', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603481', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603460', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603457', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603453', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603435', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603404', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603385', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603375', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603310', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603306', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339602983', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601688', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601683', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601645', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601351', None, None, None, None, None, '2614690')] time used for this insertion : 0.35947465896606445 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.344499588012695 time spend to save output : 0.35976314544677734 total time spend for step 4 : 4.704262733459473 step5:split_time_score Wed Feb 26 06:07:03 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 : ['20819025'] 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 : [('20819025',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20819025) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339603889: {'path': 'temp/1740546418_549050_1339603889_e2cc57dad5298e0b7cb9aca38e6b4681.jpg', 'extension': 'jpg'}, 1339601351: {'path': 'temp/1740546418_549050_1339601351_ce76a724bbb54d613578c902e770e86e.jpg', 'extension': 'jpg'}, 1339601645: {'path': 'temp/1740546418_549050_1339601645_f3923e931baff9507e782184e8a3d62b.jpg', 'extension': 'jpg'}, 1339601683: {'path': 'temp/1740546418_549050_1339601683_4c55e1fbea5b7d0658461bcfddd52263.jpg', 'extension': 'jpg'}, 1339601688: {'path': 'temp/1740546418_549050_1339601688_e88d84eebfd44a8387656db43e32ef55.jpg', 'extension': 'jpg'}, 1339603457: {'path': 'temp/1740546418_549050_1339603457_45625610bbc26df31a5af70e53beaa44.jpg', 'extension': 'jpg'}, 1339603460: {'path': 'temp/1740546418_549050_1339603460_901f9266591abc1706aeccc665060250.jpg', 'extension': 'jpg'}, 1339603481: {'path': 'temp/1740546418_549050_1339603481_f0ff2bfe1995db9908675547aa71acfc.jpg', 'extension': 'jpg'}, 1339603489: {'path': 'temp/1740546418_549050_1339603489_959d0ec1d4c5a7d518b9a9cb3f892afa.jpg', 'extension': 'jpg'}, 1339603385: {'path': 'temp/1740546418_549050_1339603385_b43109530dcc7467d4fccc271d86e93e.jpg', 'extension': 'jpg'}, 1339603404: {'path': 'temp/1740546418_549050_1339603404_ef3ca30598ddb948057208d0877ee820.jpg', 'extension': 'jpg'}, 1339603435: {'path': 'temp/1740546418_549050_1339603435_b7bee0ec6dd713259a3ff19285df67b3.jpg', 'extension': 'jpg'}, 1339603453: {'path': 'temp/1740546418_549050_1339603453_60d20a7f0ff99b95b88ca1c97836472d.jpg', 'extension': 'jpg'}, 1339602983: {'path': 'temp/1740546418_549050_1339602983_d919f5dcbb61354de27400b722ddd422.jpg', 'extension': 'jpg'}, 1339603306: {'path': 'temp/1740546418_549050_1339603306_5ece3a98f04c797a43c92d51767e6196.jpg', 'extension': 'jpg'}, 1339603310: {'path': 'temp/1740546418_549050_1339603310_9585dcc8bc361e986cc7232a9f6274dd.jpg', 'extension': 'jpg'}, 1339603375: {'path': 'temp/1740546418_549050_1339603375_a29021108ac77ed19c3bebde10d9cc4f.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 = 20819025; (('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 = 20819025 group by h (('21', 17),) 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=20819025 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 (20819025) 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 (20819025) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20819025 Nombre de photos uploadées : 17 / 23040 (0%) 25022025 20819025 Nombre de photos taguées (types de déchets): 0 / 17 (0%) 25022025 20819025 Nombre de photos taguées (volume) : 0 / 17 (0%) [{'photo_id': 1339601351, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ce76a724bbb54d613578c902e770e86e.jpg', 'username': None, 'uploaded_at': 1740513749, 'text': 'image_25022025_21_01_24_10136.jpg'}, {'photo_id': 1339601645, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f3923e931baff9507e782184e8a3d62b.jpg', 'username': None, 'uploaded_at': 1740513874, 'text': 'image_25022025_21_03_15_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339601688, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e88d84eebfd44a8387656db43e32ef55.jpg', 'username': None, 'uploaded_at': 1740513939, 'text': 'image_25022025_21_03_25_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339601683, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4c55e1fbea5b7d0658461bcfddd52263.jpg', 'username': None, 'uploaded_at': 1740513939, 'text': 'image_25022025_21_04_04_010141m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001992940902709961 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20819025, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028973102569580078 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20785620, 'dashboard_result_id': 9062008, '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_P20785620_26-02-2025_05_34_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785633, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20787294, 'dashboard_result_id': 9062009, '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_P20787294_26-02-2025_05_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20787303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787306, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20787821, 'dashboard_result_id': 9062010, '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_P20787821_26-02-2025_05_35_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20787823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787834, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20788035, 'dashboard_result_id': 9062011, '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_P20788035_26-02-2025_05_36_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788096, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20788531, 'dashboard_result_id': 9062012, '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_P20788531_26-02-2025_05_37_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788545, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20789029, 'dashboard_result_id': 9062013, '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_P20789029_26-02-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20789030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20789031, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20789032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20789033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20789034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20789035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20789036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20789037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20789038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20789039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20789040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20789041, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20789609, 'dashboard_result_id': 9062014, '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_P20789609_26-02-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20789659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20789660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20789661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20789662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20789663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20789664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20789665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20789666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20789667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20789668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20789669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20789670, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20790301, 'dashboard_result_id': 9062015, '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_P20790301_26-02-2025_05_38_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20790330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790337, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20790710, 'dashboard_result_id': 9062016, '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_P20790710_26-02-2025_05_39_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20790737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790748, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20791187, 'dashboard_result_id': 9062017, '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_P20791187_26-02-2025_05_40_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791223, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20791496, 'dashboard_result_id': 9062018, '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_P20791496_26-02-2025_05_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791540, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20792366, 'dashboard_result_id': 9062019, '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_P20792366_26-02-2025_05_41_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20792402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792408, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20792964, 'dashboard_result_id': 9062020, '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_P20792964_26-02-2025_05_41_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793000, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20793580, 'dashboard_result_id': 9062021, '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_P20793580_26-02-2025_05_42_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20793648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20793649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20793650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20793651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20793652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20793653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20793654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20793655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20793657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20793658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20793659, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20794162, 'dashboard_result_id': 9062022, '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_P20794162_26-02-2025_05_42_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20794235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20794236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20794237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20794238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20794239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20794240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20794241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20794242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20794243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20794244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20794245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20794246, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20795049, 'dashboard_result_id': 9062023, '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_P20795049_26-02-2025_05_43_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20795122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20795123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20795124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20795125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20795126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20795127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20795128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20795129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20795130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20795131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20795132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20795133, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20795717, 'dashboard_result_id': 9062024, '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_P20795717_26-02-2025_05_43_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20795750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20795751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20795752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20795753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20795754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20795755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20795756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20795757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20795758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20795759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20795760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20795761, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20796930, 'dashboard_result_id': 9062025, '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_P20796930_26-02-2025_05_44_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20796935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20796936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20796937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20796938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20796939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20796940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20796941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20796942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20796943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20796944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20796945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20796946, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20797353, 'dashboard_result_id': 9062026, '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_P20797353_26-02-2025_05_44_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797390, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20797921, 'dashboard_result_id': 9062027, '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_P20797921_26-02-2025_05_45_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20798362, 'dashboard_result_id': 9062028, '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_P20798362_26-02-2025_05_46_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20799103, 'dashboard_result_id': 9062029, '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_P20799103_26-02-2025_05_46_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799163, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20799638, 'dashboard_result_id': 9062030, '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_P20799638_26-02-2025_05_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799699, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20800212, 'dashboard_result_id': 9062031, '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_P20800212_26-02-2025_05_47_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20800215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20800216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20800217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20800218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20800219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20800220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20800221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20800222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20800223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20800224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20800225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20800226, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20800546, 'dashboard_result_id': 9062032, '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_P20800546_26-02-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20800597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20800598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20800599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20800600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20800601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20800602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20800603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20800604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20800605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20800606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20800607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20800608, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20801259, 'dashboard_result_id': 9062033, '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_P20801259_26-02-2025_05_48_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20801287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20801288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20801289, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20801290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20801291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20801292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20801293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20801294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20801295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20801296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20801297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20801298, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20801898, 'dashboard_result_id': 9062034, '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_P20801898_26-02-2025_05_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20801900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20801901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20801902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20801903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20801904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20801905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20801906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20801907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20801908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20801909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20801910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20801911, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20802472, 'dashboard_result_id': 9062035, '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_P20802472_26-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20802527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20802528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20802529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20802530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20802531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20802532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20802533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20802534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20802535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20802536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20802537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20802538, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20803872, 'dashboard_result_id': 9062036, '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_P20803872_26-02-2025_05_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20803874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20803875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20803876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20803877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20803878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20803879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20803880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20803881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20803882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20803883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20803884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20803885, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20804024, 'dashboard_result_id': 9062037, '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_P20804024_26-02-2025_05_51_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20804058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804060, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20804543, 'dashboard_result_id': 9062038, '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_P20804543_26-02-2025_05_52_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804556, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20804835, 'dashboard_result_id': 9062039, '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_P20804835_26-02-2025_05_52_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20804890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804898, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20805411, 'dashboard_result_id': 9062040, '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_P20805411_26-02-2025_05_53_41.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20805438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20805439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20805440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20805441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20805442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20805443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20805444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20805445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20805446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20805447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20805448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20805449, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20806056, 'dashboard_result_id': 9062041, '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_P20806056_26-02-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20806057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20806058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20806059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20806060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20806061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20806062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20806063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20806064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20806065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20806066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20806067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20806068, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20806785, 'dashboard_result_id': 9062042, '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_P20806785_26-02-2025_05_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20806786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20806787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20806788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20806789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20806790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20806791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20806792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20806793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20806794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20806795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20806796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20806797, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20807291, 'dashboard_result_id': 9062043, '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_P20807291_26-02-2025_05_55_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20807316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20807317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20807318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20807319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20807320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20807321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20807322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20807323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20807324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20807325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20807326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20807327, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20808053, 'dashboard_result_id': 9062044, '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_P20808053_26-02-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20808081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808092, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20808671, 'dashboard_result_id': 9062045, '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_P20808671_26-02-2025_05_56_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20808758, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20809290, 'dashboard_result_id': 9062046, '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_P20809290_26-02-2025_05_56_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809330, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20809861, 'dashboard_result_id': 9062047, '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_P20809861_26-02-2025_05_57_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809876, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20810327, 'dashboard_result_id': 9062048, '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_P20810327_26-02-2025_05_58_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20810383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20810384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20810385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20810386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20810387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20810388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20810389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20810390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20810391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20810392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20810393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20810394, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20811140, 'dashboard_result_id': 9062049, '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_P20811140_26-02-2025_05_59_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20811241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20811242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20811243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20811244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20811245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20811246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20811247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20811248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20811249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20811250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20811251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20811252, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20812158, 'dashboard_result_id': 9062050, '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_P20812158_26-02-2025_05_59_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812171, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20812687, 'dashboard_result_id': 9062051, '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_P20812687_26-02-2025_06_00_14.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812699, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20813086, 'dashboard_result_id': 9062052, '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_P20813086_26-02-2025_06_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813124, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20813591, 'dashboard_result_id': 9062053, '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_P20813591_26-02-2025_06_01_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20814318, 'dashboard_result_id': 9062054, '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_P20814318_26-02-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20814343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20814344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20814345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20814346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20814347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20814348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20814349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20814350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20814351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20814352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20814354, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20815112, 'dashboard_result_id': 9062055, '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_P20815112_26-02-2025_06_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815149, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20815794, 'dashboard_result_id': 9062056, '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_P20815794_26-02-2025_06_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815822, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20816034, 'dashboard_result_id': 9062057, '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_P20816034_26-02-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20816106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20816107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20816108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20816109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20816110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20816111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20816112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20816113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20816114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20816115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20816116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20816117, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20816625, 'dashboard_result_id': 9062058, '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_P20816625_26-02-2025_06_04_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20816650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20816651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20816652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20816653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20816654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20816655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20816656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20816657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20816658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20816659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20816660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20816661, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20817378, 'dashboard_result_id': 9062059, '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_P20817378_26-02-2025_06_06_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20817407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20817408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20817409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20817410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20817411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20817412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20817413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20817414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20817415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20817416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20817417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20817418, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20818093, 'dashboard_result_id': 9062060, '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_P20818093_26-02-2025_06_06_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20818094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20818095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20818096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20818097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20818098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20818099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20818100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20818101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20818102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20818103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20818104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20818105, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20819025, 'dashboard_result_id': 9062061, '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_P20819025_25-02-2025_21_23_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20819027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20819028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20819029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20819030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20819031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20819032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20819033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20819034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20819035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20819036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20819037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20819038, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1632146, 'mtr_portfolio_id': 20819269, 'dashboard_result_id': 9062062, '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_P20819269_25-02-2025_21_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20819270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20819271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20819272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20819273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20819274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20819275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20819276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20819277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20819278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20819279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20819280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20819281, '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 = 20785620 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': 2614637, 'mtr_portfolio_id': 20785620, 'created_at': datetime.datetime(2025, 2, 26, 5, 34, 39), 'result': '0.04951906794812131', 'result_long': None, 'result_double': None}] Qualite : 0.04951906794812131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20785620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20785620_26-02-2025_05_34_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20785620 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_P20785620_26-02-2025_05_34_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785633, 'pht': 3726}}" where mtr_portfolio_id = 20785620 and dashboard_run_id = 1632146 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`=20785620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062008, 0.04951906794812131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20785620_26-02-2025_05_34_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20785622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20785623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20785624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20785625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20785626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20785627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20785628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20785629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20785630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20785631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20785632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20785633, '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 = 20787294 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': 2614638, 'mtr_portfolio_id': 20787294, 'created_at': datetime.datetime(2025, 2, 26, 5, 35, 2), 'result': '0.12254506834086083', 'result_long': None, 'result_double': None}] Qualite : 0.12254506834086083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20787294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20787294_26-02-2025_05_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20787294 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_P20787294_26-02-2025_05_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20787303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787306, 'pht': 3726}}" where mtr_portfolio_id = 20787294 and dashboard_run_id = 1632146 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`=20787294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062009, 0.12254506834086083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20787294_26-02-2025_05_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20787303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787306, '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 = 20787821 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': 2614639, 'mtr_portfolio_id': 20787821, 'created_at': datetime.datetime(2025, 2, 26, 5, 35, 37), 'result': '0.028420587782093252', 'result_long': None, 'result_double': None}] Qualite : 0.028420587782093252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20787821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20787821_26-02-2025_05_35_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20787821 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_P20787821_26-02-2025_05_35_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20787823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787834, 'pht': 3726}}" where mtr_portfolio_id = 20787821 and dashboard_run_id = 1632146 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`=20787821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062010, 0.028420587782093252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20787821_26-02-2025_05_35_39.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20787823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20787824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20787825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20787826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20787827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20787828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20787829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20787830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20787831, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20787832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20787833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20787834, '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 = 20788035 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': 2614640, 'mtr_portfolio_id': 20788035, 'created_at': datetime.datetime(2025, 2, 26, 5, 36), 'result': '0.03756846880935415', 'result_long': None, 'result_double': None}] Qualite : 0.03756846880935415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20788035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788035_26-02-2025_05_36_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20788035 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_P20788035_26-02-2025_05_36_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788096, 'pht': 3726}}" where mtr_portfolio_id = 20788035 and dashboard_run_id = 1632146 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`=20788035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062011, 0.03756846880935415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788035_26-02-2025_05_36_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788085, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788096, '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 = 20788531 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': 2614641, 'mtr_portfolio_id': 20788531, 'created_at': datetime.datetime(2025, 2, 26, 5, 36, 59), 'result': '0.038170652970188144', 'result_long': None, 'result_double': None}] Qualite : 0.038170652970188144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20788531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788531_26-02-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20788531 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_P20788531_26-02-2025_05_37_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788545, 'pht': 3726}}" where mtr_portfolio_id = 20788531 and dashboard_run_id = 1632146 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`=20788531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062012, 0.038170652970188144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20788531_26-02-2025_05_37_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20788534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20788535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20788536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20788537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20788538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20788539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20788540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20788541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20788542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20788543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20788544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20788545, '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 = 20789029 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': 2614642, 'mtr_portfolio_id': 20789029, 'created_at': datetime.datetime(2025, 2, 26, 5, 37, 27), 'result': '0.046309773414898024', 'result_long': None, 'result_double': None}] Qualite : 0.046309773414898024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20789029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20789029_26-02-2025_05_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20789029 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_P20789029_26-02-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20789030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20789031, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20789032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20789033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20789034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20789035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20789036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20789037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20789038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20789039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20789040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20789041, 'pht': 3726}}" where mtr_portfolio_id = 20789029 and dashboard_run_id = 1632146 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`=20789029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062013, 0.046309773414898024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20789029_26-02-2025_05_37_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20789030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20789031, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20789032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20789033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20789034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20789035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20789036, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20789037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20789038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20789039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20789040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20789041, '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 = 20789609 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': 2614643, 'mtr_portfolio_id': 20789609, 'created_at': datetime.datetime(2025, 2, 26, 5, 37, 57), 'result': '0.05103867831022036', 'result_long': None, 'result_double': None}] Qualite : 0.05103867831022036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20789609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20789609_26-02-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20789609 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_P20789609_26-02-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20789659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20789660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20789661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20789662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20789663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20789664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20789665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20789666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20789667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20789668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20789669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20789670, 'pht': 3726}}" where mtr_portfolio_id = 20789609 and dashboard_run_id = 1632146 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`=20789609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062014, 0.05103867831022036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20789609_26-02-2025_05_38_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20789659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20789660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20789661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20789662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20789663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20789664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20789665, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20789666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20789667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20789668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20789669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20789670, '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 = 20790301 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': 2614644, 'mtr_portfolio_id': 20790301, 'created_at': datetime.datetime(2025, 2, 26, 5, 38, 28), 'result': '0.04401530133363789', 'result_long': None, 'result_double': None}] Qualite : 0.04401530133363789 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20790301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790301_26-02-2025_05_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20790301 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_P20790301_26-02-2025_05_38_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20790330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790337, 'pht': 3726}}" where mtr_portfolio_id = 20790301 and dashboard_run_id = 1632146 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`=20790301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062015, 0.04401530133363789, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790301_26-02-2025_05_38_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20790330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790337, '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 = 20790710 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': 2614645, 'mtr_portfolio_id': 20790710, 'created_at': datetime.datetime(2025, 2, 26, 5, 39, 30), 'result': '0.03825676225363517', 'result_long': None, 'result_double': None}] Qualite : 0.03825676225363517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20790710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790710_26-02-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20790710 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_P20790710_26-02-2025_05_39_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20790737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790748, 'pht': 3726}}" where mtr_portfolio_id = 20790710 and dashboard_run_id = 1632146 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`=20790710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062016, 0.03825676225363517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790710_26-02-2025_05_39_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20790737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790748, '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 = 20791187 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': 2614646, 'mtr_portfolio_id': 20791187, 'created_at': datetime.datetime(2025, 2, 26, 5, 40, 3), 'result': '0.03341288388800771', 'result_long': None, 'result_double': None}] Qualite : 0.03341288388800771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20791187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791187_26-02-2025_05_40_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20791187 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_P20791187_26-02-2025_05_40_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791223, 'pht': 3726}}" where mtr_portfolio_id = 20791187 and dashboard_run_id = 1632146 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`=20791187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062017, 0.03341288388800771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791187_26-02-2025_05_40_07.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791223, '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 = 20791496 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': 2614647, 'mtr_portfolio_id': 20791496, 'created_at': datetime.datetime(2025, 2, 26, 5, 40, 30), 'result': '0.04793054528528791', 'result_long': None, 'result_double': None}] Qualite : 0.04793054528528791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20791496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791496_26-02-2025_05_40_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20791496 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_P20791496_26-02-2025_05_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791540, 'pht': 3726}}" where mtr_portfolio_id = 20791496 and dashboard_run_id = 1632146 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`=20791496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062018, 0.04793054528528791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791496_26-02-2025_05_40_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791540, '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 = 20792366 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': 2614648, 'mtr_portfolio_id': 20792366, 'created_at': datetime.datetime(2025, 2, 26, 5, 41), 'result': '0.04864332364383295', 'result_long': None, 'result_double': None}] Qualite : 0.04864332364383295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20792366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792366_26-02-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20792366 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_P20792366_26-02-2025_05_41_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20792402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792408, 'pht': 3726}}" where mtr_portfolio_id = 20792366 and dashboard_run_id = 1632146 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`=20792366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062019, 0.04864332364383295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792366_26-02-2025_05_41_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20792402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792406, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792408, '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 = 20792964 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': 2614649, 'mtr_portfolio_id': 20792964, 'created_at': datetime.datetime(2025, 2, 26, 5, 41, 33), 'result': '0.038273526266253084', 'result_long': None, 'result_double': None}] Qualite : 0.038273526266253084 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20792964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792964_26-02-2025_05_41_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20792964 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_P20792964_26-02-2025_05_41_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793000, 'pht': 3726}}" where mtr_portfolio_id = 20792964 and dashboard_run_id = 1632146 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`=20792964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062020, 0.038273526266253084, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20792964_26-02-2025_05_41_37.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20792989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20792990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20792991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20792992, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20792993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20792994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20792995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20792996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20792997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20792998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20792999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793000, '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 = 20793580 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': 2614650, 'mtr_portfolio_id': 20793580, 'created_at': datetime.datetime(2025, 2, 26, 5, 42), 'result': '0.038208295879453485', 'result_long': None, 'result_double': None}] Qualite : 0.038208295879453485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20793580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20793580_26-02-2025_05_42_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20793580 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_P20793580_26-02-2025_05_42_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20793648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20793649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20793650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20793651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20793652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20793653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20793654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20793655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20793657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20793658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20793659, 'pht': 3726}}" where mtr_portfolio_id = 20793580 and dashboard_run_id = 1632146 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`=20793580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062021, 0.038208295879453485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20793580_26-02-2025_05_42_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20793648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20793649, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20793650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20793651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20793652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20793653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20793654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20793655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20793656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20793657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20793658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20793659, '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 = 20794162 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': 2614651, 'mtr_portfolio_id': 20794162, 'created_at': datetime.datetime(2025, 2, 26, 5, 42, 33), 'result': '0.041302845225142146', 'result_long': None, 'result_double': None}] Qualite : 0.041302845225142146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20794162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20794162_26-02-2025_05_42_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20794162 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_P20794162_26-02-2025_05_42_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20794235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20794236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20794237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20794238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20794239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20794240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20794241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20794242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20794243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20794244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20794245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20794246, 'pht': 3726}}" where mtr_portfolio_id = 20794162 and dashboard_run_id = 1632146 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`=20794162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062022, 0.041302845225142146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20794162_26-02-2025_05_42_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20794235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20794236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20794237, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20794238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20794239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20794240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20794241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20794242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20794243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20794244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20794245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20794246, '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 = 20795049 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': 2614652, 'mtr_portfolio_id': 20795049, 'created_at': datetime.datetime(2025, 2, 26, 5, 42, 59), 'result': '0.0373391260991467', 'result_long': None, 'result_double': None}] Qualite : 0.0373391260991467 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20795049 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20795049_26-02-2025_05_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20795049 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_P20795049_26-02-2025_05_43_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20795122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20795123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20795124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20795125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20795126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20795127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20795128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20795129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20795130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20795131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20795132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20795133, 'pht': 3726}}" where mtr_portfolio_id = 20795049 and dashboard_run_id = 1632146 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`=20795049 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062023, 0.0373391260991467, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20795049_26-02-2025_05_43_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20795122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20795123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20795124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20795125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20795126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20795127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20795128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20795129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20795130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20795131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20795132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20795133, '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 = 20795717 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': 2614653, 'mtr_portfolio_id': 20795717, 'created_at': datetime.datetime(2025, 2, 26, 5, 43, 36), 'result': '0.03922287809966032', 'result_long': None, 'result_double': None}] Qualite : 0.03922287809966032 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20795717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20795717_26-02-2025_05_43_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20795717 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_P20795717_26-02-2025_05_43_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20795750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20795751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20795752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20795753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20795754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20795755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20795756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20795757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20795758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20795759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20795760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20795761, 'pht': 3726}}" where mtr_portfolio_id = 20795717 and dashboard_run_id = 1632146 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`=20795717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062024, 0.03922287809966032, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20795717_26-02-2025_05_43_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20795750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20795751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20795752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20795753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20795754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20795755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20795756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20795757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20795758, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20795759, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20795760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20795761, '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 = 20796930 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': 2614654, 'mtr_portfolio_id': 20796930, 'created_at': datetime.datetime(2025, 2, 26, 5, 43, 59), 'result': '0.04131025544287716', 'result_long': None, 'result_double': None}] Qualite : 0.04131025544287716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20796930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20796930_26-02-2025_05_44_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20796930 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_P20796930_26-02-2025_05_44_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20796935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20796936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20796937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20796938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20796939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20796940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20796941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20796942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20796943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20796944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20796945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20796946, 'pht': 3726}}" where mtr_portfolio_id = 20796930 and dashboard_run_id = 1632146 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`=20796930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062025, 0.04131025544287716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20796930_26-02-2025_05_44_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20796935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20796936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20796937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20796938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20796939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20796940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20796941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20796942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20796943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20796944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20796945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20796946, '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 = 20797353 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': 2614655, 'mtr_portfolio_id': 20797353, 'created_at': datetime.datetime(2025, 2, 26, 5, 44, 28), 'result': '0.031340056509779585', 'result_long': None, 'result_double': None}] Qualite : 0.031340056509779585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20797353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797353_26-02-2025_05_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20797353 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_P20797353_26-02-2025_05_44_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797390, 'pht': 3726}}" where mtr_portfolio_id = 20797353 and dashboard_run_id = 1632146 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`=20797353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062026, 0.031340056509779585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797353_26-02-2025_05_44_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797390, '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 = 20797921 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': 2614656, 'mtr_portfolio_id': 20797921, 'created_at': datetime.datetime(2025, 2, 26, 5, 45, 35), 'result': '0.037852551190863525', 'result_long': None, 'result_double': None}] Qualite : 0.037852551190863525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20797921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797921_26-02-2025_05_45_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20797921 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_P20797921_26-02-2025_05_45_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, 'pht': 3726}}" where mtr_portfolio_id = 20797921 and dashboard_run_id = 1632146 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`=20797921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062027, 0.037852551190863525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797921_26-02-2025_05_45_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, '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 = 20798362 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': 2614657, 'mtr_portfolio_id': 20798362, 'created_at': datetime.datetime(2025, 2, 26, 5, 46), 'result': '0.04814155624634792', 'result_long': None, 'result_double': None}] Qualite : 0.04814155624634792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20798362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_26-02-2025_05_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20798362 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_P20798362_26-02-2025_05_46_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, 'pht': 3726}}" where mtr_portfolio_id = 20798362 and dashboard_run_id = 1632146 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`=20798362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062028, 0.04814155624634792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_26-02-2025_05_46_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, '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 = 20799103 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': 2614658, 'mtr_portfolio_id': 20799103, 'created_at': datetime.datetime(2025, 2, 26, 5, 46, 35), 'result': '0.03967816310740286', 'result_long': None, 'result_double': None}] Qualite : 0.03967816310740286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20799103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799103_26-02-2025_05_46_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20799103 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_P20799103_26-02-2025_05_46_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799163, 'pht': 3726}}" where mtr_portfolio_id = 20799103 and dashboard_run_id = 1632146 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`=20799103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062029, 0.03967816310740286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799103_26-02-2025_05_46_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799163, '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 = 20799638 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': 2614659, 'mtr_portfolio_id': 20799638, 'created_at': datetime.datetime(2025, 2, 26, 5, 46, 58), 'result': '0.04990720608844169', 'result_long': None, 'result_double': None}] Qualite : 0.04990720608844169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20799638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799638_26-02-2025_05_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20799638 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_P20799638_26-02-2025_05_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799699, 'pht': 3726}}" where mtr_portfolio_id = 20799638 and dashboard_run_id = 1632146 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`=20799638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062030, 0.04990720608844169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799638_26-02-2025_05_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799699, '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 = 20800212 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': 2614660, 'mtr_portfolio_id': 20800212, 'created_at': datetime.datetime(2025, 2, 26, 5, 47, 30), 'result': '0.038711409915067184', 'result_long': None, 'result_double': None}] Qualite : 0.038711409915067184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20800212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20800212_26-02-2025_05_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20800212 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_P20800212_26-02-2025_05_47_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20800215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20800216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20800217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20800218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20800219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20800220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20800221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20800222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20800223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20800224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20800225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20800226, 'pht': 3726}}" where mtr_portfolio_id = 20800212 and dashboard_run_id = 1632146 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`=20800212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062031, 0.038711409915067184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20800212_26-02-2025_05_47_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20800215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20800216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20800217, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20800218, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20800219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20800220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20800221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20800222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20800223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20800224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20800225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20800226, '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 = 20800546 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': 2614661, 'mtr_portfolio_id': 20800546, 'created_at': datetime.datetime(2025, 2, 26, 5, 47, 58), 'result': '0.040404184563333015', 'result_long': None, 'result_double': None}] Qualite : 0.040404184563333015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20800546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20800546_26-02-2025_05_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20800546 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_P20800546_26-02-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20800597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20800598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20800599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20800600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20800601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20800602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20800603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20800604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20800605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20800606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20800607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20800608, 'pht': 3726}}" where mtr_portfolio_id = 20800546 and dashboard_run_id = 1632146 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`=20800546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062032, 0.040404184563333015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20800546_26-02-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20800597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20800598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20800599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20800600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20800601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20800602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20800603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20800604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20800605, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20800606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20800607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20800608, '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 = 20801259 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': 2614662, 'mtr_portfolio_id': 20801259, 'created_at': datetime.datetime(2025, 2, 26, 5, 48, 35), 'result': '0.04012595491660978', 'result_long': None, 'result_double': None}] Qualite : 0.04012595491660978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20801259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20801259_26-02-2025_05_48_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20801259 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_P20801259_26-02-2025_05_48_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20801287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20801288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20801289, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20801290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20801291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20801292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20801293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20801294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20801295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20801296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20801297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20801298, 'pht': 3726}}" where mtr_portfolio_id = 20801259 and dashboard_run_id = 1632146 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`=20801259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062033, 0.04012595491660978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20801259_26-02-2025_05_48_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20801287, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20801288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20801289, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20801290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20801291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20801292, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20801293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20801294, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20801295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20801296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20801297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20801298, '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 = 20801898 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': 2614663, 'mtr_portfolio_id': 20801898, 'created_at': datetime.datetime(2025, 2, 26, 5, 50), 'result': '0.04085536279018056', 'result_long': None, 'result_double': None}] Qualite : 0.04085536279018056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20801898 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20801898_26-02-2025_05_50_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20801898 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_P20801898_26-02-2025_05_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20801900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20801901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20801902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20801903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20801904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20801905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20801906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20801907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20801908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20801909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20801910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20801911, 'pht': 3726}}" where mtr_portfolio_id = 20801898 and dashboard_run_id = 1632146 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`=20801898 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062034, 0.04085536279018056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20801898_26-02-2025_05_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20801900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20801901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20801902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20801903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20801904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20801905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20801906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20801907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20801908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20801909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20801910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20801911, '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 = 20802472 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': 2614664, 'mtr_portfolio_id': 20802472, 'created_at': datetime.datetime(2025, 2, 26, 5, 50, 34), 'result': '0.041870190061681856', 'result_long': None, 'result_double': None}] Qualite : 0.041870190061681856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20802472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20802472_26-02-2025_05_50_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20802472 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_P20802472_26-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20802527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20802528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20802529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20802530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20802531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20802532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20802533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20802534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20802535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20802536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20802537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20802538, 'pht': 3726}}" where mtr_portfolio_id = 20802472 and dashboard_run_id = 1632146 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`=20802472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062035, 0.041870190061681856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20802472_26-02-2025_05_50_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20802527, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20802528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20802529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20802530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20802531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20802532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20802533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20802534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20802535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20802536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20802537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20802538, '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 = 20803872 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': 2614665, 'mtr_portfolio_id': 20803872, 'created_at': datetime.datetime(2025, 2, 26, 5, 50, 58), 'result': '0.12183896218904099', 'result_long': None, 'result_double': None}] Qualite : 0.12183896218904099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20803872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20803872_26-02-2025_05_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20803872 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_P20803872_26-02-2025_05_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20803874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20803875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20803876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20803877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20803878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20803879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20803880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20803881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20803882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20803883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20803884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20803885, 'pht': 3726}}" where mtr_portfolio_id = 20803872 and dashboard_run_id = 1632146 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`=20803872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062036, 0.12183896218904099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20803872_26-02-2025_05_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20803874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20803875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20803876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20803877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20803878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20803879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20803880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20803881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20803882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20803883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20803884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20803885, '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 = 20804024 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': 2614666, 'mtr_portfolio_id': 20804024, 'created_at': datetime.datetime(2025, 2, 26, 5, 51, 32), 'result': '0.0729418476832591', 'result_long': None, 'result_double': None}] Qualite : 0.0729418476832591 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20804024 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20804024_26-02-2025_05_51_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20804024 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_P20804024_26-02-2025_05_51_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20804058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804060, 'pht': 3726}}" where mtr_portfolio_id = 20804024 and dashboard_run_id = 1632146 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`=20804024 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062037, 0.0729418476832591, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20804024_26-02-2025_05_51_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20804058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804060, '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 = 20804543 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': 2614667, 'mtr_portfolio_id': 20804543, 'created_at': datetime.datetime(2025, 2, 26, 5, 51, 59), 'result': '0.07863856607169291', 'result_long': None, 'result_double': None}] Qualite : 0.07863856607169291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20804543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20804543_26-02-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20804543 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_P20804543_26-02-2025_05_52_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804556, 'pht': 3726}}" where mtr_portfolio_id = 20804543 and dashboard_run_id = 1632146 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`=20804543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062038, 0.07863856607169291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20804543_26-02-2025_05_52_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804556, '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 = 20804835 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': 2614668, 'mtr_portfolio_id': 20804835, 'created_at': datetime.datetime(2025, 2, 26, 5, 52, 37), 'result': '0.08028876453551163', 'result_long': None, 'result_double': None}] Qualite : 0.08028876453551163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20804835 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20804835_26-02-2025_05_52_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20804835 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_P20804835_26-02-2025_05_52_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20804890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804898, 'pht': 3726}}" where mtr_portfolio_id = 20804835 and dashboard_run_id = 1632146 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`=20804835 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062039, 0.08028876453551163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20804835_26-02-2025_05_52_40.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20804887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20804888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20804889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20804890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20804891, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20804892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20804893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20804894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20804895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20804896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20804897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20804898, '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 = 20805411 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': 2614669, 'mtr_portfolio_id': 20805411, 'created_at': datetime.datetime(2025, 2, 26, 5, 53, 38), 'result': '0.09931999910343763', 'result_long': None, 'result_double': None}] Qualite : 0.09931999910343763 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20805411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20805411_26-02-2025_05_53_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20805411 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_P20805411_26-02-2025_05_53_41.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20805438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20805439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20805440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20805441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20805442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20805443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20805444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20805445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20805446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20805447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20805448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20805449, 'pht': 3726}}" where mtr_portfolio_id = 20805411 and dashboard_run_id = 1632146 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`=20805411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062040, 0.09931999910343763, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20805411_26-02-2025_05_53_41.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20805438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20805439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20805440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20805441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20805442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20805443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20805444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20805445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20805446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20805447, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20805448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20805449, '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 = 20806056 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': 2614670, 'mtr_portfolio_id': 20806056, 'created_at': datetime.datetime(2025, 2, 26, 5, 53, 58), 'result': '0.09302866822197933', 'result_long': None, 'result_double': None}] Qualite : 0.09302866822197933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20806056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20806056_26-02-2025_05_54_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20806056 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_P20806056_26-02-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20806057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20806058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20806059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20806060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20806061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20806062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20806063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20806064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20806065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20806066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20806067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20806068, 'pht': 3726}}" where mtr_portfolio_id = 20806056 and dashboard_run_id = 1632146 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`=20806056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062041, 0.09302866822197933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20806056_26-02-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20806057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20806058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20806059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20806060, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20806061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20806062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20806063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20806064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20806065, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20806066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20806067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20806068, '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 = 20806785 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': 2614671, 'mtr_portfolio_id': 20806785, 'created_at': datetime.datetime(2025, 2, 26, 5, 54, 33), 'result': '0.09221479618878876', 'result_long': None, 'result_double': None}] Qualite : 0.09221479618878876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20806785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20806785_26-02-2025_05_54_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20806785 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_P20806785_26-02-2025_05_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20806786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20806787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20806788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20806789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20806790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20806791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20806792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20806793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20806794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20806795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20806796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20806797, 'pht': 3726}}" where mtr_portfolio_id = 20806785 and dashboard_run_id = 1632146 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`=20806785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062042, 0.09221479618878876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20806785_26-02-2025_05_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20806786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20806787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20806788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20806789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20806790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20806791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20806792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20806793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20806794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20806795, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20806796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20806797, '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 = 20807291 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': 2614672, 'mtr_portfolio_id': 20807291, 'created_at': datetime.datetime(2025, 2, 26, 5, 54, 59), 'result': '0.08797748035794256', 'result_long': None, 'result_double': None}] Qualite : 0.08797748035794256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20807291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20807291_26-02-2025_05_55_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20807291 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_P20807291_26-02-2025_05_55_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20807316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20807317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20807318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20807319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20807320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20807321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20807322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20807323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20807324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20807325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20807326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20807327, 'pht': 3726}}" where mtr_portfolio_id = 20807291 and dashboard_run_id = 1632146 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`=20807291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062043, 0.08797748035794256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20807291_26-02-2025_05_55_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20807316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20807317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20807318, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20807319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20807320, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20807321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20807322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20807323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20807324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20807325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20807326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20807327, '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 = 20808053 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': 2614673, 'mtr_portfolio_id': 20808053, 'created_at': datetime.datetime(2025, 2, 26, 5, 55, 29), 'result': '0.1025555117394461', 'result_long': None, 'result_double': None}] Qualite : 0.1025555117394461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20808053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808053_26-02-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20808053 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_P20808053_26-02-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20808081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808092, 'pht': 3726}}" where mtr_portfolio_id = 20808053 and dashboard_run_id = 1632146 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`=20808053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062044, 0.1025555117394461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808053_26-02-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20808081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808087, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808090, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808092, '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 = 20808671 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': 2614674, 'mtr_portfolio_id': 20808671, 'created_at': datetime.datetime(2025, 2, 26, 5, 56), 'result': '0.09249865813208404', 'result_long': None, 'result_double': None}] Qualite : 0.09249865813208404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20808671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808671_26-02-2025_05_56_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20808671 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_P20808671_26-02-2025_05_56_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20808758, 'pht': 3726}}" where mtr_portfolio_id = 20808671 and dashboard_run_id = 1632146 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`=20808671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062045, 0.09249865813208404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20808671_26-02-2025_05_56_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20808747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20808748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20808749, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20808750, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20808751, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20808752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20808753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20808754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20808755, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20808756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20808757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20808758, '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 = 20809290 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': 2614675, 'mtr_portfolio_id': 20809290, 'created_at': datetime.datetime(2025, 2, 26, 5, 56, 31), 'result': '0.08101055764554999', 'result_long': None, 'result_double': None}] Qualite : 0.08101055764554999 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20809290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809290_26-02-2025_05_56_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20809290 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_P20809290_26-02-2025_05_56_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809330, 'pht': 3726}}" where mtr_portfolio_id = 20809290 and dashboard_run_id = 1632146 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`=20809290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062046, 0.08101055764554999, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809290_26-02-2025_05_56_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809326, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809330, '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 = 20809861 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': 2614676, 'mtr_portfolio_id': 20809861, 'created_at': datetime.datetime(2025, 2, 26, 5, 57, 31), 'result': '0.10980546306757935', 'result_long': None, 'result_double': None}] Qualite : 0.10980546306757935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20809861 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809861_26-02-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20809861 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_P20809861_26-02-2025_05_57_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809876, 'pht': 3726}}" where mtr_portfolio_id = 20809861 and dashboard_run_id = 1632146 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`=20809861 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062047, 0.10980546306757935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20809861_26-02-2025_05_57_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20809865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20809866, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20809867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20809868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20809870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20809871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20809872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20809873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20809874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20809875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20809876, '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 = 20810327 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': 2614677, 'mtr_portfolio_id': 20810327, 'created_at': datetime.datetime(2025, 2, 26, 5, 58, 1), 'result': '0.09481819532822565', 'result_long': None, 'result_double': None}] Qualite : 0.09481819532822565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20810327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20810327_26-02-2025_05_58_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20810327 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_P20810327_26-02-2025_05_58_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20810383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20810384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20810385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20810386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20810387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20810388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20810389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20810390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20810391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20810392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20810393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20810394, 'pht': 3726}}" where mtr_portfolio_id = 20810327 and dashboard_run_id = 1632146 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`=20810327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062048, 0.09481819532822565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20810327_26-02-2025_05_58_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20810383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20810384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20810385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20810386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20810387, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20810388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20810389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20810390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20810391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20810392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20810393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20810394, '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 = 20811140 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': 2614678, 'mtr_portfolio_id': 20811140, 'created_at': datetime.datetime(2025, 2, 26, 5, 59, 1), 'result': '0.08552073885483889', 'result_long': None, 'result_double': None}] Qualite : 0.08552073885483889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20811140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20811140_26-02-2025_05_59_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20811140 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_P20811140_26-02-2025_05_59_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20811241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20811242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20811243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20811244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20811245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20811246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20811247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20811248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20811249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20811250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20811251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20811252, 'pht': 3726}}" where mtr_portfolio_id = 20811140 and dashboard_run_id = 1632146 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`=20811140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062049, 0.08552073885483889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20811140_26-02-2025_05_59_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20811241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20811242, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20811243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20811244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20811245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20811246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20811247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20811248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20811249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20811250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20811251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20811252, '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 = 20812158 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': 2614679, 'mtr_portfolio_id': 20812158, 'created_at': datetime.datetime(2025, 2, 26, 5, 59, 31), 'result': '0.09831766696932574', 'result_long': None, 'result_double': None}] Qualite : 0.09831766696932574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20812158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812158_26-02-2025_05_59_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20812158 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_P20812158_26-02-2025_05_59_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812171, 'pht': 3726}}" where mtr_portfolio_id = 20812158 and dashboard_run_id = 1632146 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`=20812158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062050, 0.09831766696932574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812158_26-02-2025_05_59_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812171, '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 = 20812687 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': 2614680, 'mtr_portfolio_id': 20812687, 'created_at': datetime.datetime(2025, 2, 26, 6, 0, 11), 'result': '0.08963418557175074', 'result_long': None, 'result_double': None}] Qualite : 0.08963418557175074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20812687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812687_26-02-2025_06_00_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20812687 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_P20812687_26-02-2025_06_00_14.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812699, 'pht': 3726}}" where mtr_portfolio_id = 20812687 and dashboard_run_id = 1632146 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`=20812687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062051, 0.08963418557175074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812687_26-02-2025_06_00_14.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812699, '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 = 20813086 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': 2614681, 'mtr_portfolio_id': 20813086, 'created_at': datetime.datetime(2025, 2, 26, 6, 0, 28), 'result': '0.08625296768600657', 'result_long': None, 'result_double': None}] Qualite : 0.08625296768600657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20813086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813086_26-02-2025_06_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20813086 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_P20813086_26-02-2025_06_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813124, 'pht': 3726}}" where mtr_portfolio_id = 20813086 and dashboard_run_id = 1632146 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`=20813086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062052, 0.08625296768600657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813086_26-02-2025_06_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813124, '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 = 20813591 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': 2614682, 'mtr_portfolio_id': 20813591, 'created_at': datetime.datetime(2025, 2, 26, 6, 1, 30), 'result': '0.09224291537366475', 'result_long': None, 'result_double': None}] Qualite : 0.09224291537366475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20813591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_26-02-2025_06_01_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20813591 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_P20813591_26-02-2025_06_01_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, 'pht': 3726}}" where mtr_portfolio_id = 20813591 and dashboard_run_id = 1632146 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`=20813591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062053, 0.09224291537366475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_26-02-2025_06_01_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, '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 = 20814318 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': 2614683, 'mtr_portfolio_id': 20814318, 'created_at': datetime.datetime(2025, 2, 26, 6, 1, 58), 'result': '0.08976624329806795', 'result_long': None, 'result_double': None}] Qualite : 0.08976624329806795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20814318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20814318_26-02-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20814318 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_P20814318_26-02-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20814343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20814344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20814345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20814346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20814347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20814348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20814349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20814350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20814351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20814352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20814354, 'pht': 3726}}" where mtr_portfolio_id = 20814318 and dashboard_run_id = 1632146 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`=20814318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062054, 0.08976624329806795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20814318_26-02-2025_06_02_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20814343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20814344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20814345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20814346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20814347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20814348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20814349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20814350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20814351, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20814352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20814353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20814354, '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 = 20815112 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': 2614684, 'mtr_portfolio_id': 20815112, 'created_at': datetime.datetime(2025, 2, 26, 6, 3, 1), 'result': '0.09764258486981695', 'result_long': None, 'result_double': None}] Qualite : 0.09764258486981695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20815112 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815112_26-02-2025_06_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20815112 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_P20815112_26-02-2025_06_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815149, 'pht': 3726}}" where mtr_portfolio_id = 20815112 and dashboard_run_id = 1632146 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`=20815112 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062055, 0.09764258486981695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815112_26-02-2025_06_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815147, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815149, '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 = 20815794 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': 2614685, 'mtr_portfolio_id': 20815794, 'created_at': datetime.datetime(2025, 2, 26, 6, 3, 32), 'result': '0.08711263700988134', 'result_long': None, 'result_double': None}] Qualite : 0.08711263700988134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20815794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815794_26-02-2025_06_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20815794 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_P20815794_26-02-2025_06_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815822, 'pht': 3726}}" where mtr_portfolio_id = 20815794 and dashboard_run_id = 1632146 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`=20815794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062056, 0.08711263700988134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20815794_26-02-2025_06_03_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20815811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20815812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20815813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20815814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20815815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20815816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20815817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20815818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20815819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20815820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20815821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20815822, '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 = 20816034 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': 2614686, 'mtr_portfolio_id': 20816034, 'created_at': datetime.datetime(2025, 2, 26, 6, 3, 59), 'result': '0.1136951417760157', 'result_long': None, 'result_double': None}] Qualite : 0.1136951417760157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20816034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20816034_26-02-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20816034 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_P20816034_26-02-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20816106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20816107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20816108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20816109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20816110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20816111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20816112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20816113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20816114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20816115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20816116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20816117, 'pht': 3726}}" where mtr_portfolio_id = 20816034 and dashboard_run_id = 1632146 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`=20816034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062057, 0.1136951417760157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20816034_26-02-2025_06_04_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20816106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20816107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20816108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20816109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20816110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20816111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20816112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20816113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20816114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20816115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20816116, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20816117, '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 = 20816625 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': 2614687, 'mtr_portfolio_id': 20816625, 'created_at': datetime.datetime(2025, 2, 26, 6, 4, 33), 'result': '0.08202704915109878', 'result_long': None, 'result_double': None}] Qualite : 0.08202704915109878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20816625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20816625_26-02-2025_06_04_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20816625 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_P20816625_26-02-2025_06_04_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20816650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20816651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20816652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20816653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20816654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20816655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20816656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20816657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20816658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20816659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20816660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20816661, 'pht': 3726}}" where mtr_portfolio_id = 20816625 and dashboard_run_id = 1632146 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`=20816625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062058, 0.08202704915109878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20816625_26-02-2025_06_04_36.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20816650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20816651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20816652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20816653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20816654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20816655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20816656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20816657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20816658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20816659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20816660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20816661, '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 = 20817378 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': 2614688, 'mtr_portfolio_id': 20817378, 'created_at': datetime.datetime(2025, 2, 26, 6, 6), 'result': '0.09153655642627848', 'result_long': None, 'result_double': None}] Qualite : 0.09153655642627848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20817378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20817378_26-02-2025_06_06_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20817378 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_P20817378_26-02-2025_06_06_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20817407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20817408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20817409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20817410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20817411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20817412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20817413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20817414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20817415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20817416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20817417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20817418, 'pht': 3726}}" where mtr_portfolio_id = 20817378 and dashboard_run_id = 1632146 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`=20817378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062059, 0.09153655642627848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20817378_26-02-2025_06_06_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20817407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20817408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20817409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20817410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20817411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20817412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20817413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20817414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20817415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20817416, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20817417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20817418, '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 = 20818093 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': 2614689, 'mtr_portfolio_id': 20818093, 'created_at': datetime.datetime(2025, 2, 26, 6, 6, 29), 'result': '0.10101577193617235', 'result_long': None, 'result_double': None}] Qualite : 0.10101577193617235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20818093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20818093_26-02-2025_06_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20818093 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_P20818093_26-02-2025_06_06_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20818094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20818095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20818096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20818097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20818098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20818099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20818100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20818101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20818102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20818103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20818104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20818105, 'pht': 3726}}" where mtr_portfolio_id = 20818093 and dashboard_run_id = 1632146 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`=20818093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062060, 0.10101577193617235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20818093_26-02-2025_06_06_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20818094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20818095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20818096, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20818097, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20818098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20818099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20818100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20818101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20818102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20818103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20818104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20818105, '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 = 20819025 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': 2614690, 'mtr_portfolio_id': 20819025, 'created_at': datetime.datetime(2025, 2, 26, 6, 6, 58), 'result': '0.09072138616566583', 'result_long': None, 'result_double': None}] Qualite : 0.09072138616566583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20819025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20819025_26-02-2025_06_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20819025 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_P20819025_26-02-2025_06_06_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20819027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20819028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20819029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20819030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20819031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20819032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20819033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20819034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20819035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20819036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20819037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20819038, 'pht': 3726}}" where mtr_portfolio_id = 20819025 and dashboard_run_id = 1632146 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`=20819025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062061, 0.09072138616566583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20819025_26-02-2025_06_06_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20819027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20819028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20819029, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20819030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20819031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20819032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20819033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20819034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20819035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20819036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20819037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20819038, '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 = 20819269 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': 2614012, 'mtr_portfolio_id': 20819269, 'created_at': datetime.datetime(2025, 2, 25, 21, 35), 'result': '0.10673068842291605', 'result_long': None, 'result_double': None}] Qualite : 0.10673068842291605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20819269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20819269_25-02-2025_21_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20819269 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_P20819269_25-02-2025_21_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20819270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20819271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20819272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20819273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20819274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20819275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20819276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20819277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20819278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20819279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20819280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20819281, 'pht': 3726}}" where mtr_portfolio_id = 20819269 and dashboard_run_id = 1632146 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`=20819269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062062, 0.10673068842291605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20819269_25-02-2025_21_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20819270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20819271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20819272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20819273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20819274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20819275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20819276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20819277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20819278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20819279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20819280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20819281, '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 (20785620,20787294,20787821,20788035,20788531,20789029,20789609,20790301,20790710,20791187,20791496,20792366,20792964,20793580,20794162,20795049,20795717,20796930,20797353,20797921,20798362,20799103,20799638,20800212,20800546,20801259,20801898,20802472,20803872,20804024,20804543,20804835,20805411,20806056,20806785,20807291,20808053,20808671,20809290,20809861,20810327,20811140,20812158,20812687,20813086,20813591,20814318,20815112,20815794,20816034,20816625,20817378,20818093,20819025,20819269) result : ((1339449423,), (1339449427,), (1339449444,), (1339449451,), (1339450050,), (1339450062,), (1339450074,), (1339450353,), (1339487223,), (1339488270,), (1339488273,), (1339488377,), (1339488397,), (1339488418,), (1339488441,), (1339488606,), (1339493846,), (1339496484,), (1339496569,), (1339496572,), (1339496581,), (1339496584,), (1339496588,), (1339496597,), (1339496600,), (1339496603,), (1339496607,), (1339496609,), (1339496650,), (1339496657,), (1339496661,), (1339496664,), (1339496667,), (1339496668,), (1339496672,), (1339496675,), (1339496679,), (1339496807,), (1339496810,), (1339496816,), (1339496824,), (1339496827,), (1339496839,), (1339496842,), (1339496845,), (1339496847,), (1339496850,), (1339496853,), (1339496876,), (1339496879,), (1339496885,), (1339496889,), (1339496998,), (1339497000,), (1339497003,), (1339497005,), (1339497008,), (1339497010,), (1339497024,), (1339497016,), (1339497019,), (1339497022,), (1339497032,), (1339497035,), (1339497037,), (1339497040,), (1339497043,), (1339497045,), (1339497058,), (1339497061,), (1339497066,), (1339497138,), (1339497141,), (1339497147,), (1339497158,), (1339497175,), (1339497180,), (1339497191,), (1339497195,), (1339497197,), (1339497200,), (1339497214,), (1339497217,), (1339497220,), (1339497223,), (1339497227,), (1339497228,), (1339497235,), (1339497238,), (1339497241,), (1339497244,), (1339497260,), (1339497263,), (1339497267,), (1339497270,), (1339497272,), (1339497274,), (1339497280,), (1339497282,), (1339497285,), (1339497291,), (1339497297,), (1339497318,), (1339497337,), (1339497492,), (1339497616,), (1339497622,), (1339497630,), (1339497690,), (1339497702,), (1339497705,), (1339497708,), (1339497718,), (1339497726,), (1339497729,), (1339497734,), (1339497736,), (1339497738,), (1339497782,), (1339497788,), (1339497800,), (1339497812,), (1339497819,), (1339497942,), (1339497945,), (1339497947,), (1339497951,), (1339498080,), (1339498103,), (1339498112,), (1339498120,), (1339498124,), (1339498126,), (1339498353,), (1339498199,), (1339498226,), (1339498302,), (1339498360,), (1339498368,), (1339498371,), (1339498374,), (1339498390,), (1339498398,), (1339498404,), (1339498409,), (1339498412,), (1339498415,), (1339498459,), (1339498463,), (1339498466,), (1339498469,), (1339498472,), (1339498497,), (1339498500,), (1339498503,), (1339498507,), (1339498510,), (1339498533,), (1339498539,), (1339498544,), (1339498548,), (1339498551,), (1339498657,), (1339498732,), (1339498746,), (1339498749,), (1339498752,), (1339498754,), (1339498789,), (1339498793,), (1339498814,), (1339498818,), (1339498836,), (1339498839,), (1339498842,), (1339498845,), (1339498848,), (1339498856,), (1339498858,), (1339498862,), (1339498865,), (1339498868,), (1339498875,), (1339498878,), (1339498881,), (1339498885,), (1339498888,), (1339498910,), (1339498913,), (1339498916,), (1339498921,), (1339498930,), (1339498935,), (1339499176,), (1339499224,), (1339499349,), (1339499424,), (1339499514,), (1339500345,), (1339500348,), (1339500349,), (1339500351,), (1339500353,), (1339500383,), (1339500373,), (1339500376,), (1339500380,), (1339500417,), (1339500426,), (1339500449,), (1339500469,), (1339500471,), (1339500475,), (1339500485,), (1339500508,), (1339500511,), (1339500514,), (1339500517,), (1339500526,), (1339500530,), (1339500532,), (1339500534,), (1339500537,), (1339500555,), (1339501504,), (1339501506,), (1339501579,), (1339501581,), (1339501583,), (1339501784,), (1339501786,), (1339501875,), (1339501877,), (1339501879,), (1339501920,), (1339501969,), (1339501972,), (1339501975,), (1339501978,), (1339501989,), (1339502002,), (1339502005,), (1339502007,), (1339502009,), (1339502011,), (1339502028,), (1339502030,), (1339502032,), (1339502034,), (1339502067,), (1339502094,), (1339502097,), (1339502100,), (1339502103,), (1339502118,), (1339502121,), (1339502124,), (1339502127,), (1339502131,), (1339502243,), (1339502246,), (1339502251,), (1339502257,), (1339502260,), (1339502263,), (1339502285,), (1339502288,), (1339502291,), (1339502294,), (1339502297,), (1339502315,), (1339502318,), (1339502321,), (1339502324,), (1339502327,), (1339502361,), (1339502364,), (1339502367,), (1339502370,), (1339502372,), (1339502375,), (1339502590,), (1339502567,), (1339502578,), (1339502585,), (1339502587,), (1339502608,), (1339502611,), (1339502614,), (1339502617,), (1339502620,), (1339502627,), (1339502630,), (1339502647,), (1339502649,), (1339502650,), (1339502651,), (1339502694,), (1339502697,), (1339502700,), (1339502704,), (1339502737,), (1339502740,), (1339502742,), (1339502746,), (1339502750,), (1339502752,), (1339502921,), (1339502990,), (1339503025,), (1339503029,), (1339503035,), (1339503071,), (1339503074,), (1339503130,), (1339503134,), (1339503141,), (1339503151,), (1339503184,), (1339503187,), (1339503191,), (1339503194,), (1339503197,), (1339503271,), (1339503277,), (1339503280,), (1339503283,), (1339503304,), (1339503307,), (1339503310,), (1339503314,), (1339503316,), (1339503327,), (1339503367,), (1339503370,), (1339503372,), (1339503375,), (1339503377,), (1339503407,), (1339503410,), (1339503413,), (1339503415,), (1339503416,), (1339503419,), (1339503443,), (1339503446,), (1339503449,), (1339503452,), (1339503461,), (1339503464,), (1339503467,), (1339503470,), (1339503472,), (1339503491,), (1339503494,), (1339503497,), (1339503500,), (1339503502,), (1339503504,), (1339503528,), (1339503509,), (1339503512,), (1339503522,), (1339503526,), (1339503549,), (1339503557,), (1339503560,), (1339503563,), (1339503566,), (1339503587,), (1339503590,), (1339503593,), (1339503631,), (1339503634,), (1339503646,), (1339503649,), (1339503651,), (1339503654,), (1339503657,), (1339503659,), (1339503665,), (1339503668,), (1339503671,), (1339503674,), (1339503703,), (1339503706,), (1339503709,), (1339503712,), (1339503715,), (1339503717,), (1339503724,), (1339503727,), (1339503729,), (1339503756,), (1339503759,), (1339503762,), (1339503765,), (1339503768,), (1339503771,), (1339503796,), (1339503828,), (1339503832,), (1339503835,), (1339503855,), (1339503858,), (1339503861,), (1339503865,), (1339503871,), (1339503872,), (1339503882,), (1339503885,), (1339503888,), (1339503891,), (1339503894,), (1339503896,), (1339503911,), (1339503923,), (1339503926,), (1339503929,), (1339503931,), (1339503949,), (1339503951,), (1339503954,), (1339503958,), (1339503961,), (1339503972,), (1339503975,), (1339503978,), (1339503988,), (1339503993,), (1339504002,), (1339504005,), (1339504008,), (1339504011,), (1339504014,), (1339504067,), (1339504040,), (1339504043,), (1339504046,), (1339504057,), (1339504065,), (1339504080,), (1339504092,), (1339504104,), (1339504108,), (1339504111,), (1339504142,), (1339504145,), (1339504155,), (1339504159,), (1339504163,), (1339504165,), (1339504199,), (1339504205,), (1339504208,), (1339504212,), (1339504222,), (1339504254,), (1339504263,), (1339504266,), (1339504270,), (1339504272,), (1339504274,), (1339504279,), (1339504282,), (1339504285,), (1339504288,), (1339504290,), (1339504316,), (1339504319,), (1339504322,), (1339504325,), (1339504327,), (1339504330,), (1339504403,), (1339504406,), (1339504409,), (1339504412,), (1339504414,), (1339504437,), (1339504439,), (1339504442,), (1339504445,), (1339504448,), (1339504450,), (1339504458,), (1339504461,), (1339504464,), (1339504471,), (1339504518,), (1339504521,), (1339504524,), (1339504527,), (1339504530,), (1339504541,), (1339504543,), (1339504546,), (1339504602,), (1339504630,), (1339504634,), (1339504636,), (1339504639,), (1339504643,), (1339504662,), (1339504666,), (1339504668,), (1339504669,), (1339504673,), (1339504676,), (1339504711,), (1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,), (1339505617,), (1339505619,), (1339505622,), (1339505625,), (1339505630,), (1339505632,), (1339505663,), (1339505666,), (1339505671,), (1339505676,), (1339505680,), (1339505683,), (1339505687,), (1339505702,), (1339505704,), (1339505734,), (1339505737,), (1339505740,), (1339505743,), (1339505747,), (1339505749,), (1339505785,), (1339505793,), (1339505798,), (1339505803,), (1339505808,), (1339505811,), (1339505814,), (1339505865,), (1339505869,), (1339505872,), (1339505876,), (1339505646,), (1339505651,), (1339505655,), (1339505658,), (1339505661,), (1339505692,), (1339505694,), (1339505698,), (1339505700,), (1339505709,), (1339505712,), (1339505715,), (1339505719,), (1339505723,), (1339505726,), (1339505765,), (1339505768,), (1339505770,), (1339505773,), (1339505779,), (1339505822,), (1339505831,), (1339505837,), (1339505839,), (1339505842,), (1339505843,), (1339505888,), (1339505893,), (1339505894,), (1339505901,), (1339505923,), (1339505925,), (1339505927,), (1339505930,), (1339505933,), (1339505936,), (1339505973,), (1339505979,), (1339505984,), (1339505987,), (1339506015,), (1339506042,), (1339506118,), (1339506124,), (1339506161,), (1339506179,), (1339506185,), (1339506189,), (1339506193,), (1339506200,), (1339506236,), (1339506239,), (1339506241,), (1339506244,), (1339506285,), (1339506288,), (1339506291,), (1339506294,), (1339506297,), (1339506301,), (1339506337,), (1339506338,), (1339506340,), (1339506353,), (1339506357,), (1339506360,), (1339506392,), (1339506399,), (1339506402,), (1339506405,), (1339506454,), (1339506460,), (1339506465,), (1339506468,), (1339506471,), (1339506473,), (1339506495,), (1339506485,), (1339506489,), (1339506492,), (1339506528,), (1339506531,), (1339506535,), (1339506539,), (1339506543,), (1339506546,), (1339506571,), (1339506574,), (1339506578,), (1339506582,), (1339507094,), (1339507128,), (1339507140,), (1339507148,), (1339507151,), (1339507154,), (1339507223,), (1339507228,), (1339507232,), (1339507236,), (1339507241,), (1339507298,), (1339507301,), (1339507303,), (1339507307,), (1339507310,), (1339507348,), (1339507354,), (1339507359,), (1339507364,), (1339507367,), (1339507401,), (1339507415,), (1339507426,), (1339507429,), (1339507434,), (1339507437,), (1339507467,), (1339507475,), (1339507481,), (1339507486,), (1339507491,), (1339507494,), (1339507526,), (1339507532,), (1339507569,), (1339507703,), (1339507706,), (1339507709,), (1339507711,), (1339507714,), (1339507723,), (1339507750,), (1339507753,), (1339507756,), (1339507774,), (1339507779,), (1339507783,), (1339507787,), (1339507791,), (1339507803,), (1339507822,), (1339507826,), (1339507829,), (1339507832,), (1339507851,), (1339507852,), (1339507855,), (1339507859,), (1339507864,), (1339507868,), (1339508064,), (1339508027,), (1339508030,), (1339508053,), (1339508057,), (1339508089,), (1339508095,), (1339508100,), (1339508103,), (1339508108,), (1339508110,), (1339508148,), (1339508151,), (1339508154,), (1339508912,), (1339508913,), (1339508916,), (1339508937,), (1339509026,), (1339509074,), (1339509128,), (1339509131,), (1339509134,), (1339509137,), (1339509181,), (1339509187,), (1339509193,), (1339509203,), (1339509234,), (1339509238,), (1339509241,), (1339509246,), (1339509252,), (1339509254,), (1339509295,), (1339509299,), (1339509303,), (1339509306,), (1339509384,), (1339509458,), (1339509985,), (1339509989,), (1339509992,), (1339509995,), (1339510022,), (1339510028,), (1339510033,), (1339510036,), (1339510041,), (1339510044,), (1339510070,), (1339510073,), (1339510076,), (1339510079,), (1339510082,), (1339510103,), (1339510108,), (1339510112,), (1339510125,), (1339510130,), (1339510135,), (1339510138,), (1339510143,), (1339510716,), (1339510719,), (1339510722,), (1339510726,), (1339510816,), (1339510862,), (1339510978,), (1339511163,), (1339511190,), (1339511195,), (1339511198,), (1339511256,), (1339510874,), (1339510930,), (1339510933,), (1339510965,), (1339510973,), (1339511362,), (1339511452,), (1339511518,), (1339511544,), (1339511548,), (1339511550,), (1339511554,), (1339511558,), (1339511561,), (1339511584,), (1339511588,), (1339511591,), (1339511594,), (1339511617,), (1339511622,), (1339511628,), (1339511634,), (1339511642,), (1339511650,), (1339511810,), (1339511815,), (1339511818,), (1339511863,), (1339511868,), (1339511871,), (1339511874,), (1339511877,), (1339511879,), (1339511906,), (1339511912,), (1339511919,), (1339511926,), (1339511927,), (1339511946,), (1339511951,), (1339511960,), (1339511966,), (1339511969,), (1339511990,), (1339511995,), (1339511999,), (1339512003,), (1339512008,), (1339512011,), (1339512030,), (1339512035,), (1339512044,), (1339512091,), (1339512095,), (1339512098,), (1339512103,), (1339512105,), (1339512107,), (1339512122,), (1339512125,), (1339512128,), (1339512132,), (1339512136,), (1339512160,), (1339512170,), (1339512174,), (1339512178,), (1339512180,), (1339512181,), (1339512206,), (1339512211,), (1339512236,), (1339512240,), (1339512277,), (1339512258,), (1339512261,), (1339512266,), (1339512271,), (1339512324,), (1339512608,), (1339512643,), (1339512646,), (1339512649,), (1339512651,), (1339512792,), (1339512796,), (1339512799,), (1339512802,), (1339512856,), (1339512867,), (1339512874,), (1339512880,), (1339512889,), (1339512894,), (1339512953,), (1339513030,), (1339513082,), (1339513086,), (1339513108,), (1339513116,), (1339513142,), (1339513145,), (1339513147,), (1339513148,), (1339513189,), (1339513192,), (1339513195,), (1339513198,), (1339513223,), (1339513227,), (1339513231,), (1339513235,), (1339513238,), (1339513264,), (1339513266,), (1339513270,), (1339513273,), (1339513277,), (1339513283,), (1339513294,), (1339513308,), (1339513366,), (1339513371,), (1339513376,), (1339513380,), (1339513384,), (1339513479,), (1339513483,), (1339513488,), (1339513519,), (1339513522,), (1339513561,), (1339513642,), (1339513646,), (1339513650,), (1339513682,), (1339513687,), (1339513690,), (1339513694,), (1339513697,), (1339513702,), (1339513833,), (1339513838,), (1339513840,), (1339513844,), (1339513886,), (1339513872,), (1339513875,), (1339513878,), (1339513881,), (1339513883,), (1339513923,), (1339513927,), (1339513931,), (1339514425,), (1339514450,), (1339514458,), (1339514463,), (1339514466,), (1339514498,), (1339514502,), (1339514505,), (1339514508,), (1339514538,), (1339514549,), (1339514554,), (1339514557,), (1339514560,), (1339514562,), (1339515217,), (1339515303,), (1339515381,), (1339515460,), (1339515536,), (1339515616,), (1339515693,), (1339515698,), (1339515701,), (1339515704,), (1339515741,), (1339515747,), (1339515750,), (1339515754,), (1339515774,), (1339515778,), (1339515782,), (1339515789,), (1339515807,), (1339515809,), (1339515847,), (1339515849,), (1339515851,), (1339515877,), (1339515885,), (1339515889,), (1339515893,), (1339515896,), (1339515899,), (1339515922,), (1339515928,), (1339515931,), (1339515934,), (1339515938,), (1339515942,), (1339515962,), (1339515966,), (1339515969,), (1339516012,), (1339516016,), (1339516018,), (1339516019,), (1339516022,), (1339516025,), (1339516055,), (1339516043,), (1339516050,), (1339516086,), (1339516096,), (1339516100,), (1339516102,), (1339516106,), (1339516108,), (1339516144,), (1339516148,), (1339516153,), (1339516161,), (1339516246,), (1339516252,), (1339516258,), (1339516262,), (1339516266,), (1339516268,), (1339516292,), (1339516300,), (1339516304,), (1339516308,), (1339516310,), (1339516314,), (1339516344,), (1339516349,), (1339516353,), (1339516355,), (1339516403,), (1339516406,), (1339516409,), (1339516419,), (1339516422,), (1339516425,), (1339516449,), (1339516452,), (1339516457,), (1339516468,), (1339516496,), (1339516499,), (1339516501,), (1339516504,), (1339516508,), (1339516510,), (1339516531,), (1339516540,), (1339516545,), (1339516550,), (1339516573,), (1339516576,), (1339516579,), (1339516582,), (1339516585,), (1339516587,), (1339516620,), (1339516623,), (1339516626,), (1339516631,), (1339516634,), (1339516651,), (1339516655,), (1339516661,), (1339516664,), (1339516733,), (1339516736,), (1339516737,), (1339516739,), (1339516744,), (1339516747,), (1339516760,), (1339516764,), (1339516767,), (1339516769,), (1339519664,), (1339519660,), (1339519715,), (1339519720,), (1339519732,), (1339519741,), (1339519745,), (1339519757,), (1339519761,), (1339519765,), (1339519770,), (1339519774,), (1339519777,), (1339519835,), (1339519888,), (1339519921,), (1339520047,), (1339520147,), (1339520155,), (1339520160,), (1339520164,), (1339520167,), (1339520170,), (1339520177,), (1339520187,), (1339520191,), (1339520206,), (1339520211,), (1339520221,), (1339520238,), (1339520242,), (1339520413,), (1339520417,), (1339520421,), (1339520427,), (1339520433,), (1339520463,), (1339520497,), (1339520500,), (1339520508,), (1339520516,), (1339520550,), (1339520556,), (1339520559,), (1339520563,), (1339520568,), (1339520597,), (1339520604,), (1339520608,), (1339520612,), (1339520671,), (1339520674,), (1339520719,), (1339520723,), (1339520727,), (1339520731,), (1339520751,), (1339520755,), (1339520774,), (1339520779,), (1339520781,), (1339520784,), (1339520795,), (1339520799,), (1339520803,), (1339520809,), (1339520814,), (1339520845,), (1339520871,), (1339520875,), (1339520879,), (1339520882,), (1339520940,), (1339520902,), (1339520918,), (1339520928,), (1339520933,), (1339520937,), (1339520950,), (1339520965,), (1339521048,), (1339521053,), (1339521196,), (1339521211,), (1339521216,), (1339521220,), (1339521223,), (1339521228,), (1339521284,), (1339521287,), (1339521293,), (1339521299,), (1339521303,), (1339521321,), (1339521325,), (1339521327,), (1339521330,), (1339521333,), (1339521336,), (1339521351,), (1339521355,), (1339521360,), (1339521365,), (1339521383,), (1339521386,), (1339521393,), (1339521396,), (1339521400,), (1339521404,), (1339521443,), (1339521446,), (1339521449,), (1339521459,), (1339521470,), (1339521493,), (1339521497,), (1339521516,), (1339521531,), (1339521535,), (1339521539,), (1339521542,), (1339521547,), (1339521572,), (1339521575,), (1339521578,), (1339521596,), (1339521600,), (1339521603,), (1339521606,), (1339521624,), (1339521627,), (1339521687,), (1339521697,), (1339521735,), (1339521768,), (1339521772,), (1339521876,), (1339522038,), (1339522136,), (1339522140,), (1339522144,), (1339522170,), (1339522181,), (1339522189,), (1339522192,), (1339522198,), (1339522201,), (1339522233,), (1339522237,), (1339522240,), (1339522243,), (1339522249,), (1339522267,), (1339522271,), (1339522275,), (1339522280,), (1339522286,), (1339522289,), (1339522305,), (1339522310,), (1339522315,), (1339522325,), (1339522387,), (1339522416,), (1339522419,), (1339522423,), (1339522427,), (1339522430,), (1339522458,), (1339522462,), (1339522465,), (1339522469,), (1339522491,), (1339522495,), (1339522499,), (1339522503,), (1339522515,), (1339522529,), (1339522535,), (1339522544,), (1339522548,), (1339522553,), (1339522562,), (1339522581,), (1339522585,), (1339522589,), (1339522593,), (1339522605,), (1339522609,), (1339522613,), (1339522616,), (1339522620,), (1339522624,), (1339522634,), (1339522638,), (1339522642,), (1339522645,), (1339522651,), (1339522675,), (1339522678,), (1339522682,), (1339522687,), (1339522691,), (1339522727,), (1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,), (1339524130,), (1339524133,), (1339524138,), (1339524143,), (1339524146,), (1339524181,), (1339524165,), (1339524168,), (1339524173,), (1339524176,), (1339524515,), (1339524532,), (1339524540,), (1339524581,), (1339524595,), (1339524598,), (1339524625,), (1339524628,), (1339524631,), (1339524634,), (1339524637,), (1339524670,), (1339524672,), (1339524680,), (1339524712,), (1339524715,), (1339524718,), (1339524723,), (1339524727,), (1339524730,), (1339524745,), (1339524749,), (1339524753,), (1339524758,), (1339524762,), (1339524777,), (1339524781,), (1339524785,), (1339524802,), (1339524806,), (1339524830,), (1339524834,), (1339524837,), (1339524841,), (1339524844,), (1339524846,), (1339524870,), (1339524874,), (1339524878,), (1339524880,), (1339524885,), (1339524914,), (1339524929,), (1339524932,), (1339524934,), (1339524936,), (1339524938,), (1339524963,), (1339524967,), (1339524971,), (1339525036,), (1339525073,), (1339525078,), (1339525081,), (1339525091,), (1339525106,), (1339525110,), (1339525132,), (1339525135,), (1339525192,), (1339525273,), (1339525864,), (1339525868,), (1339525871,), (1339525874,), (1339525878,), (1339525880,), (1339525901,), (1339525906,), (1339525912,), (1339525918,), (1339525922,), (1339525963,), (1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,), (1339526225,), (1339526231,), (1339526235,), (1339526246,), (1339526254,), (1339526275,), (1339526279,), (1339526283,), (1339526285,), (1339526287,), (1339526290,), (1339526303,), (1339526308,), (1339526310,), (1339526313,), (1339526316,), (1339526343,), (1339526346,), (1339526351,), (1339526364,), (1339526369,), (1339526371,), (1339526400,), (1339526404,), (1339526406,), (1339526483,), (1339526486,), (1339526507,), (1339526515,), (1339526533,), (1339526542,), (1339526545,), (1339526547,), (1339526579,), (1339526593,), (1339526596,), (1339526599,), (1339526618,), (1339526623,), (1339526628,), (1339526634,), (1339526639,), (1339526644,), (1339526666,), (1339526672,), (1339526675,), (1339526746,), (1339527870,), (1339527868,), (1339527889,), (1339527893,), (1339527912,), (1339527917,), (1339527919,), (1339527923,), (1339527938,), (1339527943,), (1339527946,), (1339527949,), (1339527975,), (1339527979,), (1339527984,), (1339527987,), (1339527991,), (1339527993,), (1339528018,), (1339528025,), (1339528030,), (1339528035,), (1339528212,), (1339528070,), (1339528073,), (1339528075,), (1339528207,), (1339528414,), (1339528420,), (1339528425,), (1339528429,), (1339528431,), (1339528433,), (1339528465,), (1339528471,), (1339528475,), (1339528479,), (1339528508,), (1339528510,), (1339528518,), (1339528532,), (1339528541,), (1339528545,), (1339528575,), (1339528583,), (1339528593,), (1339528601,), (1339528608,), (1339528698,), (1339528740,), (1339528751,), (1339528770,), (1339528787,), (1339528791,), (1339528810,), (1339528816,), (1339528821,), (1339528825,), (1339528866,), (1339528870,), (1339528875,), (1339528899,), (1339528906,), (1339528918,), (1339528939,), (1339528941,), (1339528946,), (1339528951,), (1339528957,), (1339528977,), (1339528982,), (1339528986,), (1339528990,), (1339528995,), (1339529066,), (1339529222,), (1339529225,), (1339529228,), (1339529233,), (1339529259,), (1339529275,), (1339529279,), (1339529284,), (1339529289,), (1339529292,), (1339529321,), (1339529324,), (1339529326,), (1339529330,), (1339529335,), (1339529372,), (1339529376,), (1339529381,), (1339529387,), (1339529398,), (1339529484,), (1339529488,), (1339529492,), (1339529497,), (1339529501,), (1339529504,), (1339529546,), (1339529525,), (1339529529,), (1339529533,), (1339529537,), (1339529787,), (1339529791,), (1339529800,), (1339529885,), (1339529892,), (1339529923,), (1339530030,), (1339530034,), (1339530040,), (1339530044,), (1339530050,), (1339530084,), (1339530096,), (1339530100,), (1339530104,), (1339530157,), (1339530241,), (1339530245,), (1339530251,), (1339530255,), (1339530270,), (1339530273,), (1339530277,), (1339530289,), (1339530327,), (1339530333,), (1339530337,), (1339530344,), (1339530353,), (1339530380,), (1339530386,), (1339530393,), (1339530401,), (1339530404,), (1339530406,), (1339530462,), (1339530468,), (1339530472,), (1339530476,), (1339530479,), (1339530497,), (1339530500,), (1339530504,), (1339530549,), (1339530554,), (1339530558,), (1339530563,), (1339530566,), (1339530613,), (1339530617,), (1339530621,), (1339530625,), (1339530628,), (1339530656,), (1339530661,), (1339530666,), (1339530671,), (1339530699,), (1339530712,), (1339530717,), (1339530722,), (1339530725,), (1339530726,), (1339530764,), (1339530776,), (1339530780,), (1339530784,), (1339531033,), (1339531014,), (1339531016,), (1339531020,), (1339531025,), (1339531030,), (1339531063,), (1339531067,), (1339531074,), (1339531092,), (1339531122,), (1339531125,), (1339531129,), (1339531133,), (1339531136,), (1339531204,), (1339531212,), (1339531224,), (1339531231,), (1339531234,), (1339531237,), (1339531251,), (1339531256,), (1339531260,), (1339531264,), (1339531284,), (1339531287,), (1339531291,), (1339531295,), (1339531337,), (1339531340,), (1339531344,), (1339531348,), (1339531352,), (1339531355,), (1339531381,), (1339531406,), (1339531410,), (1339531412,), (1339531416,), (1339531432,), (1339531436,), (1339531440,), (1339531443,), (1339531448,), (1339531452,), (1339531479,), (1339531486,), (1339531490,), (1339531497,), (1339531500,), (1339531513,), (1339531515,), (1339531519,), (1339531523,), (1339531526,), (1339531539,), (1339532269,), (1339532355,), (1339532441,), (1339532478,), (1339532501,), (1339532504,), (1339532507,), (1339532511,), (1339532568,), (1339532576,), (1339532582,), (1339532584,), (1339532607,), (1339532611,), (1339532628,), (1339532632,), (1339532636,), (1339532654,), (1339532639,), (1339532642,), (1339532645,), (1339532649,), (1339532651,), (1339532836,), (1339532839,), (1339532845,), (1339532854,), (1339532865,), (1339532910,), (1339532918,), (1339532920,), (1339532926,), (1339532932,), (1339532951,), (1339532956,), (1339532962,), (1339532979,), (1339532992,), (1339532994,), (1339533013,), (1339533016,), (1339533020,), (1339533795,), (1339533796,), (1339533800,), (1339533803,), (1339533807,), (1339533810,), (1339533850,), (1339533853,), (1339533856,), (1339533861,), (1339534020,), (1339534096,), (1339534225,), (1339534229,), (1339534297,), (1339534309,), (1339534363,), (1339534367,), (1339534369,), (1339534373,), (1339534377,), (1339534381,), (1339534424,), (1339534431,), (1339534446,), (1339534502,), (1339534511,), (1339534733,), (1339543377,), (1339543440,), (1339543672,), (1339543966,), (1339543993,), (1339544017,), (1339544020,), (1339544024,), (1339544197,), (1339544189,), (1339544194,), (1339544411,), (1339544416,), (1339544420,), (1339544425,), (1339544431,), (1339544624,), (1339544629,), (1339544635,), (1339544668,), (1339544673,), (1339544678,), (1339544683,), (1339544688,), (1339544691,), (1339544713,), (1339544717,), (1339544726,), (1339544733,), (1339544738,), (1339544767,), (1339544771,), (1339544775,), (1339544781,), (1339544785,), (1339544817,), (1339544828,), (1339544833,), (1339544859,), (1339544873,), (1339544878,), (1339544882,), (1339544886,), (1339544889,), (1339548688,), (1339549644,), (1339549648,), (1339549651,), (1339549738,), (1339549742,), (1339549748,), (1339549754,), (1339549759,), (1339549783,), (1339549793,), (1339549797,), (1339549801,), (1339549808,), (1339549826,), (1339549831,), (1339549834,), (1339549868,), (1339549876,), (1339549879,), (1339549882,), (1339549903,), (1339549906,), (1339549908,), (1339549917,), (1339549923,), (1339549925,), (1339549962,), (1339549966,), (1339549972,), (1339549976,), (1339549998,), (1339550003,), (1339550040,), (1339550043,), (1339550045,), (1339550048,), (1339550051,), (1339550054,), (1339550084,), (1339550088,), (1339550091,), (1339550095,), (1339550098,), (1339550100,), (1339550118,), (1339550122,), (1339550127,), (1339550130,), (1339550133,), (1339550173,), (1339550153,), (1339550162,), (1339550350,), (1339550360,), (1339550383,), (1339550451,), (1339550457,), (1339550474,), (1339550551,), (1339550652,), (1339550923,), (1339551013,), (1339551139,), (1339551266,), (1339551279,), (1339551282,), (1339551285,), (1339551504,), (1339551513,), (1339551522,), (1339551584,), (1339551587,), (1339551591,), (1339551596,), (1339551601,), (1339551604,), (1339551618,), (1339551623,), (1339551627,), (1339551632,), (1339551637,), (1339551918,), (1339552003,), (1339552068,), (1339552071,), (1339552097,), (1339552264,), (1339552268,), (1339552270,), (1339552273,), (1339552277,), (1339552279,), (1339552304,), (1339552311,), (1339552314,), (1339552317,), (1339552345,), (1339552347,), (1339552351,), (1339552584,), (1339552591,), (1339552595,), (1339552598,), (1339552602,), (1339552605,), (1339552633,), (1339552635,), (1339552638,), (1339552642,), (1339552644,), (1339552647,), (1339552716,), (1339552720,), (1339552722,), (1339552727,), (1339552733,), (1339552734,), (1339552736,), (1339552738,), (1339552740,), (1339552741,), (1339552765,), (1339552755,), (1339552757,), (1339552762,), (1339553039,), (1339553043,), (1339553047,), (1339553049,), (1339553052,), (1339553055,), (1339553558,), (1339553568,), (1339553577,), (1339553586,), (1339553589,), (1339553591,), (1339553825,), (1339553827,), (1339553835,), (1339553847,), (1339553881,), (1339553886,), (1339553890,), (1339553894,), (1339553898,), (1339553931,), (1339553935,), (1339553938,), (1339553941,), (1339553945,), (1339553966,), (1339553969,), (1339553973,), (1339554037,), (1339554113,), (1339554164,), (1339554221,), (1339554225,), (1339554227,), (1339554237,), (1339554241,), (1339554247,), (1339554251,), (1339554255,), (1339554266,), (1339554269,), (1339554273,), (1339554309,), (1339554314,), (1339554361,), (1339554368,), (1339554371,), (1339554375,), (1339554386,), (1339554424,), (1339554482,), (1339554581,), (1339554672,), (1339554701,), (1339554726,), (1339554731,), (1339554735,), (1339554753,), (1339554757,), (1339554760,), (1339554763,), (1339554768,), (1339555054,), (1339554925,), (1339554966,), (1339554970,), (1339555000,), (1339555006,), (1339555063,), (1339555067,), (1339555073,), (1339555120,), (1339555124,), (1339555127,), (1339555130,), (1339555134,), (1339555137,), (1339555176,), (1339555183,), (1339555196,), (1339555206,), (1339555238,), (1339555250,), (1339555255,), (1339555256,), (1339555259,), (1339555261,), (1339555275,), (1339555279,), (1339555282,), (1339555286,), (1339555290,), (1339555303,), (1339555306,), (1339555727,), (1339555787,), (1339555791,), (1339555819,), (1339555828,), (1339555874,), (1339555876,), (1339555878,), (1339555881,), (1339555884,), (1339555887,), (1339555920,), (1339555924,), (1339555928,), (1339555932,), (1339555955,), (1339555958,), (1339555962,), (1339555966,), (1339555970,), (1339555972,), (1339555987,), (1339555990,), (1339555993,), (1339555996,), (1339555997,), (1339556011,), (1339556014,), (1339556017,), (1339556039,), (1339556042,), (1339556045,), (1339556049,), (1339556053,), (1339556058,), (1339556120,), (1339556123,), (1339556127,), (1339556132,), (1339556137,), (1339556182,), (1339556178,), (1339556227,), (1339556230,), (1339556282,), (1339556284,), (1339556285,), (1339556863,), (1339557084,), (1339557087,), (1339557129,), (1339557133,), (1339557137,), (1339557141,), (1339557144,), (1339557166,), (1339557171,), (1339557172,), (1339557209,), (1339557212,), (1339557243,), (1339557247,), (1339557280,), (1339557283,), (1339557315,), (1339557318,), (1339557321,), (1339557388,), (1339557395,), (1339557399,), (1339557474,), (1339557491,), (1339557496,), (1339557515,), (1339557518,), (1339557522,), (1339557526,), (1339557549,), (1339557557,), (1339557561,), (1339557565,), (1339557569,), (1339557571,), (1339557606,), (1339557611,), (1339557615,), (1339557618,), (1339557778,), (1339557766,), (1339557769,), (1339557772,), (1339557775,), (1339557805,), (1339557806,), (1339557810,), (1339557813,), (1339557816,), (1339557818,), (1339557858,), (1339557864,), (1339557868,), (1339557870,), (1339557874,), (1339557878,), (1339557900,), (1339557903,), (1339557951,), (1339557961,), (1339557966,), (1339557994,), (1339558013,), (1339558019,), (1339558023,), (1339558025,), (1339558050,), (1339558054,), (1339558059,), (1339558063,), (1339558088,), (1339558091,), (1339558094,), (1339558098,), (1339558118,), (1339558122,), (1339558181,), (1339558183,), (1339558188,), (1339558192,), (1339558198,), (1339558199,), (1339558221,), (1339558225,), (1339558228,), (1339558231,), (1339558233,), (1339558242,), (1339558257,), (1339558260,), (1339558263,), (1339558265,), (1339558268,), (1339558293,), (1339558296,), (1339558299,), (1339558337,), (1339558343,), (1339558351,), (1339558356,), (1339558360,), (1339558365,), (1339558368,), (1339558371,), (1339558392,), (1339558384,), (1339558387,), (1339558389,), (1339558429,), (1339558433,), (1339558436,), (1339558438,), (1339558446,), (1339558452,), (1339558484,), (1339558487,), (1339558490,), (1339558513,), (1339558516,), (1339558520,), (1339558524,), (1339558528,), (1339558530,), (1339558877,), (1339559147,), (1339559256,), (1339559260,), (1339559263,), (1339559292,), (1339559303,), (1339559311,), (1339559313,), (1339559317,), (1339559705,), (1339559708,), (1339559711,), (1339559720,), (1339559728,), (1339559733,), (1339559748,), (1339559760,), (1339559764,), (1339559768,), (1339559780,), (1339559790,), (1339559793,), (1339559797,), (1339559799,), (1339559800,), (1339559852,), (1339559855,), (1339559858,), (1339559861,), (1339559864,), (1339559866,), (1339559883,), (1339559886,), (1339559889,), (1339559911,), (1339559914,), (1339559918,), (1339559923,), (1339559937,), (1339559940,), (1339560057,), (1339560060,), (1339560086,), (1339560079,), (1339560082,), (1339560085,), (1339560119,), (1339560121,), (1339560123,), (1339560126,), (1339560174,), (1339560184,), (1339560190,), (1339560193,), (1339560195,), (1339560749,), (1339560754,), (1339560761,), (1339560884,), (1339560997,), (1339561049,), (1339561051,), (1339561084,), (1339561086,), (1339561110,), (1339561113,), (1339561115,), (1339561117,), (1339561119,), (1339561121,), (1339561140,), (1339561142,), (1339561144,), (1339561146,), (1339561148,), (1339561149,), (1339561164,), (1339561169,), (1339561173,), (1339561202,), (1339561205,), (1339561207,), (1339561275,), (1339561364,), (1339562006,), (1339562008,), (1339562010,), (1339562015,), (1339562016,), (1339562256,), (1339562291,), (1339562301,), (1339562304,), (1339562347,), (1339562350,), (1339562416,), (1339562426,), (1339562429,), (1339562432,), (1339562435,), (1339562473,), (1339562476,), (1339562480,), (1339562482,), (1339562621,), (1339562609,), (1339562612,), (1339562614,), (1339562616,), (1339562618,), (1339562663,), (1339562666,), (1339562671,), (1339562674,), (1339562713,), (1339562717,), (1339562720,), (1339562724,), (1339562728,), (1339562731,), (1339562748,), (1339562752,), (1339562756,), (1339562759,), (1339562762,), (1339562786,), (1339562825,), (1339562836,), (1339562837,), (1339562881,), (1339562909,), (1339562912,), (1339562944,), (1339562948,), (1339562956,), (1339562959,), (1339562982,), (1339562985,), (1339562987,), (1339562989,), (1339562991,), (1339563021,), (1339563026,), (1339563032,), (1339563035,), (1339563050,), (1339563053,), (1339563054,), (1339563057,), (1339563075,), (1339563078,), (1339563080,), (1339563083,), (1339563086,), (1339563105,), (1339563108,), (1339563110,), (1339563112,), (1339563115,), (1339563143,), (1339563150,), (1339563154,), (1339563158,), (1339563160,), (1339563330,), (1339563318,), (1339563321,), (1339563323,), (1339563373,), (1339563375,), (1339563378,), (1339563381,), (1339563404,), (1339563411,), (1339563437,), (1339563440,), (1339563443,), (1339563448,), (1339563459,), (1339563490,), (1339563495,), (1339563498,), (1339563507,), (1339563521,), (1339563526,), (1339563547,), (1339563551,), (1339563554,), (1339563557,), (1339563590,), (1339563593,), (1339563605,), (1339563617,), (1339563620,), (1339563622,), (1339563640,), (1339563643,), (1339563647,), (1339563741,), (1339563745,), (1339563770,), (1339563774,), (1339563779,), (1339563807,), (1339563813,), (1339563817,), (1339563821,), (1339563840,), (1339563842,), (1339563850,), (1339563880,), (1339563883,), (1339563886,), (1339563889,), (1339564504,), (1339564561,), (1339564565,), (1339564568,), (1339564572,), (1339564586,), (1339564589,), (1339564815,), (1339564789,), (1339564806,), (1339564809,), (1339564812,), (1339564907,), (1339564909,), (1339564981,), (1339565473,), (1339565547,), (1339565624,), (1339565656,), (1339565702,), (1339566166,), (1339566176,), (1339566180,), (1339566183,), (1339566185,), (1339566206,), (1339566208,), (1339566345,), (1339566481,), (1339566494,), (1339566644,), (1339566647,), (1339566651,), (1339566655,), (1339566660,), (1339566683,), (1339566691,), (1339566695,), (1339566700,), (1339566704,), (1339566728,), (1339566733,), (1339566742,), (1339566748,), (1339566753,), (1339566757,), (1339566771,), (1339566774,), (1339566804,), (1339566809,), (1339566814,), (1339566816,), (1339566831,), (1339567468,), (1339567654,), (1339567854,), (1339568080,), (1339568126,), (1339568177,), (1339568180,), (1339568184,), (1339568188,), (1339568222,), (1339568282,), (1339568598,), (1339568606,), (1339568608,), (1339568611,), (1339568765,), (1339568775,), (1339568780,), (1339568784,), (1339568791,), (1339568815,), (1339568820,), (1339568824,), (1339568962,), (1339568857,), (1339568882,), (1339568922,), (1339568949,), (1339569007,), (1339569011,), (1339569032,), (1339569051,), (1339569057,), (1339569060,), (1339569072,), (1339569082,), (1339569086,), (1339569099,), (1339569127,), (1339569131,), (1339569135,), (1339569140,), (1339569163,), (1339569166,), (1339569169,), (1339569173,), (1339569177,), (1339569181,), (1339569210,), (1339569219,), (1339569224,), (1339569228,), (1339569233,), (1339569235,), (1339569250,), (1339569257,), (1339569260,), (1339569294,), (1339569303,), (1339569308,), (1339569315,), (1339569370,), (1339569376,), (1339569383,), (1339569386,), (1339569391,), (1339569413,), (1339569418,), (1339569422,), (1339569424,), (1339569445,), (1339571127,), (1339571266,), (1339571514,), (1339571528,), (1339571531,), (1339571707,), (1339571813,), (1339571965,), (1339571985,), (1339571990,), (1339572018,), (1339572257,), (1339572261,), (1339572266,), (1339572271,), (1339572289,), (1339572293,), (1339572298,), (1339572304,), (1339573026,), (1339573356,), (1339573359,), (1339573401,), (1339573404,), (1339573407,), (1339573410,), (1339573413,), (1339573415,), (1339574201,), (1339574229,), (1339574233,), (1339574237,), (1339574508,), (1339574520,), (1339574637,), (1339574641,), (1339574644,), (1339574648,), (1339574678,), (1339574680,), (1339574683,), (1339574686,), (1339574689,), (1339574692,), (1339574715,), (1339574718,), (1339574721,), (1339574745,), (1339574746,), (1339574749,), (1339574753,), (1339574756,), (1339574759,), (1339574774,), (1339574776,), (1339574778,), (1339574781,), (1339574785,), (1339574812,), (1339574816,), (1339574819,), (1339574823,), (1339574838,), (1339574841,), (1339574844,), (1339574853,), (1339574889,), (1339574892,), (1339574895,), (1339574899,), (1339574917,), (1339574922,), (1339574929,), (1339574936,), (1339574939,), (1339574983,), (1339574971,), (1339574975,), (1339574979,), (1339575271,), (1339575317,), (1339575321,), (1339575347,), (1339575351,), (1339575373,), (1339575377,), (1339575380,), (1339575385,), (1339575388,), (1339575409,), (1339575413,), (1339575417,), (1339575421,), (1339575440,), (1339575444,), (1339575452,), (1339575463,), (1339575472,), (1339575493,), (1339575521,), (1339575529,), (1339575531,), (1339575551,), (1339575554,), (1339575557,), (1339575564,), (1339575587,), (1339575592,), (1339575602,), (1339575609,), (1339575635,), (1339575638,), (1339575640,), (1339575644,), (1339575650,), (1339575673,), (1339575682,), (1339575686,), (1339575705,), (1339575708,), (1339575745,), (1339575748,), (1339575752,), (1339575756,), (1339575758,), (1339575763,), (1339575789,), (1339575793,), (1339575858,), (1339575862,), (1339575866,), (1339575869,), (1339575871,), (1339575852,), (1339575856,), (1339575880,), (1339575884,), (1339575890,), (1339575893,), (1339575910,), (1339575914,), (1339575919,), (1339575927,), (1339575931,), (1339575960,), (1339575964,), (1339576733,), (1339576736,), (1339576739,), (1339576743,), (1339576747,), (1339576979,), (1339576991,), (1339576995,), (1339576999,), (1339577041,), (1339577044,), (1339577183,), (1339577187,), (1339577190,), (1339577228,), (1339577233,), (1339577236,), (1339577239,), (1339577242,), (1339577244,), (1339577260,), (1339577263,), (1339577265,), (1339577286,), (1339577291,), (1339577400,), (1339577404,), (1339577478,), (1339577481,), (1339577483,), (1339577487,), (1339577491,), (1339577494,), (1339577513,), (1339577517,), (1339577521,), (1339577526,), (1339577529,), (1339577532,), (1339577544,), (1339577546,), (1339577549,), (1339577552,), (1339577741,), (1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,), (1339578390,), (1339578465,), (1339578470,), (1339578474,), (1339578502,), (1339578506,), (1339578510,), (1339578530,), (1339578534,), (1339578536,), (1339578804,), (1339578809,), (1339578852,), (1339578857,), (1339578881,), (1339578892,), (1339578938,), (1339578946,), (1339578949,), (1339578952,), (1339578955,), (1339578958,), (1339578989,), (1339578987,), (1339579013,), (1339579016,), (1339579019,), (1339579021,), (1339579023,), (1339579025,), (1339579047,), (1339579057,), (1339579059,), (1339579504,), (1339579507,), (1339579510,), (1339579513,), (1339579516,), (1339579949,), (1339580213,), (1339580489,), (1339580590,), (1339580594,), (1339580665,), (1339580697,), (1339581137,), (1339581140,), (1339581144,), (1339581148,), (1339581151,), (1339581167,), (1339581170,), (1339581173,), (1339581176,), (1339581178,), (1339581204,), (1339581207,), (1339581263,), (1339581276,), (1339581286,), (1339581330,), (1339581333,), (1339581334,), (1339581357,), (1339581359,), (1339581362,), (1339581365,), (1339581368,), (1339581370,), (1339581587,), (1339581592,), (1339581625,), (1339581628,), (1339581649,), (1339581656,), (1339581664,), (1339581669,), (1339581700,), (1339581704,), (1339581707,), (1339581709,), (1339581712,), (1339581774,), (1339581780,), (1339581789,), (1339581799,), (1339581836,), (1339582534,), (1339582272,), (1339582367,), (1339582455,), (1339582493,), (1339582604,), (1339582608,), (1339582611,), (1339582614,), (1339582616,), (1339582618,), (1339582654,), (1339582657,), (1339582659,), (1339582728,), (1339582731,), (1339582734,), (1339582738,), (1339582775,), (1339582778,), (1339582789,), (1339582793,), (1339582799,), (1339582822,), (1339582825,), (1339582827,), (1339582830,), (1339582834,), (1339583516,), (1339583560,), (1339583561,), (1339583564,), (1339583567,), (1339583571,), (1339583876,), (1339583979,), (1339584000,), (1339584002,), (1339584084,), (1339584088,), (1339584092,), (1339584095,), (1339584099,), (1339584414,), (1339584418,), (1339584421,), (1339584426,), (1339584478,), (1339584547,), (1339584816,), (1339584899,), (1339585070,), (1339585075,), (1339585353,), (1339585356,), (1339585598,), (1339585600,), (1339585615,), (1339585619,), (1339585623,), (1339586472,), (1339586807,), (1339586863,), (1339587408,), (1339587411,), (1339587414,), (1339587418,), (1339587420,), (1339587433,), (1339587436,), (1339587439,), (1339587441,), (1339587444,), (1339587447,), (1339587458,), (1339587461,), (1339587463,), (1339587465,), (1339587468,), (1339587480,), (1339587483,), (1339587487,), (1339587595,), (1339587582,), (1339587584,), (1339587588,), (1339587594,), (1339587610,), (1339587613,), (1339587615,), (1339587714,), (1339587877,), (1339588481,), (1339588514,), (1339588565,), (1339588644,), (1339588682,), (1339588686,), (1339588690,), (1339588692,), (1339588696,), (1339588747,), (1339589479,), (1339589573,), (1339589613,), (1339589674,), (1339589760,), (1339589824,), (1339589834,), (1339589941,), (1339589950,), (1339589953,), (1339589967,), (1339589970,), (1339589974,), (1339589978,), (1339590481,), (1339590485,), (1339590487,), (1339590556,), (1339590602,), (1339590667,), (1339590672,), (1339590678,), (1339590685,), (1339590708,), (1339590712,), (1339590716,), (1339590729,), (1339590819,), (1339590866,), (1339590870,), (1339590877,), (1339590896,), (1339590901,), (1339590915,), (1339590918,), (1339590921,), (1339591017,), (1339591020,), (1339591023,), (1339591026,), (1339591035,), (1339591038,), (1339591040,), (1339591066,), (1339591137,), (1339591323,), (1339591301,), (1339591305,), (1339591316,), (1339591319,), (1339591322,), (1339591488,), (1339591586,), (1339591589,), (1339591720,), (1339591724,), (1339591726,), (1339591730,), (1339591733,), (1339591746,), (1339591757,), (1339591760,), (1339591765,), (1339591768,), (1339591771,), (1339591781,), (1339591785,), (1339591841,), (1339591845,), (1339591915,), (1339592002,), (1339592005,), (1339592030,), (1339592039,), (1339592301,), (1339592311,), (1339592313,), (1339592316,), (1339592322,), (1339592406,), (1339592409,), (1339592412,), (1339592414,), (1339592438,), (1339592443,), (1339592446,), (1339592450,), (1339592843,), (1339592846,), (1339592857,), (1339592866,), (1339592986,), (1339593062,), (1339593065,), (1339593068,), (1339593103,), (1339593182,), (1339593215,), (1339593308,), (1339593315,), (1339593318,), (1339593326,), (1339593362,), (1339593372,), (1339593384,), (1339593446,), (1339593496,), (1339593498,), (1339593500,), (1339593502,), (1339593508,), (1339593532,), (1339593535,), (1339593537,), (1339593539,), (1339593543,), (1339593711,), (1339593684,), (1339593709,), (1339593756,), (1339593765,), (1339593777,), (1339593785,), (1339593806,), (1339593814,), (1339593817,), (1339593818,), (1339593819,), (1339593844,), (1339593850,), (1339593909,), (1339593912,), (1339594652,), (1339594698,), (1339594712,), (1339594747,), (1339594754,), (1339594856,), (1339594919,), (1339594950,), (1339594995,), (1339595041,), (1339595061,), (1339595376,), (1339595398,), (1339595402,), (1339595406,), (1339595518,), (1339595522,), (1339595526,), (1339595529,), (1339595533,), (1339595569,), (1339595575,), (1339595579,), (1339595583,), (1339595587,), (1339595591,), (1339595615,), (1339595618,), (1339595622,), (1339595626,), (1339595647,), (1339595651,), (1339595655,), (1339595659,), (1339595662,), (1339595663,), (1339595678,), (1339595688,), (1339595694,), (1339595700,), (1339595714,), (1339595717,), (1339595720,), (1339595722,), (1339595726,), (1339595811,), (1339595813,), (1339595816,), (1339595832,), (1339595837,), (1339595839,), (1339595841,), (1339595845,), (1339595874,), (1339595865,), (1339595871,), (1339596108,), (1339596118,), (1339596134,), (1339596226,), (1339596230,), (1339596234,), (1339596311,), (1339596487,), (1339596497,), (1339596500,), (1339596515,), (1339596518,), (1339596522,), (1339596526,), (1339596544,), (1339596548,), (1339596551,), (1339596554,), (1339596564,), (1339596633,), (1339596636,), (1339596640,), (1339596645,), (1339596677,), (1339596743,), (1339596837,), (1339596924,), (1339596959,), (1339596996,), (1339597000,), (1339597003,), (1339597012,), (1339597018,), (1339597203,), (1339597208,), (1339597216,), (1339597229,), (1339597284,), (1339597328,), (1339597334,), (1339597402,), (1339601651,), (1339601351,), (1339601645,), (1339601683,), (1339601688,), (1339602983,), (1339603306,), (1339603310,), (1339603375,), (1339603385,), (1339603404,), (1339603435,), (1339603453,), (1339603457,), (1339603460,), (1339603481,), (1339603489,), (1339603889,), (1339603886,), (1339603940,), (1339603966,), (1339603978,), (1339604103,), (1339604161,), (1339604164,), (1339605283,), (1339605654,), (1339606175,), (1339606358,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 17, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20819025]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] map_info['map_portfolio_photo'] : {20819025: [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351]} final : True mtd_id 4302 list_pids : [1339603889, 1339603489, 1339603481, 1339603460, 1339603457, 1339603453, 1339603435, 1339603404, 1339603385, 1339603375, 1339603310, 1339603306, 1339602983, 1339601688, 1339601683, 1339601645, 1339601351] Looping around the photos to save general results len do output : 1 /20819025Didn'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, '2614690') ('4302', '20819025', '1339603889', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603489', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603481', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603460', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603457', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603453', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603435', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603404', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603385', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603375', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603310', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339603306', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339602983', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601688', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601683', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601645', None, None, None, None, None, '2614690') ('4302', None, None, None, None, None, None, None, '2614690') ('4302', '20819025', '1339601351', None, None, None, None, None, '2614690') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '20819025', 'None', None, None, None, None, '2614690'), ('4302', '20819025', '1339603889', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603489', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603481', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603460', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603457', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603453', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603435', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603404', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603385', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603375', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603310', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339603306', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339602983', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601688', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601683', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601645', None, None, None, None, None, '2614690'), ('4302', '20819025', '1339601351', None, None, None, None, None, '2614690')] time used for this insertion : 0.2360537052154541 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.714324712753296 time spend to save output : 0.2363584041595459 total time spend for step 5 : 3.950683116912842 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 (2614690) 2.40user 2.74system 0:12.26elapsed 41%CPU (0avgtext+0avgdata 161084maxresident)k 288inputs+14128outputs (14major+70843minor)pagefaults 0swaps