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 : 3262176 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 (2572554) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2572554) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20316832 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2572554'] with mtr_portfolio_ids : ['20316832'] and first list_photo_ids : [] new path : /proc/3262176/ Name: python3 Umask: 0002 State: R (running) Tgid: 3262176 Ngid: 0 Pid: 3262176 PPid: 3262175 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3262176 NSpid: 3262176 NSpgid: 3261417 NSsid: 3261417 VmPeak: 1106660 kB VmSize: 1106660 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97292 kB VmRSS: 97292 kB RssAnon: 59736 kB RssFile: 37556 kB RssShmem: 0 kB VmData: 865412 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 40 nonvoluntary_ctxt_switches: 127 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3262176', 'Ngid': '0', 'Pid': '3262176', 'PPid': '3262175', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3262176', 'NSpid': '3262176', 'NSpgid': '3261417', 'NSsid': '3261417', 'VmPeak': '1106660 kB', 'VmSize': '1106660 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97292 kB', 'VmRSS': '97292 kB', 'RssAnon': '59736 kB', 'RssFile': '37556 kB', 'RssShmem': '0 kB', 'VmData': '865412 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '40', 'nonvoluntary_ctxt_switches': '127'} ('datou_batch_current', '3262176', '1106660', '0', '1106660', '865412', '97292', b'', 'marlene', '2572554') 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 (20316832) 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 (2572554 ) ) 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 (20316832) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335244375, 'portfolio_id': 20316832}, {'photo_id': 1335244369, 'portfolio_id': 20316832}, {'photo_id': 1335244363, 'portfolio_id': 20316832}, {'photo_id': 1335244357, 'portfolio_id': 20316832}, {'photo_id': 1335244341, 'portfolio_id': 20316832}, {'photo_id': 1335244340, 'portfolio_id': 20316832}, {'photo_id': 1335244338, 'portfolio_id': 20316832}, {'photo_id': 1335244336, 'portfolio_id': 20316832}, {'photo_id': 1335244332, 'portfolio_id': 20316832}, {'photo_id': 1335244329, 'portfolio_id': 20316832}, {'photo_id': 1335244312, 'portfolio_id': 20316832}, {'photo_id': 1335244305, 'portfolio_id': 20316832}, {'photo_id': 1335244300, 'portfolio_id': 20316832}, {'photo_id': 1335244296, 'portfolio_id': 20316832}, {'photo_id': 1335244291, 'portfolio_id': 20316832}, {'photo_id': 1335244288, 'portfolio_id': 20316832}, {'photo_id': 1335244274, 'portfolio_id': 20316832}, {'photo_id': 1335244270, 'portfolio_id': 20316832}, {'photo_id': 1335244265, 'portfolio_id': 20316832}, {'photo_id': 1335244260, 'portfolio_id': 20316832}, {'photo_id': 1335244257, 'portfolio_id': 20316832}, {'photo_id': 1335244253, 'portfolio_id': 20316832}, {'photo_id': 1335244242, 'portfolio_id': 20316832}, {'photo_id': 1335244237, 'portfolio_id': 20316832}, {'photo_id': 1335244232, 'portfolio_id': 20316832}, {'photo_id': 1335244229, 'portfolio_id': 20316832}] map_portfolio_id_photo_id: {20316832: [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229]} ##### 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.3139374256134033 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Feb 10 17:08:27 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 (20316832) 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 : 20316832 get user id for portfolio 20316832 get sub ptf for main ptf 20316832, type 3726 and hashtags ['papier', 'flou', 'kraft', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'autre_refus', 'metal', 'plastique', 'Carton_brun', 'mal_croppe', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20316832 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus','metal','plastique','Carton_brun','mal_croppe','Carton_gris')) 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`=20316832 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus','metal','plastique','Carton_brun','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20316832, 'sub_port_id': 20317110, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005304, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'flou': {'main_port_id': 20316832, 'sub_port_id': 20317111, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005305, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'metal': {'main_port_id': 20316832, 'sub_port_id': 20317112, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005306, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'kraft': {'main_port_id': 20316832, 'sub_port_id': 20317113, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005307, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'Carton_brun': {'main_port_id': 20316832, 'sub_port_id': 20317114, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005308, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'Carton_gris': {'main_port_id': 20316832, 'sub_port_id': 20317115, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005309, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'cartonnette': {'main_port_id': 20316832, 'sub_port_id': 20317116, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005310, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'autre_refus': {'main_port_id': 20316832, 'sub_port_id': 20317117, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005311, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'mal_croppe': {'main_port_id': 20316832, 'sub_port_id': 20317118, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005312, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'environnement': {'main_port_id': 20316832, 'sub_port_id': 20317119, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005313, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'papier': {'main_port_id': 20316832, 'sub_port_id': 20317120, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005314, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}, 'Teint_Dans_La_Masse': {'main_port_id': 20316832, 'sub_port_id': 20317121, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005315, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317110 , 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=20316832 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 (20317110) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317111 , 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=20316832 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 (20317111) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317112 , 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=20316832 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 (20317112) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317113 , 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=20316832 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 (20317113) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317114 , 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=20316832 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 (20317114) result : ((1335495426,), (1335495428,), (1336194741,), (1336194742,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317115 , 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=20316832 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 (20317115) result : ((1335495404,), (1335495405,), (1335495406,), (1335495407,), (1336194737,), (1336194738,), (1336194739,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317116 , 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=20316832 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 (20317116) result : ((1335495411,), (1336194740,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317117 , 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=20316832 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 (20317117) result : ((1335495402,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317118 , 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=20316832 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 (20317118) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317119 , 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=20316832 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 (20317119) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317120 , 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=20316832 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 (20317120) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20317121 , 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=20316832 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 (20317121) result : ((1335495391,), (1335495392,), (1335495393,), (1335495395,), (1335495396,), (1335495397,), (1335495398,), (1335495399,), (1335495400,), (1336194731,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20316832) result : ((1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,)) 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 (1335244300) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20316832 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus','metal','plastique','Carton_brun','mal_croppe','Carton_gris')) 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`=20316832 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','kraft','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus','metal','plastique','Carton_brun','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20316832, 'sub_port_id': 20317122, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005316, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'flou': {'main_port_id': 20316832, 'sub_port_id': 20317123, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005317, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'metal': {'main_port_id': 20316832, 'sub_port_id': 20317124, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005318, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'kraft': {'main_port_id': 20316832, 'sub_port_id': 20317125, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005319, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'Carton_brun': {'main_port_id': 20316832, 'sub_port_id': 20317126, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005320, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'Carton_gris': {'main_port_id': 20316832, 'sub_port_id': 20317127, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005321, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'cartonnette': {'main_port_id': 20316832, 'sub_port_id': 20317128, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005322, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'autre_refus': {'main_port_id': 20316832, 'sub_port_id': 20317129, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005323, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'mal_croppe': {'main_port_id': 20316832, 'sub_port_id': 20317130, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005324, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'environnement': {'main_port_id': 20316832, 'sub_port_id': 20317131, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005325, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'papier': {'main_port_id': 20316832, 'sub_port_id': 20317132, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005326, 'last_updated_at': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 3, 39, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20316832, 'sub_port_id': 20317133, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13005327, 'last_updated_at': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_desc': datetime.datetime(2025, 2, 9, 14, 58, 21), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 3, 39, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20317133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20317121 lien utilise dans velours : https://www.fotonower.com/velours/20317122,20317123,20317124,20317125,20317126,20317127,20317128,20317129,20317130,20317131,20317132,20317133?tags=plastique,flou,metal,kraft,Carton_brun,Carton_gris,cartonnette,autre_refus,mal_croppe,environnement,papier,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20316832]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] map_info['map_portfolio_photo'] : {20316832: [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229]} final : False mtd_id 4302 list_pids : [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] Looping around the photos to save general results len do output : 1 /20316832. 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, '2572554') ('4302', '20316832', '1335244375', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244369', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244363', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244357', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244341', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244340', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244338', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244336', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244332', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244329', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244312', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244305', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244300', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244296', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244291', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244288', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244274', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244270', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244265', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244260', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244257', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244253', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244242', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244237', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244232', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244229', None, None, None, None, None, '2572554') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '20316832', "{'plastique': 20317110, 'flou': 20317111, 'metal': 20317112, 'kraft': 20317113, 'Carton_brun': 20317114, 'Carton_gris': 20317115, 'cartonnette': 20317116, 'autre_refus': 20317117, 'mal_croppe': 20317118, 'environnement': 20317119, 'papier': 20317120, 'Teint_Dans_La_Masse': 20317121}", None, None, None, None, '2572554'), ('4302', '20316832', '1335244375', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244369', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244363', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244357', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244341', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244340', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244338', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244336', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244332', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244329', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244312', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244305', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244300', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244296', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244291', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244288', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244274', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244270', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244265', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244260', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244257', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244253', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244242', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244237', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244232', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244229', None, None, None, None, None, '2572554')] time used for this insertion : 0.016330957412719727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7937009334564209 time spend to save output : 0.016707897186279297 total time spend for step 1 : 0.8104088306427002 step2:final Mon Feb 10 17:08:28 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 (20316832) 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 20316832 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335244375,1335244369,1335244363,1335244357,1335244341,1335244340,1335244338,1335244336,1335244332,1335244329,1335244312,1335244305,1335244300,1335244296,1335244291,1335244288,1335244274,1335244270,1335244265,1335244260,1335244257,1335244253,1335244242,1335244237,1335244232,1335244229); 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([20316832]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} new output for save of step final : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] map_info['map_portfolio_photo'] : {20316832: [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229]} final : False mtd_id 4302 list_pids : [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] Looping around the photos to save general results len do output : 26 /1335244375.Didn't retrieve data . /1335244369.Didn't retrieve data . /1335244363.Didn't retrieve data . /1335244357.Didn't retrieve data . /1335244341.Didn't retrieve data . /1335244340.Didn't retrieve data . /1335244338.Didn't retrieve data . /1335244336.Didn't retrieve data . /1335244332.Didn't retrieve data . /1335244329.Didn't retrieve data . /1335244312.Didn't retrieve data . /1335244305.Didn't retrieve data . /1335244300.Didn't retrieve data . /1335244296.Didn't retrieve data . /1335244291.Didn't retrieve data . /1335244288.Didn't retrieve data . /1335244274.Didn't retrieve data . /1335244270.Didn't retrieve data . /1335244265.Didn't retrieve data . /1335244260.Didn't retrieve data . /1335244257.Didn't retrieve data . /1335244253.Didn't retrieve data . /1335244242.Didn't retrieve data . /1335244237.Didn't retrieve data . /1335244232.Didn't retrieve data . /1335244229.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, '2572554') ('4302', '20316832', '1335244375', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244369', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244363', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244357', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244341', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244340', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244338', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244336', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244332', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244329', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244312', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244305', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244300', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244296', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244291', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244288', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244274', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244270', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244265', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244260', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244257', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244253', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244242', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244237', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244232', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244229', None, None, None, None, None, '2572554') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 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', '20316832', '1335244375', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244369', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244363', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244357', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244341', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244340', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244338', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244336', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244332', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244329', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244312', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244305', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244300', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244296', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244291', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244288', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244274', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244270', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244265', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244260', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244257', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244253', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244242', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244237', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244232', '0.029145393000906693', None, None, None, None, '2572554'), ('4302', '20316832', '1335244229', '0.029145393000906693', None, None, None, None, '2572554')] time used for this insertion : 0.016742467880249023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07134604454040527 time spend to save output : 0.0180356502532959 total time spend for step 2 : 0.08938169479370117 step3:velours_tree Mon Feb 10 17:08:28 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 : {20316832: [{'plastique': 20317110, 'flou': 20317111, 'metal': 20317112, 'kraft': 20317113, 'Carton_brun': 20317114, 'Carton_gris': 20317115, 'cartonnette': 20317116, 'autre_refus': 20317117, 'mal_croppe': 20317118, 'environnement': 20317119, 'papier': 20317120, 'Teint_Dans_La_Masse': 20317121}]} input_args_next_step : {20316832: ()} output_args : {20316832: [{'plastique': 20317110, 'flou': 20317111, 'metal': 20317112, 'kraft': 20317113, 'Carton_brun': 20317114, 'Carton_gris': 20317115, 'cartonnette': 20317116, 'autre_refus': 20317117, 'mal_croppe': 20317118, 'environnement': 20317119, 'papier': 20317120, 'Teint_Dans_La_Masse': 20317121}]} args : 20316832 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 : ({'plastique': 20317110, 'flou': 20317111, 'metal': 20317112, 'kraft': 20317113, 'Carton_brun': 20317114, 'Carton_gris': 20317115, 'cartonnette': 20317116, 'autre_refus': 20317117, 'mal_croppe': 20317118, 'environnement': 20317119, 'papier': 20317120, 'Teint_Dans_La_Masse': 20317121},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20316832) 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([20316832]) 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.30410003662109375 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.3041493892669678 step4:send_mail_cod Mon Feb 10 17:08:28 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 : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} input_args_next_step : {1335244375: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244375 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244369 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244363 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244357 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244341 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244340 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244338 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244336 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244332 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244329 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244312 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244305 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244300 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244296 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244291 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244288 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244274 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244270 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244265 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244260 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244257 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244253 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244242 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244237 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244232 depend.output_id : 0 input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ()} output_args : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',)} args : 1335244229 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 : {20316832: [{'plastique': 20317110, 'flou': 20317111, 'metal': 20317112, 'kraft': 20317113, 'Carton_brun': 20317114, 'Carton_gris': 20317115, 'cartonnette': 20317116, 'autre_refus': 20317117, 'mal_croppe': 20317118, 'environnement': 20317119, 'papier': 20317120, 'Teint_Dans_La_Masse': 20317121}]} input_args_next_step : {1335244375: ('0.029145393000906693',), 1335244369: ('0.029145393000906693',), 1335244363: ('0.029145393000906693',), 1335244357: ('0.029145393000906693',), 1335244341: ('0.029145393000906693',), 1335244340: ('0.029145393000906693',), 1335244338: ('0.029145393000906693',), 1335244336: ('0.029145393000906693',), 1335244332: ('0.029145393000906693',), 1335244329: ('0.029145393000906693',), 1335244312: ('0.029145393000906693',), 1335244305: ('0.029145393000906693',), 1335244300: ('0.029145393000906693',), 1335244296: ('0.029145393000906693',), 1335244291: ('0.029145393000906693',), 1335244288: ('0.029145393000906693',), 1335244274: ('0.029145393000906693',), 1335244270: ('0.029145393000906693',), 1335244265: ('0.029145393000906693',), 1335244260: ('0.029145393000906693',), 1335244257: ('0.029145393000906693',), 1335244253: ('0.029145393000906693',), 1335244242: ('0.029145393000906693',), 1335244237: ('0.029145393000906693',), 1335244232: ('0.029145393000906693',), 1335244229: ('0.029145393000906693',), 20316832: ()} output_args : {20316832: [{'plastique': 20317110, 'flou': 20317111, 'metal': 20317112, 'kraft': 20317113, 'Carton_brun': 20317114, 'Carton_gris': 20317115, 'cartonnette': 20317116, 'autre_refus': 20317117, 'mal_croppe': 20317118, 'environnement': 20317119, 'papier': 20317120, 'Teint_Dans_La_Masse': 20317121}]} args : 20316832 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 :27, first value : ('0.029145393000906693',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20316832) 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 (1335244375,1335244369,1335244363,1335244357,1335244341,1335244340,1335244338,1335244336,1335244332,1335244329,1335244312,1335244305,1335244300,1335244296,1335244291,1335244288,1335244274,1335244270,1335244265,1335244260,1335244257,1335244253,1335244242,1335244237,1335244232,1335244229) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335244229 begin to download photo : 1335244260 begin to download photo : 1335244296 begin to download photo : 1335244336 begin to download photo : 1335244369 download finish for photo 1335244296 begin to download photo : 1335244300 download finish for photo 1335244369 begin to download photo : 1335244375 download finish for photo 1335244229 begin to download photo : 1335244232 download finish for photo 1335244260 begin to download photo : 1335244265 download finish for photo 1335244336 begin to download photo : 1335244338 download finish for photo 1335244300 begin to download photo : 1335244305 download finish for photo 1335244375 download finish for photo 1335244338 begin to download photo : 1335244340 download finish for photo 1335244232 begin to download photo : 1335244237 download finish for photo 1335244265 begin to download photo : 1335244270 download finish for photo 1335244305 begin to download photo : 1335244312 download finish for photo 1335244237 begin to download photo : 1335244242 download finish for photo 1335244340 begin to download photo : 1335244341 download finish for photo 1335244270 begin to download photo : 1335244274 download finish for photo 1335244312 begin to download photo : 1335244329 download finish for photo 1335244242 begin to download photo : 1335244253 download finish for photo 1335244341 begin to download photo : 1335244357 download finish for photo 1335244274 begin to download photo : 1335244288 download finish for photo 1335244357 begin to download photo : 1335244363 download finish for photo 1335244329 begin to download photo : 1335244332 download finish for photo 1335244288 begin to download photo : 1335244291 download finish for photo 1335244363 download finish for photo 1335244332 download finish for photo 1335244291 download finish for photo 1335244253 begin to download photo : 1335244257 download finish for photo 1335244257 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette203171101739203709/ imagette203171111739203709/ imagette203171121739203709/ imagette203171131739203709/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P20316832_10-02-2025_17_08_29.pdf 20317110 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=20317110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203171101739203709 20317111 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=20317111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203171111739203709 20317112 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=20317112 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203171121739203709 20317113 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=20317113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203171131739203709 20317116 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=20317116 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335495411: '1738925473_2124088_1335244265_a322cd0401d927adecd3ecaf6f249bdb_rle_crop_3659668936_0.png', 1336194740: '1739109393_2976297_1335244257_924a7836b84c9db3ca8f217b4665ef3d_rle_crop_3666078462_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c56ee4e29f780363979a838156c88c8a_92418683.png change filename to text .imagette203171161739203709/ imagette203171161739203709/1739109393_2976297_1335244257_924a7836b84c9db3ca8f217b4665ef3d_rle_crop_3666078462_0.png.png imagette203171161739203709/1738925473_2124088_1335244265_a322cd0401d927adecd3ecaf6f249bdb_rle_crop_3659668936_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/bf9bb175adcaf7da0fa870e040ab24ef_99249213.png imagette203171161739203709 20317117 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=20317117 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335495402: '1738925473_2124088_1335244375_f1adee0dd74be2d18ffeafc485701ffc_rle_crop_3659668181_0.png'} change filename to text .imagette203171171739203710/ imagette203171171739203710/1738925473_2124088_1335244375_f1adee0dd74be2d18ffeafc485701ffc_rle_crop_3659668181_0.png.png imagette203171181739203710/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/100819a9ab72cbed5d89b3324fe79d94_62965817.png imagette203171171739203710 20317118 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=20317118 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203171181739203710 20317114 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=20317114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335495426: '1738925473_2124088_1335244291_c59dbcf486a324416e35ebf650a54c68_rle_crop_3659668856_0.png', 1335495428: '1738925473_2124088_1335244291_c59dbcf486a324416e35ebf650a54c68_rle_crop_3659668858_0.png', 1336194741: '1739109393_2976297_1335244242_f052a2aa7835745b6de13cc10df0384f_rle_crop_3666078521_0.png', 1336194742: '1739109393_2976297_1335244237_c9d56f52997838c442fc29d65641951d_rle_crop_3666078568_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d7428069b43174d597d2ec616d403aef_56030622.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/3a2f87cbd2dfd20fd1a763321532c7ce_80208515.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/06d16271b24ddc40ca10ab433f14d4aa_96959168.png change filename to text .imagette203171141739203710/ imagette203171141739203710/1739109393_2976297_1335244237_c9d56f52997838c442fc29d65641951d_rle_crop_3666078568_0.png.png imagette203171141739203710/1738925473_2124088_1335244291_c59dbcf486a324416e35ebf650a54c68_rle_crop_3659668858_0.png.png imagette203171141739203710/1738925473_2124088_1335244291_c59dbcf486a324416e35ebf650a54c68_rle_crop_3659668856_0.png.png imagette203171141739203710/1739109393_2976297_1335244242_f052a2aa7835745b6de13cc10df0384f_rle_crop_3666078521_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/19d06f9d9356c833f06839836368e08a_14469219.png imagette203171141739203710 20317115 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=20317115 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335495404: '1738925473_2124088_1335244363_b0052ee21e307d88071b6c751103f6dd_rle_crop_3659668229_0.png', 1335495405: '1738925473_2124088_1335244332_6350ba5ecc223dee49479aa8e0986892_rle_crop_3659668699_0.png', 1335495406: '1738925473_2124088_1335244332_6350ba5ecc223dee49479aa8e0986892_rle_crop_3659668708_0.png', 1335495407: '1738925473_2124088_1335244329_68ba127a0d4f6e465d568c36ad47eb5e_rle_crop_3659668744_0.png', 1336194737: '1739109393_2976297_1335244242_f052a2aa7835745b6de13cc10df0384f_rle_crop_3666078515_0.png', 1336194738: '1739109393_2976297_1335244237_c9d56f52997838c442fc29d65641951d_rle_crop_3666078562_0.png', 1336194739: '1739109393_2976297_1335244237_c9d56f52997838c442fc29d65641951d_rle_crop_3666078564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/e0e638a96374a98dff40b08c3fd0b583_76162216.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f50e58a55c99224bf237cb48b9545611_16171040.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/3f39cd981f00a81091933e88042e196c_67744939.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7bd65c5b4a7d1a6646c0f1ca638f6f3b_10068397.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/fe71ce2d33394cbc981c30b426c28373_75938218.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/a9c0ff45e08c1a36995e3af4b5967363_572871.png change filename to text .imagette203171151739203710/ imagette203171151739203710/1739109393_2976297_1335244237_c9d56f52997838c442fc29d65641951d_rle_crop_3666078564_0.png.png imagette203171151739203710/1739109393_2976297_1335244237_c9d56f52997838c442fc29d65641951d_rle_crop_3666078562_0.png.png imagette203171151739203710/1738925473_2124088_1335244329_68ba127a0d4f6e465d568c36ad47eb5e_rle_crop_3659668744_0.png.png imagette203171151739203710/1739109393_2976297_1335244242_f052a2aa7835745b6de13cc10df0384f_rle_crop_3666078515_0.png.png imagette203171151739203710/1738925473_2124088_1335244332_6350ba5ecc223dee49479aa8e0986892_rle_crop_3659668708_0.png.png imagette203171151739203710/1738925473_2124088_1335244332_6350ba5ecc223dee49479aa8e0986892_rle_crop_3659668699_0.png.png imagette203171151739203710/1738925473_2124088_1335244363_b0052ee21e307d88071b6c751103f6dd_rle_crop_3659668229_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/18949df352fddd9ec875fd664de3bdce_82779891.png imagette203171151739203710 20317121 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=20317121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335495391: '1738925473_2124088_1335244363_b0052ee21e307d88071b6c751103f6dd_rle_crop_3659668234_0.png', 1335495392: '1738925473_2124088_1335244357_177209f756e85799f90e3ee8a236644d_rle_crop_3659668294_0.png', 1335495393: '1738925473_2124088_1335244357_177209f756e85799f90e3ee8a236644d_rle_crop_3659668297_0.png', 1335495395: '1738925473_2124088_1335244341_66b6e00250d698e7636560a3767573f5_rle_crop_3659668330_0.png', 1335495396: '1738925473_2124088_1335244341_66b6e00250d698e7636560a3767573f5_rle_crop_3659668337_0.png', 1335495397: '1738925473_2124088_1335244340_2dd618feb58cd9d766b42855289bdc75_rle_crop_3659668377_0.png', 1335495398: '1738925473_2124088_1335244338_882e7ee53da6bb3113510fa1550d193a_rle_crop_3659668617_0.png', 1335495399: '1738925473_2124088_1335244274_65a99b90d7de868d7cd0f75e34a36bbc_rle_crop_3659668913_0.png', 1335495400: '1738925473_2124088_1335244270_59c5c434cd2e1a3c27d1a67fe046e03e_rle_crop_3659668927_0.png', 1336194731: '1739109393_2976297_1335244232_b0084a2ea1543b0d1dbdac7cd9af058d_rle_crop_3666078595_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/48af916b2ad22abb850d6ac2e2e09c33_69353073.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bad4d5ef2a92bed7ffaa7cf5a355037d_45913479.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/b77bde9a59071b8e4626a7857ff97f09_66329784.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d917d70e27455ac3eb79a8a6a51c8d5a_98985492.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7fc8aecaba7275ff3d504cd7a1c1aaf7_26018180.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ca0eb03c323a94e03848f8c534303f80_48779063.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/28e165b61b2d2aab0296ef58a46248ce_50365620.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f395b2634e381b6902dd5d33288644db_81377866.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/70ef998377993c8cb4a45bbcb2728c70_35290890.png change filename to text .imagette203171211739203711/ imagette203171211739203711/1738925473_2124088_1335244274_65a99b90d7de868d7cd0f75e34a36bbc_rle_crop_3659668913_0.png.png imagette203171211739203711/1738925473_2124088_1335244357_177209f756e85799f90e3ee8a236644d_rle_crop_3659668294_0.png.png imagette203171211739203711/1738925473_2124088_1335244341_66b6e00250d698e7636560a3767573f5_rle_crop_3659668337_0.png.png imagette203171211739203711/1738925473_2124088_1335244341_66b6e00250d698e7636560a3767573f5_rle_crop_3659668330_0.png.png imagette203171211739203711/1738925473_2124088_1335244357_177209f756e85799f90e3ee8a236644d_rle_crop_3659668297_0.png.png imagette203171211739203711/1738925473_2124088_1335244363_b0052ee21e307d88071b6c751103f6dd_rle_crop_3659668234_0.png.png imagette203171211739203711/1738925473_2124088_1335244338_882e7ee53da6bb3113510fa1550d193a_rle_crop_3659668617_0.png.png imagette203171211739203711/1739109393_2976297_1335244232_b0084a2ea1543b0d1dbdac7cd9af058d_rle_crop_3666078595_0.png.png imagette203171211739203711/1738925473_2124088_1335244270_59c5c434cd2e1a3c27d1a67fe046e03e_rle_crop_3659668927_0.png.png imagette203171211739203711/1738925473_2124088_1335244340_2dd618feb58cd9d766b42855289bdc75_rle_crop_3659668377_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/9/73113e0cf50337f969ff51577a394f2e_52697260.png imagette203171211739203711 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20316832 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20317122,20317123,20317124,20317125,20317126,20317127,20317128,20317129,20317130,20317131,20317132,20317133?tags=plastique,flou,metal,kraft,Carton_brun,Carton_gris,cartonnette,autre_refus,mal_croppe,environnement,papier,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1335244375] : ('0.029145393000906693',) no score found for photo 1335244375 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244369] : ('0.029145393000906693',) no score found for photo 1335244369 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244363] : ('0.029145393000906693',) no score found for photo 1335244363 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244357] : ('0.029145393000906693',) no score found for photo 1335244357 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244341] : ('0.029145393000906693',) no score found for photo 1335244341 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244340] : ('0.029145393000906693',) no score found for photo 1335244340 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244338] : ('0.029145393000906693',) no score found for photo 1335244338 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244336] : ('0.029145393000906693',) no score found for photo 1335244336 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244332] : ('0.029145393000906693',) no score found for photo 1335244332 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244329] : ('0.029145393000906693',) no score found for photo 1335244329 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244312] : ('0.029145393000906693',) no score found for photo 1335244312 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244305] : ('0.029145393000906693',) no score found for photo 1335244305 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244300] : ('0.029145393000906693',) no score found for photo 1335244300 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244296] : ('0.029145393000906693',) no score found for photo 1335244296 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244291] : ('0.029145393000906693',) no score found for photo 1335244291 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244288] : ('0.029145393000906693',) no score found for photo 1335244288 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244274] : ('0.029145393000906693',) no score found for photo 1335244274 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244270] : ('0.029145393000906693',) no score found for photo 1335244270 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244265] : ('0.029145393000906693',) no score found for photo 1335244265 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244260] : ('0.029145393000906693',) no score found for photo 1335244260 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244257] : ('0.029145393000906693',) no score found for photo 1335244257 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244253] : ('0.029145393000906693',) no score found for photo 1335244253 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244242] : ('0.029145393000906693',) no score found for photo 1335244242 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244237] : ('0.029145393000906693',) no score found for photo 1335244237 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244232] : ('0.029145393000906693',) no score found for photo 1335244232 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com args[1335244229] : ('0.029145393000906693',) no score found for photo 1335244229 apple ('0.029145393000906693',) We are sending mail with results at report@fotonower.com refus_total : 0.029145393000906693 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=20316832 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_P20316832_10-02-2025_17_08_29.pdf results_Auto_P20316832_10-02-2025_17_08_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316832_10-02-2025_17_08_29.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','20316832','results_Auto_P20316832_10-02-2025_17_08_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316832_10-02-2025_17_08_29.pdf','pdf','','0.27','0.029145393000906693') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20316832]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] map_info['map_portfolio_photo'] : {20316832: [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229]} final : False mtd_id 4302 list_pids : [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] 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, '2572554') ('4302', '20316832', '1335244375', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244369', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244363', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244357', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244341', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244340', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244338', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244336', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244332', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244329', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244312', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244305', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244300', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244296', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244291', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244288', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244274', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244270', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244265', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244260', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244257', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244253', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244242', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244237', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244232', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244229', None, None, None, None, None, '2572554') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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', '20316832', '1335244375', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244369', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244363', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244357', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244341', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244340', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244338', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244336', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244332', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244329', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244312', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244305', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244300', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244296', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244291', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244288', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244274', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244270', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244265', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244260', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244257', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244253', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244242', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244237', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244232', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244229', None, None, None, None, None, '2572554')] time used for this insertion : 0.6989045143127441 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.2539732456207275 time spend to save output : 0.699347734451294 total time spend for step 4 : 6.9533209800720215 step5:split_time_score Mon Feb 10 17:08:35 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 : ['20316832'] 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 : [('20316832',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20316832) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335244369: {'path': 'temp/1739203708_3262176_1335244369_5a4b768a79f16553390d189179847542.jpg', 'extension': 'jpg'}, 1335244375: {'path': 'temp/1739203708_3262176_1335244375_f1adee0dd74be2d18ffeafc485701ffc.jpg', 'extension': 'jpg'}, 1335244336: {'path': 'temp/1739203708_3262176_1335244336_4eec6712465d1f7230bbc472e96ac528.jpg', 'extension': 'jpg'}, 1335244338: {'path': 'temp/1739203708_3262176_1335244338_882e7ee53da6bb3113510fa1550d193a.jpg', 'extension': 'jpg'}, 1335244340: {'path': 'temp/1739203708_3262176_1335244340_2dd618feb58cd9d766b42855289bdc75.jpg', 'extension': 'jpg'}, 1335244341: {'path': 'temp/1739203708_3262176_1335244341_66b6e00250d698e7636560a3767573f5.jpg', 'extension': 'jpg'}, 1335244357: {'path': 'temp/1739203708_3262176_1335244357_177209f756e85799f90e3ee8a236644d.jpg', 'extension': 'jpg'}, 1335244363: {'path': 'temp/1739203708_3262176_1335244363_b0052ee21e307d88071b6c751103f6dd.jpg', 'extension': 'jpg'}, 1335244296: {'path': 'temp/1739203708_3262176_1335244296_b4c12ae35ed0cbb8ce1e3f46d2a36feb.jpg', 'extension': 'jpg'}, 1335244300: {'path': 'temp/1739203708_3262176_1335244300_9c3e9f3c0a483fcf2492882e3b36980a.jpg', 'extension': 'jpg'}, 1335244305: {'path': 'temp/1739203708_3262176_1335244305_79bc107415ef8aafe20628c280a58066.jpg', 'extension': 'jpg'}, 1335244312: {'path': 'temp/1739203708_3262176_1335244312_16174405dcf697cc8859dc26226b6cf0.jpg', 'extension': 'jpg'}, 1335244329: {'path': 'temp/1739203708_3262176_1335244329_68ba127a0d4f6e465d568c36ad47eb5e.jpg', 'extension': 'jpg'}, 1335244332: {'path': 'temp/1739203708_3262176_1335244332_6350ba5ecc223dee49479aa8e0986892.jpg', 'extension': 'jpg'}, 1335244260: {'path': 'temp/1739203708_3262176_1335244260_7b6adf6e17cfa2b2d721d909d4deb6de.jpg', 'extension': 'jpg'}, 1335244265: {'path': 'temp/1739203708_3262176_1335244265_a322cd0401d927adecd3ecaf6f249bdb.jpg', 'extension': 'jpg'}, 1335244270: {'path': 'temp/1739203708_3262176_1335244270_59c5c434cd2e1a3c27d1a67fe046e03e.jpg', 'extension': 'jpg'}, 1335244274: {'path': 'temp/1739203708_3262176_1335244274_65a99b90d7de868d7cd0f75e34a36bbc.jpg', 'extension': 'jpg'}, 1335244288: {'path': 'temp/1739203708_3262176_1335244288_acf859f7747365179257ca742056c8c0.jpg', 'extension': 'jpg'}, 1335244291: {'path': 'temp/1739203708_3262176_1335244291_c59dbcf486a324416e35ebf650a54c68.jpg', 'extension': 'jpg'}, 1335244229: {'path': 'temp/1739203708_3262176_1335244229_9d8611bf8ef5b957b576b99875637f35.jpg', 'extension': 'jpg'}, 1335244232: {'path': 'temp/1739203708_3262176_1335244232_b0084a2ea1543b0d1dbdac7cd9af058d.jpg', 'extension': 'jpg'}, 1335244237: {'path': 'temp/1739203708_3262176_1335244237_c9d56f52997838c442fc29d65641951d.jpg', 'extension': 'jpg'}, 1335244242: {'path': 'temp/1739203708_3262176_1335244242_f052a2aa7835745b6de13cc10df0384f.jpg', 'extension': 'jpg'}, 1335244253: {'path': 'temp/1739203708_3262176_1335244253_95b1de80abb9eb920f26c5e9a808b428.jpg', 'extension': 'jpg'}, 1335244257: {'path': 'temp/1739203708_3262176_1335244257_924a7836b84c9db3ca8f217b4665ef3d.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 = 20316832; (('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 = 20316832 group by h (('15', 26),) 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=20316832 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 (20316832) 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 (20316832) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06022025 20316832 Nombre de photos uploadées : 26 / 23040 (0%) 06022025 20316832 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 06022025 20316832 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1335244375, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f1adee0dd74be2d18ffeafc485701ffc.jpg', 'username': None, 'uploaded_at': 1738860037, 'text': 'image_06022025_15_00_14_010187m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1335244369, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5a4b768a79f16553390d189179847542.jpg', 'username': None, 'uploaded_at': 1738860037, 'text': 'image_06022025_15_00_24_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1335244363, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b0052ee21e307d88071b6c751103f6dd.jpg', 'username': None, 'uploaded_at': 1738860037, 'text': 'image_06022025_15_00_34_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1335244357, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/177209f756e85799f90e3ee8a236644d.jpg', 'username': None, 'uploaded_at': 1738860037, 'text': 'image_06022025_15_00_45_010135m0.jpg 4e-05 for time 1, id_amount 3 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 6.198883056640625e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001398324966430664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20316832, '2025-02-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1581747,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024563312530517578 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= 1581747 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316824, 'dashboard_result_id': 8780163, '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_P20316824_07-02-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20317322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317333, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316825, 'dashboard_result_id': 8780164, '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_P20316825_07-02-2025_05_35_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317357, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316826, 'dashboard_result_id': 8780165, '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_P20316826_07-02-2025_05_35_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317417, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316827, 'dashboard_result_id': 8780166, '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_P20316827_07-02-2025_05_41_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317309, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20278854, 'dashboard_result_id': 8780168, '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_P20278854_07-02-2025_05_42_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278918, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20278856, 'dashboard_result_id': 8780169, '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_P20278856_07-02-2025_05_43_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278942, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20279015, 'dashboard_result_id': 8780170, '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_P20279015_07-02-2025_05_43_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20279096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279107, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20279159, 'dashboard_result_id': 8780171, '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_P20279159_07-02-2025_05_44_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279227, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20279384, 'dashboard_result_id': 8780172, '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_P20279384_07-02-2025_05_45_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279468, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20280224, 'dashboard_result_id': 8780174, '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_P20280224_07-02-2025_05_45_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20280267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20280268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20280269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20280270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20280271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20280272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20280273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20280274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20280275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20280276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20280277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20280278, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20281066, 'dashboard_result_id': 8780175, '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_P20281066_07-02-2025_05_46_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20281122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20281123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20281124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20281125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20281126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20281127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20281128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20281129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20281130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20281131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20281132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20281133, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20281877, 'dashboard_result_id': 8780176, '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_P20281877_07-02-2025_05_46_46.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20281906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20281907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20281908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20281909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20281910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20281911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20281912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20281913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20281914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20281915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20281916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20281917, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20282516, 'dashboard_result_id': 8780177, '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_P20282516_07-02-2025_05_47_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20282568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20282569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20282570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20282571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20282572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20282573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20282574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20282575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20282576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20282577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20282578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20282579, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20283028, 'dashboard_result_id': 8780178, '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_P20283028_07-02-2025_05_48_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283046, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20283606, 'dashboard_result_id': 8780179, '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_P20283606_07-02-2025_05_48_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283677, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20284556, 'dashboard_result_id': 8780180, '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_P20284556_07-02-2025_05_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20284586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20284587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20284588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20284589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20284590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20284591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20284592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20284593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20284594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20284595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20284596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20284597, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20285219, 'dashboard_result_id': 8780181, '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_P20285219_07-02-2025_05_50_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20285227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20285228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20285229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20285230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20285231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20285232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20285233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20285234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20285235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20285236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20285237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20285238, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20286053, 'dashboard_result_id': 8780183, '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_P20286053_07-02-2025_05_50_44.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286066, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20286533, 'dashboard_result_id': 8780184, '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_P20286533_07-02-2025_05_51_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286548, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20286862, 'dashboard_result_id': 8780185, '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_P20286862_07-02-2025_05_52_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286879, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20287423, 'dashboard_result_id': 8780186, '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_P20287423_07-02-2025_05_57_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20287430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20287431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20287432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20287433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20287434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20287435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20287436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20287437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20287438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20287439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20287440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20287441, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20288163, 'dashboard_result_id': 8780188, '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_P20288163_07-02-2025_05_58_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20288170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20288171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20288172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20288173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20288174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20288175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20288176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20288177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20288178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20288179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20288180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20288181, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20288603, 'dashboard_result_id': 8780189, '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_P20288603_07-02-2025_05_58_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20288632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20288633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20288634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20288635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20288636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20288637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20288638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20288639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20288640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20288641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20288642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20288643, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20289032, 'dashboard_result_id': 8780190, '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_P20289032_07-02-2025_05_59_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20289033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289044, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20289745, 'dashboard_result_id': 8780191, '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_P20289745_07-02-2025_06_00_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20289798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289799, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20290351, 'dashboard_result_id': 8780192, '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_P20290351_07-02-2025_06_00_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290368, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20290772, 'dashboard_result_id': 8780193, '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_P20290772_07-02-2025_06_01_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290834, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20291438, 'dashboard_result_id': 8780194, '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_P20291438_07-02-2025_06_03_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20291490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20291491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20291492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20291493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20291494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20291495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20291496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20291497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20291498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20291499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20291500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20291501, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20292165, 'dashboard_result_id': 8780195, '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_P20292165_07-02-2025_06_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292207, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20292813, 'dashboard_result_id': 8780197, '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_P20292813_07-02-2025_06_04_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292879, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20293389, 'dashboard_result_id': 8780198, '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_P20293389_07-02-2025_06_04_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293429, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20293740, 'dashboard_result_id': 8780199, '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_P20293740_07-02-2025_06_06_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293782, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20294672, 'dashboard_result_id': 8780200, '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_P20294672_07-02-2025_06_06_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20294678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20294679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20294680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20294681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20294682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20294683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20294684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20294685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20294686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20294687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20294688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20294689, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316828, 'dashboard_result_id': 8780201, '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_P20316828_07-02-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20317274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317285, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316829, 'dashboard_result_id': 8780202, '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_P20316829_07-02-2025_06_08_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317225, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316830, 'dashboard_result_id': 8780204, '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_P20316830_07-02-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317169, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316831, 'dashboard_result_id': 8780205, '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_P20316831_07-02-2025_06_09_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317064, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316832, 'dashboard_result_id': 8780206, '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_P20316832_07-02-2025_06_10_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317121, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316833, 'dashboard_result_id': 8780207, '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_P20316833_10-02-2025_17_08_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317145, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316834, 'dashboard_result_id': 8780208, '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_P20316834_10-02-2025_17_07_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317008, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316835, 'dashboard_result_id': 8780210, '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_P20316835_10-02-2025_17_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316983, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20299387, 'dashboard_result_id': 8780211, '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_P20299387_10-02-2025_17_06_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299408, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20299414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299417, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20299216, 'dashboard_result_id': 8780212, '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_P20299216_07-02-2025_06_12_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20299279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299290, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20298776, 'dashboard_result_id': 8780213, '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_P20298776_07-02-2025_06_13_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20298785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20298786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20298787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20298788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20298789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20298790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20298791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20298792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20298793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20298794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20298795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20298796, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20298550, 'dashboard_result_id': 8780214, '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_P20298550_07-02-2025_06_13_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20298563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20298564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20298565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20298566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20298567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20298568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20298569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20298570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20298571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20298572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20298573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20298574, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20299457, 'dashboard_result_id': 8780215, '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_P20299457_07-02-2025_06_14_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20299492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299502, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20300876, 'dashboard_result_id': 8780216, '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_P20300876_07-02-2025_06_14_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20300881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20300882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20300883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20300884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20300885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20300886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20300887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20300888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20300889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20300891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20300892, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20301677, 'dashboard_result_id': 8780217, '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_P20301677_07-02-2025_06_15_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20301720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20301721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20301722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20301723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20301724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20301725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20301726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20301727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20301728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20301729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20301730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20301731, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20302042, 'dashboard_result_id': 8780219, '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_P20302042_07-02-2025_06_15_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20302050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20302051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20302052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20302053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20302054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20302055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20302056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20302057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20302058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20302059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20302060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20302061, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20302815, 'dashboard_result_id': 8780220, '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_P20302815_07-02-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20302818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20302819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20302820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20302821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20302822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20302823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20302824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20302825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20302826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20302827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20302828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20302829, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20303438, 'dashboard_result_id': 8780221, '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_P20303438_07-02-2025_06_16_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20303453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20303454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20303455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20303456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20303457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20303458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20303459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20303460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20303461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20303462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20303463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20303464, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20303638, 'dashboard_result_id': 8780223, '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_P20303638_07-02-2025_06_17_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20303645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20303646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20303647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20303648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20303649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20303650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20303651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20303652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20303653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20303655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20303660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20303666, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20304311, 'dashboard_result_id': 8780224, '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_P20304311_07-02-2025_06_17_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20304331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20304332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20304333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20304334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20304335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20304336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20304337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20304338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20304339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20304340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20304341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20304342, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20305090, 'dashboard_result_id': 8780225, '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_P20305090_07-02-2025_06_18_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20305096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20305097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20305098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20305099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20305100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20305101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20305102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20305103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20305104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20305105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20305106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20305107, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20305947, 'dashboard_result_id': 8780226, '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_P20305947_07-02-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20305976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20305977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20305978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20305979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20305980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20305981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20305982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20305983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20305984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20305985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20305986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20305987, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20306665, 'dashboard_result_id': 8780227, '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_P20306665_07-02-2025_06_19_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20306718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20306719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20306720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20306721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20306722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20306723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20306724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20306725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20306726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20306727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20306728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20306729, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20307225, 'dashboard_result_id': 8780228, '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_P20307225_07-02-2025_06_19_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20307330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20307331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20307332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20307333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20307334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20307335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20307336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20307337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20307338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20307339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20307340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20307341, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20308646, 'dashboard_result_id': 8780229, '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_P20308646_07-02-2025_06_20_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20308685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20308686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20308687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20308688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20308689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20308690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20308691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20308692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20308693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20308694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20308695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20308696, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20309020, 'dashboard_result_id': 8780230, '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_P20309020_07-02-2025_06_20_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20309047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20309048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20309049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20309050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20309051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20309052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20309053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20309054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20309055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20309056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20309057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20309058, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20309611, 'dashboard_result_id': 8780232, '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_P20309611_07-02-2025_06_21_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20309615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20309616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20309617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20309618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20309619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20309620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20309621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20309622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20309623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20309624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20309625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20309626, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20310329, 'dashboard_result_id': 8780233, '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_P20310329_07-02-2025_06_21_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20310357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20310358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20310359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20310360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20310361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20310362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20310363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20310364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20310365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20310366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20310367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20310368, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20311140, 'dashboard_result_id': 8780234, '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_P20311140_07-02-2025_06_22_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20311173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20311174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20311175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20311176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20311178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20311179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20311180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20311181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20311182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20311183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20311184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20311185, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20312031, 'dashboard_result_id': 8780235, '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_P20312031_07-02-2025_06_22_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20312062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20312063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20312064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20312065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20312066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20312067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20312068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20312069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20312070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20312071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20312072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20312073, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20312714, 'dashboard_result_id': 8780237, '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_P20312714_07-02-2025_06_23_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20312716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20312717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20312718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20312719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20312720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20312721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20312722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20312723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20312724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20312725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20312726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20312727, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316836, 'dashboard_result_id': 8780238, '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_P20316836_10-02-2025_17_05_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316911, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316837, 'dashboard_result_id': 8780239, '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_P20316837_10-02-2025_17_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316935, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316838, 'dashboard_result_id': 8780240, '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_P20316838_10-02-2025_17_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316959, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1598105, 'mtr_portfolio_id': 20316839, 'dashboard_result_id': 8780241, '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_P20316839_10-02-2025_17_01_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316851, '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 = 20316824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316824 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316824 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316824_07-02-2025_05_34_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316824 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_P20316824_07-02-2025_05_34_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20317322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317333, 'pht': 3726}}" where mtr_portfolio_id = 20316824 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316825 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316825 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316825 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316825 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316825 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316825_07-02-2025_05_35_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316825 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_P20316825_07-02-2025_05_35_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317355, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317357, 'pht': 3726}}" where mtr_portfolio_id = 20316825 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316826 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316826 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316826 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316826 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316826 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316826_07-02-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316826 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_P20316826_07-02-2025_05_35_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317413, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317417, 'pht': 3726}}" where mtr_portfolio_id = 20316826 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316827 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316827 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316827 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316827 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316827 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316827_07-02-2025_05_41_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316827 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_P20316827_07-02-2025_05_41_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317299, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317303, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317309, 'pht': 3726}}" where mtr_portfolio_id = 20316827 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20278854 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': 2561283, 'mtr_portfolio_id': 20278854, 'created_at': datetime.datetime(2025, 2, 7, 5, 42, 1), 'result': '0.03888432239120224', 'result_long': None, 'result_double': None}] Qualite : 0.03888432239120224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20278854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20278854_07-02-2025_05_42_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20278854 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_P20278854_07-02-2025_05_42_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278918, 'pht': 3726}}" where mtr_portfolio_id = 20278854 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20278854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780168, 0.03888432239120224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20278854_07-02-2025_05_42_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278918, '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 = 20278856 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': 2561284, 'mtr_portfolio_id': 20278856, 'created_at': datetime.datetime(2025, 2, 7, 5, 43, 3), 'result': '0.07774493339029574', 'result_long': None, 'result_double': None}] Qualite : 0.07774493339029574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20278856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20278856_07-02-2025_05_43_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20278856 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_P20278856_07-02-2025_05_43_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278942, 'pht': 3726}}" where mtr_portfolio_id = 20278856 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20278856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780169, 0.07774493339029574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20278856_07-02-2025_05_43_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278942, '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 = 20279015 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': 2561285, 'mtr_portfolio_id': 20279015, 'created_at': datetime.datetime(2025, 2, 7, 5, 43, 31), 'result': '0.05089593126139812', 'result_long': None, 'result_double': None}] Qualite : 0.05089593126139812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20279015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279015_07-02-2025_05_43_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20279015 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_P20279015_07-02-2025_05_43_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20279096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279107, 'pht': 3726}}" where mtr_portfolio_id = 20279015 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20279015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780170, 0.05089593126139812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279015_07-02-2025_05_43_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20279096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279107, '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 = 20279159 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': 2561286, 'mtr_portfolio_id': 20279159, 'created_at': datetime.datetime(2025, 2, 7, 5, 44, 8), 'result': '0.05282049708518813', 'result_long': None, 'result_double': None}] Qualite : 0.05282049708518813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20279159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279159_07-02-2025_05_44_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20279159 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_P20279159_07-02-2025_05_44_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279227, 'pht': 3726}}" where mtr_portfolio_id = 20279159 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20279159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780171, 0.05282049708518813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279159_07-02-2025_05_44_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279227, '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 = 20279384 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': 2561287, 'mtr_portfolio_id': 20279384, 'created_at': datetime.datetime(2025, 2, 7, 5, 45, 4), 'result': '0.04649096371835471', 'result_long': None, 'result_double': None}] Qualite : 0.04649096371835471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20279384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279384_07-02-2025_05_45_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20279384 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_P20279384_07-02-2025_05_45_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279468, 'pht': 3726}}" where mtr_portfolio_id = 20279384 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20279384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780172, 0.04649096371835471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279384_07-02-2025_05_45_08.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279468, '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 = 20280224 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': 2561288, 'mtr_portfolio_id': 20280224, 'created_at': datetime.datetime(2025, 2, 7, 5, 45, 33), 'result': '0.04345555278846963', 'result_long': None, 'result_double': None}] Qualite : 0.04345555278846963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20280224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20280224_07-02-2025_05_45_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20280224 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_P20280224_07-02-2025_05_45_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20280267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20280268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20280269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20280270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20280271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20280272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20280273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20280274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20280275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20280276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20280277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20280278, 'pht': 3726}}" where mtr_portfolio_id = 20280224 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20280224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780174, 0.04345555278846963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20280224_07-02-2025_05_45_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20280267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20280268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20280269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20280270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20280271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20280272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20280273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20280274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20280275, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20280276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20280277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20280278, '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 = 20281066 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': 2561289, 'mtr_portfolio_id': 20281066, 'created_at': datetime.datetime(2025, 2, 7, 5, 46, 3), 'result': '0.05246176236512903', 'result_long': None, 'result_double': None}] Qualite : 0.05246176236512903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20281066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20281066_07-02-2025_05_46_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20281066 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_P20281066_07-02-2025_05_46_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20281122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20281123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20281124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20281125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20281126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20281127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20281128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20281129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20281130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20281131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20281132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20281133, 'pht': 3726}}" where mtr_portfolio_id = 20281066 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20281066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780175, 0.05246176236512903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20281066_07-02-2025_05_46_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20281122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20281123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20281124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20281125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20281126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20281127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20281128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20281129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20281130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20281131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20281132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20281133, '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 = 20281877 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': 2561290, 'mtr_portfolio_id': 20281877, 'created_at': datetime.datetime(2025, 2, 7, 5, 46, 41), 'result': '0.03761295266286882', 'result_long': None, 'result_double': None}] Qualite : 0.03761295266286882 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20281877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20281877_07-02-2025_05_46_46.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20281877 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_P20281877_07-02-2025_05_46_46.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20281906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20281907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20281908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20281909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20281910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20281911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20281912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20281913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20281914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20281915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20281916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20281917, 'pht': 3726}}" where mtr_portfolio_id = 20281877 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20281877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780176, 0.03761295266286882, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20281877_07-02-2025_05_46_46.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20281906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20281907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20281908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20281909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20281910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20281911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20281912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20281913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20281914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20281915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20281916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20281917, '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 = 20282516 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': 2561291, 'mtr_portfolio_id': 20282516, 'created_at': datetime.datetime(2025, 2, 7, 5, 47, 31), 'result': '0.06936044313439063', 'result_long': None, 'result_double': None}] Qualite : 0.06936044313439063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20282516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20282516_07-02-2025_05_47_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20282516 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_P20282516_07-02-2025_05_47_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20282568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20282569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20282570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20282571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20282572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20282573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20282574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20282575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20282576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20282577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20282578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20282579, 'pht': 3726}}" where mtr_portfolio_id = 20282516 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20282516 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780177, 0.06936044313439063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20282516_07-02-2025_05_47_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20282568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20282569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20282570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20282571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20282572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20282573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20282574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20282575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20282576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20282577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20282578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20282579, '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 = 20283028 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': 2561292, 'mtr_portfolio_id': 20283028, 'created_at': datetime.datetime(2025, 2, 7, 5, 48, 3), 'result': '0.03856919395457127', 'result_long': None, 'result_double': None}] Qualite : 0.03856919395457127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20283028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283028_07-02-2025_05_48_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20283028 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_P20283028_07-02-2025_05_48_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283046, 'pht': 3726}}" where mtr_portfolio_id = 20283028 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20283028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780178, 0.03856919395457127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283028_07-02-2025_05_48_06.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283046, '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 = 20283606 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': 2561293, 'mtr_portfolio_id': 20283606, 'created_at': datetime.datetime(2025, 2, 7, 5, 48, 35), 'result': '0.04238544842872937', 'result_long': None, 'result_double': None}] Qualite : 0.04238544842872937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20283606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283606_07-02-2025_05_48_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20283606 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_P20283606_07-02-2025_05_48_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283677, 'pht': 3726}}" where mtr_portfolio_id = 20283606 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20283606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780179, 0.04238544842872937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20283606_07-02-2025_05_48_37.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20283666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20283667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20283668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20283669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20283670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20283671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20283672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20283673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20283674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20283675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20283676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20283677, '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 = 20284556 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': 2561294, 'mtr_portfolio_id': 20284556, 'created_at': datetime.datetime(2025, 2, 7, 5, 49, 34), 'result': '0.04837855893682185', 'result_long': None, 'result_double': None}] Qualite : 0.04837855893682185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20284556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20284556_07-02-2025_05_49_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20284556 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_P20284556_07-02-2025_05_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20284586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20284587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20284588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20284589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20284590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20284591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20284592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20284593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20284594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20284595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20284596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20284597, 'pht': 3726}}" where mtr_portfolio_id = 20284556 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20284556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780180, 0.04837855893682185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20284556_07-02-2025_05_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20284586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20284587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20284588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20284589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20284590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20284591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20284592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20284593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20284594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20284595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20284596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20284597, '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 = 20285219 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': 2561295, 'mtr_portfolio_id': 20285219, 'created_at': datetime.datetime(2025, 2, 7, 5, 50, 4), 'result': '0.04550063060979205', 'result_long': None, 'result_double': None}] Qualite : 0.04550063060979205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20285219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20285219_07-02-2025_05_50_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20285219 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_P20285219_07-02-2025_05_50_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20285227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20285228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20285229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20285230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20285231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20285232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20285233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20285234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20285235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20285236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20285237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20285238, 'pht': 3726}}" where mtr_portfolio_id = 20285219 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20285219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780181, 0.04550063060979205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20285219_07-02-2025_05_50_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20285227, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20285228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20285229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20285230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20285231, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20285232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20285233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20285234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20285235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20285236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20285237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20285238, '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 = 20286053 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': 2561296, 'mtr_portfolio_id': 20286053, 'created_at': datetime.datetime(2025, 2, 7, 5, 50, 39), 'result': '0.0632931282730785', 'result_long': None, 'result_double': None}] Qualite : 0.0632931282730785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20286053 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20286053_07-02-2025_05_50_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20286053 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_P20286053_07-02-2025_05_50_44.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286066, 'pht': 3726}}" where mtr_portfolio_id = 20286053 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20286053 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780183, 0.0632931282730785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20286053_07-02-2025_05_50_44.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286066, '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 = 20286533 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': 2561297, 'mtr_portfolio_id': 20286533, 'created_at': datetime.datetime(2025, 2, 7, 5, 51, 37), 'result': '0.04706495972639552', 'result_long': None, 'result_double': None}] Qualite : 0.04706495972639552 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20286533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20286533_07-02-2025_05_51_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20286533 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_P20286533_07-02-2025_05_51_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286548, 'pht': 3726}}" where mtr_portfolio_id = 20286533 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20286533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780184, 0.04706495972639552, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20286533_07-02-2025_05_51_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286548, '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 = 20286862 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': 2561298, 'mtr_portfolio_id': 20286862, 'created_at': datetime.datetime(2025, 2, 7, 5, 52, 6), 'result': '0.04227434592128079', 'result_long': None, 'result_double': None}] Qualite : 0.04227434592128079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20286862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20286862_07-02-2025_05_52_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20286862 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_P20286862_07-02-2025_05_52_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286879, 'pht': 3726}}" where mtr_portfolio_id = 20286862 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20286862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780185, 0.04227434592128079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20286862_07-02-2025_05_52_10.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20286868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20286869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20286870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20286871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20286872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20286873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20286874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20286875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20286876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20286877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20286878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20286879, '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 = 20287423 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': 2561299, 'mtr_portfolio_id': 20287423, 'created_at': datetime.datetime(2025, 2, 7, 5, 57, 32), 'result': '0.05014163597464928', 'result_long': None, 'result_double': None}] Qualite : 0.05014163597464928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20287423 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287423_07-02-2025_05_57_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20287423 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_P20287423_07-02-2025_05_57_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20287430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20287431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20287432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20287433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20287434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20287435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20287436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20287437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20287438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20287439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20287440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20287441, 'pht': 3726}}" where mtr_portfolio_id = 20287423 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20287423 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780186, 0.05014163597464928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20287423_07-02-2025_05_57_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20287430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20287431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20287432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20287433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20287434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20287435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20287436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20287437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20287438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20287439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20287440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20287441, '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 = 20288163 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': 2561300, 'mtr_portfolio_id': 20288163, 'created_at': datetime.datetime(2025, 2, 7, 5, 58, 2), 'result': '0.046767372884596994', 'result_long': None, 'result_double': None}] Qualite : 0.046767372884596994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20288163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20288163_07-02-2025_05_58_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20288163 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_P20288163_07-02-2025_05_58_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20288170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20288171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20288172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20288173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20288174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20288175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20288176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20288177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20288178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20288179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20288180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20288181, 'pht': 3726}}" where mtr_portfolio_id = 20288163 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20288163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780188, 0.046767372884596994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20288163_07-02-2025_05_58_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20288170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20288171, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20288172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20288173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20288174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20288175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20288176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20288177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20288178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20288179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20288180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20288181, '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 = 20288603 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': 2561301, 'mtr_portfolio_id': 20288603, 'created_at': datetime.datetime(2025, 2, 7, 5, 58, 34), 'result': '0.058675995415575846', 'result_long': None, 'result_double': None}] Qualite : 0.058675995415575846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20288603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20288603_07-02-2025_05_58_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20288603 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_P20288603_07-02-2025_05_58_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20288632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20288633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20288634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20288635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20288636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20288637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20288638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20288639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20288640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20288641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20288642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20288643, 'pht': 3726}}" where mtr_portfolio_id = 20288603 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20288603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780189, 0.058675995415575846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20288603_07-02-2025_05_58_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20288632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20288633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20288634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20288635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20288636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20288637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20288638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20288639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20288640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20288641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20288642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20288643, '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 = 20289032 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': 2561302, 'mtr_portfolio_id': 20289032, 'created_at': datetime.datetime(2025, 2, 7, 5, 59, 33), 'result': '0.04419145366980731', 'result_long': None, 'result_double': None}] Qualite : 0.04419145366980731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20289032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289032_07-02-2025_05_59_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20289032 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_P20289032_07-02-2025_05_59_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20289033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289044, 'pht': 3726}}" where mtr_portfolio_id = 20289032 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20289032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780190, 0.04419145366980731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289032_07-02-2025_05_59_37.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20289033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289044, '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 = 20289745 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': 2561303, 'mtr_portfolio_id': 20289745, 'created_at': datetime.datetime(2025, 2, 7, 5, 59, 58), 'result': '0.048459267579643424', 'result_long': None, 'result_double': None}] Qualite : 0.048459267579643424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20289745 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289745_07-02-2025_06_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20289745 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_P20289745_07-02-2025_06_00_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20289798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289799, 'pht': 3726}}" where mtr_portfolio_id = 20289745 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20289745 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780191, 0.048459267579643424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289745_07-02-2025_06_00_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20289798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289799, '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 = 20290351 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': 2561304, 'mtr_portfolio_id': 20290351, 'created_at': datetime.datetime(2025, 2, 7, 6, 0, 32), 'result': '0.06569047563469585', 'result_long': None, 'result_double': None}] Qualite : 0.06569047563469585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20290351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290351_07-02-2025_06_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20290351 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_P20290351_07-02-2025_06_00_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290368, 'pht': 3726}}" where mtr_portfolio_id = 20290351 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20290351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780192, 0.06569047563469585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290351_07-02-2025_06_00_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290368, '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 = 20290772 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': 2561305, 'mtr_portfolio_id': 20290772, 'created_at': datetime.datetime(2025, 2, 7, 6, 1, 34), 'result': '0.04462104397531356', 'result_long': None, 'result_double': None}] Qualite : 0.04462104397531356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20290772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290772_07-02-2025_06_01_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20290772 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_P20290772_07-02-2025_06_01_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290834, 'pht': 3726}}" where mtr_portfolio_id = 20290772 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20290772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780193, 0.04462104397531356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290772_07-02-2025_06_01_37.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290834, '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 = 20291438 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': 2561306, 'mtr_portfolio_id': 20291438, 'created_at': datetime.datetime(2025, 2, 7, 6, 3, 5), 'result': '0.051562908958269725', 'result_long': None, 'result_double': None}] Qualite : 0.051562908958269725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20291438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20291438_07-02-2025_06_03_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20291438 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_P20291438_07-02-2025_06_03_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20291490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20291491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20291492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20291493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20291494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20291495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20291496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20291497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20291498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20291499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20291500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20291501, 'pht': 3726}}" where mtr_portfolio_id = 20291438 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20291438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780194, 0.051562908958269725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20291438_07-02-2025_06_03_08.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20291490, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20291491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20291492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20291493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20291494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20291495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20291496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20291497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20291498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20291499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20291500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20291501, '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 = 20292165 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': 2561307, 'mtr_portfolio_id': 20292165, 'created_at': datetime.datetime(2025, 2, 7, 6, 3, 31), 'result': '0.05679833606548725', 'result_long': None, 'result_double': None}] Qualite : 0.05679833606548725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20292165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292165_07-02-2025_06_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20292165 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_P20292165_07-02-2025_06_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292207, 'pht': 3726}}" where mtr_portfolio_id = 20292165 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20292165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780195, 0.05679833606548725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292165_07-02-2025_06_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292200, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292207, '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 = 20292813 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': 2561308, 'mtr_portfolio_id': 20292813, 'created_at': datetime.datetime(2025, 2, 7, 6, 4, 3), 'result': '0.0524917392759615', 'result_long': None, 'result_double': None}] Qualite : 0.0524917392759615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20292813 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292813_07-02-2025_06_04_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20292813 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_P20292813_07-02-2025_06_04_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292879, 'pht': 3726}}" where mtr_portfolio_id = 20292813 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20292813 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780197, 0.0524917392759615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20292813_07-02-2025_06_04_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20292868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20292869, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20292870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20292871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20292872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20292873, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20292874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20292875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20292876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20292877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20292878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20292879, '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 = 20293389 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': 2561309, 'mtr_portfolio_id': 20293389, 'created_at': datetime.datetime(2025, 2, 7, 6, 4, 31), 'result': '0.05066912850368695', 'result_long': None, 'result_double': None}] Qualite : 0.05066912850368695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20293389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293389_07-02-2025_06_04_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20293389 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_P20293389_07-02-2025_06_04_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293429, 'pht': 3726}}" where mtr_portfolio_id = 20293389 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20293389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780198, 0.05066912850368695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293389_07-02-2025_06_04_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293428, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293429, '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 = 20293740 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': 2561310, 'mtr_portfolio_id': 20293740, 'created_at': datetime.datetime(2025, 2, 7, 6, 6, 4), 'result': '0.04368067819846714', 'result_long': None, 'result_double': None}] Qualite : 0.04368067819846714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20293740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293740_07-02-2025_06_06_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20293740 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_P20293740_07-02-2025_06_06_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293782, 'pht': 3726}}" where mtr_portfolio_id = 20293740 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20293740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780199, 0.04368067819846714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20293740_07-02-2025_06_06_07.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20293771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20293772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20293773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20293774, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20293775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20293776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20293777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20293778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20293779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20293780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20293781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20293782, '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 = 20294672 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': 2561311, 'mtr_portfolio_id': 20294672, 'created_at': datetime.datetime(2025, 2, 7, 6, 6, 29), 'result': '0.04150541665178558', 'result_long': None, 'result_double': None}] Qualite : 0.04150541665178558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20294672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20294672_07-02-2025_06_06_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20294672 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_P20294672_07-02-2025_06_06_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20294678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20294679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20294680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20294681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20294682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20294683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20294684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20294685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20294686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20294687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20294688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20294689, 'pht': 3726}}" where mtr_portfolio_id = 20294672 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20294672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780200, 0.04150541665178558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20294672_07-02-2025_06_06_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20294678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20294679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20294680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20294681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20294682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20294683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20294684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20294685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20294686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20294687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20294688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20294689, '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 = 20316828 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316828 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316828 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316828 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316828 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316828 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316828_07-02-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316828 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_P20316828_07-02-2025_06_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20317274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317285, 'pht': 3726}}" where mtr_portfolio_id = 20316828 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316829 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316829 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316829 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316829 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316829 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316829_07-02-2025_06_08_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316829 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_P20316829_07-02-2025_06_08_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317222, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317225, 'pht': 3726}}" where mtr_portfolio_id = 20316829 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316830 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316830 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316830 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316830 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316830 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316830 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316830_07-02-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316830 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_P20316830_07-02-2025_06_08_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317169, 'pht': 3726}}" where mtr_portfolio_id = 20316830 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316831 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316831 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 20316831 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316831 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316831 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316831_07-02-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316831 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_P20316831_07-02-2025_06_09_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317061, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317064, 'pht': 3726}}" where mtr_portfolio_id = 20316831 and dashboard_run_id = 1598105 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20316832 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': 2572554, 'mtr_portfolio_id': 20316832, 'created_at': datetime.datetime(2025, 2, 10, 17, 8, 28), 'result': '0.029145393000906693', 'result_long': None, 'result_double': None}] Qualite : 0.029145393000906693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316832 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316832_10-02-2025_17_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316832 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_P20316832_10-02-2025_17_08_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317121, 'pht': 3726}}" where mtr_portfolio_id = 20316832 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316832 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780206, 0.029145393000906693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316832_10-02-2025_17_08_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317121, '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 = 20316833 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': 2572555, 'mtr_portfolio_id': 20316833, 'created_at': datetime.datetime(2025, 2, 10, 17, 8, 1), 'result': '0.03258141909880015', 'result_long': None, 'result_double': None}] Qualite : 0.03258141909880015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316833_10-02-2025_17_08_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316833 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_P20316833_10-02-2025_17_08_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317145, 'pht': 3726}}" where mtr_portfolio_id = 20316833 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780207, 0.03258141909880015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316833_10-02-2025_17_08_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20317134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317139, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20317140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20317143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317145, '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 = 20316834 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': 2572556, 'mtr_portfolio_id': 20316834, 'created_at': datetime.datetime(2025, 2, 10, 17, 7, 28), 'result': '0.03936999112785005', 'result_long': None, 'result_double': None}] Qualite : 0.03936999112785005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316834_10-02-2025_17_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316834 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_P20316834_10-02-2025_17_07_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317008, 'pht': 3726}}" where mtr_portfolio_id = 20316834 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780208, 0.03936999112785005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316834_10-02-2025_17_07_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20317000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20317001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20317002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20317003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20317004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20317005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20317006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20317007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20317008, '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 = 20316835 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': 2572557, 'mtr_portfolio_id': 20316835, 'created_at': datetime.datetime(2025, 2, 10, 17, 6, 29), 'result': '0.04829441720486405', 'result_long': None, 'result_double': None}] Qualite : 0.04829441720486405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316835 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316835_10-02-2025_17_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316835 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_P20316835_10-02-2025_17_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316983, 'pht': 3726}}" where mtr_portfolio_id = 20316835 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316835 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780210, 0.04829441720486405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316835_10-02-2025_17_06_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316972, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316983, '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 = 20299387 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': 2572558, 'mtr_portfolio_id': 20299387, 'created_at': datetime.datetime(2025, 2, 10, 17, 6, 1), 'result': '0.05900318621123481', 'result_long': None, 'result_double': None}] Qualite : 0.05900318621123481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20299387 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20299387_10-02-2025_17_06_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20299387 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_P20299387_10-02-2025_17_06_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299408, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20299414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299417, 'pht': 3726}}" where mtr_portfolio_id = 20299387 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20299387 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780211, 0.05900318621123481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20299387_10-02-2025_17_06_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299408, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20299414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299415, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299417, '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 = 20299216 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': 2561321, 'mtr_portfolio_id': 20299216, 'created_at': datetime.datetime(2025, 2, 7, 6, 12, 31), 'result': '0.0352595597513906', 'result_long': None, 'result_double': None}] Qualite : 0.0352595597513906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20299216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20299216_07-02-2025_06_12_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20299216 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_P20299216_07-02-2025_06_12_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20299279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299290, 'pht': 3726}}" where mtr_portfolio_id = 20299216 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20299216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780212, 0.0352595597513906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20299216_07-02-2025_06_12_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20299279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299290, '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 = 20298776 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': 2561322, 'mtr_portfolio_id': 20298776, 'created_at': datetime.datetime(2025, 2, 7, 6, 13, 4), 'result': '0.03922107199702222', 'result_long': None, 'result_double': None}] Qualite : 0.03922107199702222 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20298776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20298776_07-02-2025_06_13_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20298776 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_P20298776_07-02-2025_06_13_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20298785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20298786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20298787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20298788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20298789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20298790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20298791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20298792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20298793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20298794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20298795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20298796, 'pht': 3726}}" where mtr_portfolio_id = 20298776 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20298776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780213, 0.03922107199702222, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20298776_07-02-2025_06_13_06.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20298785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20298786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20298787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20298788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20298789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20298790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20298791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20298792, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20298793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20298794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20298795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20298796, '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 = 20298550 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': 2561323, 'mtr_portfolio_id': 20298550, 'created_at': datetime.datetime(2025, 2, 7, 6, 13, 29), 'result': '0.03733731165102909', 'result_long': None, 'result_double': None}] Qualite : 0.03733731165102909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20298550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20298550_07-02-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20298550 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_P20298550_07-02-2025_06_13_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20298563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20298564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20298565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20298566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20298567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20298568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20298569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20298570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20298571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20298572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20298573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20298574, 'pht': 3726}}" where mtr_portfolio_id = 20298550 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20298550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780214, 0.03733731165102909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20298550_07-02-2025_06_13_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20298563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20298564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20298565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20298566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20298567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20298568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20298569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20298570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20298571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20298572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20298573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20298574, '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 = 20299457 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': 2561324, 'mtr_portfolio_id': 20299457, 'created_at': datetime.datetime(2025, 2, 7, 6, 14), 'result': '0.03131607217961524', 'result_long': None, 'result_double': None}] Qualite : 0.03131607217961524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20299457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20299457_07-02-2025_06_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20299457 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_P20299457_07-02-2025_06_14_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20299492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299502, 'pht': 3726}}" where mtr_portfolio_id = 20299457 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20299457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780215, 0.03131607217961524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20299457_07-02-2025_06_14_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20299490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20299491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20299492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20299493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20299494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20299495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20299497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20299498, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20299499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20299500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20299501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20299502, '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 = 20300876 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': 2561325, 'mtr_portfolio_id': 20300876, 'created_at': datetime.datetime(2025, 2, 7, 6, 14, 30), 'result': '0.048086190982452814', 'result_long': None, 'result_double': None}] Qualite : 0.048086190982452814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20300876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20300876_07-02-2025_06_14_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20300876 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_P20300876_07-02-2025_06_14_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20300881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20300882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20300883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20300884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20300885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20300886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20300887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20300888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20300889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20300891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20300892, 'pht': 3726}}" where mtr_portfolio_id = 20300876 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20300876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780216, 0.048086190982452814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20300876_07-02-2025_06_14_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20300881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20300882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20300883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20300884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20300885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20300886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20300887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20300888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20300889, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20300890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20300891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20300892, '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 = 20301677 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': 2561326, 'mtr_portfolio_id': 20301677, 'created_at': datetime.datetime(2025, 2, 7, 6, 15), 'result': '0.04666366736493604', 'result_long': None, 'result_double': None}] Qualite : 0.04666366736493604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20301677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20301677_07-02-2025_06_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20301677 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_P20301677_07-02-2025_06_15_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20301720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20301721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20301722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20301723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20301724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20301725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20301726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20301727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20301728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20301729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20301730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20301731, 'pht': 3726}}" where mtr_portfolio_id = 20301677 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20301677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780217, 0.04666366736493604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20301677_07-02-2025_06_15_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20301720, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20301721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20301722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20301723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20301724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20301725, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20301726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20301727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20301728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20301729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20301730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20301731, '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 = 20302042 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': 2561327, 'mtr_portfolio_id': 20302042, 'created_at': datetime.datetime(2025, 2, 7, 6, 15, 30), 'result': '0.04352112726648547', 'result_long': None, 'result_double': None}] Qualite : 0.04352112726648547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20302042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20302042_07-02-2025_06_15_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20302042 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_P20302042_07-02-2025_06_15_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20302050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20302051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20302052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20302053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20302054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20302055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20302056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20302057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20302058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20302059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20302060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20302061, 'pht': 3726}}" where mtr_portfolio_id = 20302042 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20302042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780219, 0.04352112726648547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20302042_07-02-2025_06_15_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20302050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20302051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20302052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20302053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20302054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20302055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20302056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20302057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20302058, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20302059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20302060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20302061, '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 = 20302815 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': 2561328, 'mtr_portfolio_id': 20302815, 'created_at': datetime.datetime(2025, 2, 7, 6, 15, 59), 'result': '0.05629427192096666', 'result_long': None, 'result_double': None}] Qualite : 0.05629427192096666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20302815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20302815_07-02-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20302815 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_P20302815_07-02-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20302818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20302819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20302820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20302821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20302822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20302823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20302824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20302825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20302826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20302827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20302828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20302829, 'pht': 3726}}" where mtr_portfolio_id = 20302815 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20302815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780220, 0.05629427192096666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20302815_07-02-2025_06_16_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20302818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20302819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20302820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20302821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20302822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20302823, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20302824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20302825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20302826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20302827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20302828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20302829, '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 = 20303438 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': 2561329, 'mtr_portfolio_id': 20303438, 'created_at': datetime.datetime(2025, 2, 7, 6, 16, 31), 'result': '0.08964895806631637', 'result_long': None, 'result_double': None}] Qualite : 0.08964895806631637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20303438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20303438_07-02-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20303438 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_P20303438_07-02-2025_06_16_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20303453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20303454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20303455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20303456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20303457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20303458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20303459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20303460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20303461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20303462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20303463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20303464, 'pht': 3726}}" where mtr_portfolio_id = 20303438 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20303438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780221, 0.08964895806631637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20303438_07-02-2025_06_16_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20303453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20303454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20303455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20303456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20303457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20303458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20303459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20303460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20303461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20303462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20303463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20303464, '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 = 20303638 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': 2561330, 'mtr_portfolio_id': 20303638, 'created_at': datetime.datetime(2025, 2, 7, 6, 17, 4), 'result': '0.06929750799831014', 'result_long': None, 'result_double': None}] Qualite : 0.06929750799831014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20303638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20303638_07-02-2025_06_17_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20303638 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_P20303638_07-02-2025_06_17_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20303645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20303646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20303647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20303648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20303649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20303650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20303651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20303652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20303653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20303655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20303660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20303666, 'pht': 3726}}" where mtr_portfolio_id = 20303638 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20303638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780223, 0.06929750799831014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20303638_07-02-2025_06_17_06.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20303645, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20303646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20303647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20303648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20303649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20303650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20303651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20303652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20303653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20303655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20303660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20303666, '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 = 20304311 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': 2561331, 'mtr_portfolio_id': 20304311, 'created_at': datetime.datetime(2025, 2, 7, 6, 17, 33), 'result': '0.053824484554851', 'result_long': None, 'result_double': None}] Qualite : 0.053824484554851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20304311 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20304311_07-02-2025_06_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20304311 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_P20304311_07-02-2025_06_17_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20304331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20304332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20304333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20304334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20304335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20304336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20304337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20304338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20304339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20304340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20304341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20304342, 'pht': 3726}}" where mtr_portfolio_id = 20304311 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20304311 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780224, 0.053824484554851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20304311_07-02-2025_06_17_35.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20304331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20304332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20304333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20304334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20304335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20304336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20304337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20304338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20304339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20304340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20304341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20304342, '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 = 20305090 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': 2561332, 'mtr_portfolio_id': 20305090, 'created_at': datetime.datetime(2025, 2, 7, 6, 17, 59), 'result': '0.054166603909586816', 'result_long': None, 'result_double': None}] Qualite : 0.054166603909586816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20305090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20305090_07-02-2025_06_18_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20305090 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_P20305090_07-02-2025_06_18_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20305096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20305097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20305098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20305099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20305100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20305101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20305102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20305103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20305104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20305105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20305106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20305107, 'pht': 3726}}" where mtr_portfolio_id = 20305090 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20305090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780225, 0.054166603909586816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20305090_07-02-2025_06_18_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20305096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20305097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20305098, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20305099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20305100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20305101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20305102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20305103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20305104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20305105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20305106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20305107, '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 = 20305947 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': 2561333, 'mtr_portfolio_id': 20305947, 'created_at': datetime.datetime(2025, 2, 7, 6, 18, 33), 'result': '0.04680340349746728', 'result_long': None, 'result_double': None}] Qualite : 0.04680340349746728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20305947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20305947_07-02-2025_06_18_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20305947 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_P20305947_07-02-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20305976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20305977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20305978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20305979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20305980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20305981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20305982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20305983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20305984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20305985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20305986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20305987, 'pht': 3726}}" where mtr_portfolio_id = 20305947 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20305947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780226, 0.04680340349746728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20305947_07-02-2025_06_18_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20305976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20305977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20305978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20305979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20305980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20305981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20305982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20305983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20305984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20305985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20305986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20305987, '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 = 20306665 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': 2561334, 'mtr_portfolio_id': 20306665, 'created_at': datetime.datetime(2025, 2, 7, 6, 19, 1), 'result': '0.0499474011213083', 'result_long': None, 'result_double': None}] Qualite : 0.0499474011213083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20306665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20306665_07-02-2025_06_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20306665 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_P20306665_07-02-2025_06_19_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20306718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20306719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20306720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20306721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20306722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20306723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20306724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20306725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20306726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20306727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20306728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20306729, 'pht': 3726}}" where mtr_portfolio_id = 20306665 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20306665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780227, 0.0499474011213083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20306665_07-02-2025_06_19_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20306718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20306719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20306720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20306721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20306722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20306723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20306724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20306725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20306726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20306727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20306728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20306729, '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 = 20307225 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': 2561335, 'mtr_portfolio_id': 20307225, 'created_at': datetime.datetime(2025, 2, 7, 6, 19, 27), 'result': '0.032297323468564634', 'result_long': None, 'result_double': None}] Qualite : 0.032297323468564634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20307225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20307225_07-02-2025_06_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20307225 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_P20307225_07-02-2025_06_19_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20307330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20307331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20307332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20307333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20307334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20307335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20307336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20307337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20307338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20307339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20307340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20307341, 'pht': 3726}}" where mtr_portfolio_id = 20307225 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20307225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780228, 0.032297323468564634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20307225_07-02-2025_06_19_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20307330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20307331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20307332, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20307333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20307334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20307335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20307336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20307337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20307338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20307339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20307340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20307341, '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 = 20308646 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': 2561336, 'mtr_portfolio_id': 20308646, 'created_at': datetime.datetime(2025, 2, 7, 6, 20, 1), 'result': '0.07539889215117791', 'result_long': None, 'result_double': None}] Qualite : 0.07539889215117791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20308646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20308646_07-02-2025_06_20_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20308646 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_P20308646_07-02-2025_06_20_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20308685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20308686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20308687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20308688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20308689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20308690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20308691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20308692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20308693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20308694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20308695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20308696, 'pht': 3726}}" where mtr_portfolio_id = 20308646 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20308646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780229, 0.07539889215117791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20308646_07-02-2025_06_20_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20308685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20308686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20308687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20308688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20308689, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20308690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20308691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20308692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20308693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20308694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20308695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20308696, '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 = 20309020 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': 2561337, 'mtr_portfolio_id': 20309020, 'created_at': datetime.datetime(2025, 2, 7, 6, 20, 35), 'result': '0.03746188015277038', 'result_long': None, 'result_double': None}] Qualite : 0.03746188015277038 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20309020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20309020_07-02-2025_06_20_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20309020 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_P20309020_07-02-2025_06_20_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20309047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20309048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20309049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20309050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20309051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20309052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20309053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20309054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20309055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20309056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20309057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20309058, 'pht': 3726}}" where mtr_portfolio_id = 20309020 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20309020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780230, 0.03746188015277038, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20309020_07-02-2025_06_20_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20309047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20309048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20309049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20309050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20309051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20309052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20309053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20309054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20309055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20309056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20309057, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20309058, '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 = 20309611 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': 2561338, 'mtr_portfolio_id': 20309611, 'created_at': datetime.datetime(2025, 2, 7, 6, 20, 59), 'result': '0.03290291597412468', 'result_long': None, 'result_double': None}] Qualite : 0.03290291597412468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20309611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20309611_07-02-2025_06_21_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20309611 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_P20309611_07-02-2025_06_21_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20309615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20309616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20309617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20309618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20309619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20309620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20309621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20309622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20309623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20309624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20309625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20309626, 'pht': 3726}}" where mtr_portfolio_id = 20309611 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20309611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780232, 0.03290291597412468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20309611_07-02-2025_06_21_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20309615, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20309616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20309617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20309618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20309619, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20309620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20309621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20309622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20309623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20309624, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20309625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20309626, '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 = 20310329 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': 2561339, 'mtr_portfolio_id': 20310329, 'created_at': datetime.datetime(2025, 2, 7, 6, 21, 35), 'result': '0.05594217719107892', 'result_long': None, 'result_double': None}] Qualite : 0.05594217719107892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20310329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20310329_07-02-2025_06_21_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20310329 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_P20310329_07-02-2025_06_21_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20310357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20310358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20310359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20310360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20310361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20310362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20310363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20310364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20310365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20310366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20310367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20310368, 'pht': 3726}}" where mtr_portfolio_id = 20310329 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20310329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780233, 0.05594217719107892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20310329_07-02-2025_06_21_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20310357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20310358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20310359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20310360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20310361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20310362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20310363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20310364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20310365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20310366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20310367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20310368, '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 = 20311140 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': 2561340, 'mtr_portfolio_id': 20311140, 'created_at': datetime.datetime(2025, 2, 7, 6, 22, 3), 'result': '0.03747908750908567', 'result_long': None, 'result_double': None}] Qualite : 0.03747908750908567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20311140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20311140_07-02-2025_06_22_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20311140 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_P20311140_07-02-2025_06_22_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20311173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20311174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20311175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20311176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20311178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20311179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20311180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20311181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20311182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20311183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20311184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20311185, 'pht': 3726}}" where mtr_portfolio_id = 20311140 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20311140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780234, 0.03747908750908567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20311140_07-02-2025_06_22_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20311173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20311174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20311175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20311176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20311178, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20311179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20311180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20311181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20311182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20311183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20311184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20311185, '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 = 20312031 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': 2561341, 'mtr_portfolio_id': 20312031, 'created_at': datetime.datetime(2025, 2, 7, 6, 22, 32), 'result': '0.045476742249313425', 'result_long': None, 'result_double': None}] Qualite : 0.045476742249313425 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20312031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20312031_07-02-2025_06_22_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20312031 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_P20312031_07-02-2025_06_22_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20312062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20312063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20312064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20312065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20312066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20312067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20312068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20312069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20312070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20312071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20312072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20312073, 'pht': 3726}}" where mtr_portfolio_id = 20312031 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20312031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780235, 0.045476742249313425, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20312031_07-02-2025_06_22_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20312062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20312063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20312064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20312065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20312066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20312067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20312068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20312069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20312070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20312071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20312072, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20312073, '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 = 20312714 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': 2561342, 'mtr_portfolio_id': 20312714, 'created_at': datetime.datetime(2025, 2, 7, 6, 23, 31), 'result': '0.046725085590333386', 'result_long': None, 'result_double': None}] Qualite : 0.046725085590333386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20312714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20312714_07-02-2025_06_23_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20312714 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_P20312714_07-02-2025_06_23_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20312716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20312717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20312718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20312719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20312720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20312721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20312722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20312723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20312724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20312725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20312726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20312727, 'pht': 3726}}" where mtr_portfolio_id = 20312714 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20312714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780237, 0.046725085590333386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20312714_07-02-2025_06_23_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20312716, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20312717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20312718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20312719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20312720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20312721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20312722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20312723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20312724, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20312725, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20312726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20312727, '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 = 20316836 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': 2572559, 'mtr_portfolio_id': 20316836, 'created_at': datetime.datetime(2025, 2, 10, 17, 5, 28), 'result': '0.033037071423834455', 'result_long': None, 'result_double': None}] Qualite : 0.033037071423834455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316836 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316836_10-02-2025_17_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316836 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_P20316836_10-02-2025_17_05_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316911, 'pht': 3726}}" where mtr_portfolio_id = 20316836 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316836 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780238, 0.033037071423834455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316836_10-02-2025_17_05_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316911, '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 = 20316837 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': 2572560, 'mtr_portfolio_id': 20316837, 'created_at': datetime.datetime(2025, 2, 10, 17, 2, 28), 'result': '0.042835248519206476', 'result_long': None, 'result_double': None}] Qualite : 0.042835248519206476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316837_10-02-2025_17_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316837 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_P20316837_10-02-2025_17_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316935, 'pht': 3726}}" where mtr_portfolio_id = 20316837 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780239, 0.042835248519206476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316837_10-02-2025_17_02_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316927, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316933, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316935, '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 = 20316838 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': 2572561, 'mtr_portfolio_id': 20316838, 'created_at': datetime.datetime(2025, 2, 10, 17, 2), 'result': '0.04006118278959883', 'result_long': None, 'result_double': None}] Qualite : 0.04006118278959883 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316838_10-02-2025_17_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316838 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_P20316838_10-02-2025_17_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316959, 'pht': 3726}}" where mtr_portfolio_id = 20316838 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780240, 0.04006118278959883, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316838_10-02-2025_17_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316959, '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 = 20316839 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': 2572562, 'mtr_portfolio_id': 20316839, 'created_at': datetime.datetime(2025, 2, 10, 17, 1, 28), 'result': '0.03515557965099965', 'result_long': None, 'result_double': None}] Qualite : 0.03515557965099965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20316839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316839_10-02-2025_17_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20316839 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_P20316839_10-02-2025_17_01_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316851, 'pht': 3726}}" where mtr_portfolio_id = 20316839 and dashboard_run_id = 1598105 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=20316839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780241, 0.03515557965099965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20316839_10-02-2025_17_01_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20316840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20316841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20316842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20316843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20316844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20316845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20316846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20316847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20316848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20316849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20316850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20316851, '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 (20316824,20316825,20316826,20316827,20278854,20278856,20279015,20279159,20279384,20280224,20281066,20281877,20282516,20283028,20283606,20284556,20285219,20286053,20286533,20286862,20287423,20288163,20288603,20289032,20289745,20290351,20290772,20291438,20292165,20292813,20293389,20293740,20294672,20316828,20316829,20316830,20316831,20316832,20316833,20316834,20316835,20299387,20299216,20298776,20298550,20299457,20300876,20301677,20302042,20302815,20303438,20303638,20304311,20305090,20305947,20306665,20307225,20308646,20309020,20309611,20310329,20311140,20312031,20312714,20316836,20316837,20316838,20316839) result : ((1335076055,), (1335084306,), (1335084309,), (1335084367,), (1335084370,), (1335084389,), (1335084409,), (1335084428,), (1335084436,), (1335084603,), (1335084607,), (1335084680,), (1335084768,), (1335084941,), (1335085076,), (1335085551,), (1335085689,), (1335085752,), (1335085828,), (1335085840,), (1335085848,), (1335085951,), (1335085954,), (1335086003,), (1335086007,), (1335086073,), (1335086079,), (1335086117,), (1335086118,), (1335086247,), (1335086263,), (1335086275,), (1335086281,), (1335092886,), (1335093029,), (1335093033,), (1335093035,), (1335093038,), (1335093041,), (1335093042,), (1335093044,), (1335093063,), (1335093068,), (1335093071,), (1335093072,), (1335093073,), (1335093077,), (1335093078,), (1335093080,), (1335093976,), (1335093978,), (1335093980,), (1335093981,), (1335093982,), (1335093983,), (1335094045,), (1335094050,), (1335094055,), (1335094057,), (1335094058,), (1335094088,), (1335094102,), (1335094212,), (1335094785,), (1335094872,), (1335094888,), (1335094916,), (1335094917,), (1335094919,), (1335094943,), (1335094954,), (1335094958,), (1335094962,), (1335094973,), (1335086494,), (1335086561,), (1335086565,), (1335086613,), (1335086615,), (1335086708,), (1335087281,), (1335087336,), (1335087366,), (1335087368,), (1335087372,), (1335087373,), (1335087632,), (1335087640,), (1335087648,), (1335087730,), (1335087764,), (1335087780,), (1335087986,), (1335088011,), (1335088012,), (1335088015,), (1335088018,), (1335088021,), (1335092387,), (1335092388,), (1335092389,), (1335092390,), (1335092397,), (1335092456,), (1335092559,), (1335092571,), (1335092705,), (1335092712,), (1335092725,), (1335092748,), (1335092768,), (1335092772,), (1335092790,), (1335092795,), (1335092796,), (1335092797,), (1335092800,), (1335092803,), (1335092804,), (1335092819,), (1335092822,), (1335092823,), (1335092824,), (1335092829,), (1335092834,), (1335092835,), (1335092849,), (1335092851,), (1335092853,), (1335092857,), (1335092858,), (1335092859,), (1335092860,), (1335092867,), (1335077989,), (1335082355,), (1335088092,), (1335088099,), (1335088140,), (1335088156,), (1335088256,), (1335088340,), (1335088375,), (1335088378,), (1335088380,), (1335088396,), (1335088398,), (1335088399,), (1335088401,), (1335088404,), (1335088408,), (1335088416,), (1335088426,), (1335088434,), (1335088450,), (1335088451,), (1335088456,), (1335088459,), (1335088462,), (1335088466,), (1335089740,), (1335089757,), (1335089761,), (1335089784,), (1335089827,), (1335089829,), (1335090048,), (1335090049,), (1335090609,), (1335090717,), (1335090921,), (1335090923,), (1335090925,), (1335090926,), (1335090927,), (1335090928,), (1335090953,), (1335091069,), (1335091071,), (1335091152,), (1335091317,), (1335091452,), (1335091520,), (1335091760,), (1335091762,), (1335091769,), (1335091771,), (1335091808,), (1335091810,), (1335091811,), (1335091816,), (1335092376,), (1335088485,), (1335088486,), (1335088489,), (1335088490,), (1335088493,), (1335088494,), (1335088497,), (1335088498,), (1335088501,), (1335088502,), (1335088505,), (1335088506,), (1335088512,), (1335088513,), (1335088514,), (1335088515,), (1335088518,), (1335088519,), (1335088532,), (1335088534,), (1335088535,), (1335088541,), (1335088542,), (1335088543,), (1335088551,), (1335088598,), (1335088790,), (1335088797,), (1335088839,), (1335088850,), (1335088856,), (1335088887,), (1335088982,), (1335088993,), (1335088996,), (1335088998,), (1335088999,), (1335089000,), (1335089001,), (1335089009,), (1335089013,), (1335089016,), (1335089021,), (1335089023,), (1335089024,), (1335089025,), (1335089026,), (1335089030,), (1335089071,), (1335089072,), (1335089074,), (1335089075,), (1335089091,), (1335089093,), (1335089095,), (1335089097,), (1335089098,), (1335089099,), (1335089123,), (1335089135,), (1335089137,), (1335089154,), (1335089159,), (1335089167,), (1335089169,), (1335089583,), (1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,), (1335092545,), (1335092542,), (1335092543,), (1335092544,), (1335092773,), (1335092775,), (1335092781,), (1335092784,), (1335092787,), (1335092806,), (1335092808,), (1335092811,), (1335092814,), (1335092817,), (1335092841,), (1335092843,), (1335092846,), (1335092909,), (1335092910,), (1335092913,), (1335092914,), (1335092917,), (1335092918,), (1335092921,), (1335092922,), (1335092925,), (1335092926,), (1335092928,), (1335092930,), (1335092983,), (1335093016,), (1335093019,), (1335093022,), (1335093026,), (1335093048,), (1335093050,), (1335093053,), (1335093055,), (1335093090,), (1335093091,), (1335093093,), (1335093095,), (1335093097,), (1335093099,), (1335093104,), (1335093105,), (1335093124,), (1335093252,), (1335093409,), (1335093559,), (1335094014,), (1335094024,), (1335094032,), (1335094041,), (1335094521,), (1335094523,), (1335094527,), (1335094574,), (1335094626,), (1335094666,), (1335094975,), (1335094976,), (1335095031,), (1335095153,), (1335095400,), (1335095403,), (1335095405,), (1335095455,), (1335095457,), (1335095459,), (1335095500,), (1335095485,), (1335095488,), (1335095490,), (1335095494,), (1335095756,), (1335095759,), (1335095761,), (1335095763,), (1335095765,), (1335095770,), (1335095790,), (1335095792,), (1335095795,), (1335095834,), (1335095835,), (1335095841,), (1335095842,), (1335095844,), (1335095845,), (1335095846,), (1335095847,), (1335095848,), (1335095849,), (1335095853,), (1335095854,), (1335095855,), (1335095856,), (1335095967,), (1335096124,), (1335096529,), (1335096555,), (1335096584,), (1335096660,), (1335096680,), (1335096721,), (1335097067,), (1335097069,), (1335097072,), (1335097441,), (1335097443,), (1335097444,), (1335097445,), (1335097446,), (1335097447,), (1335097448,), (1335097449,), (1335097450,), (1335097453,), (1335097455,), (1335097488,), (1335097501,), (1335097507,), (1335097509,), (1335097510,), (1335097624,), (1335097653,), (1335097664,), (1335097678,), (1335097679,), (1335097683,), (1335097696,), (1335097698,), (1335097700,), (1335097702,), (1335097727,), (1335097737,), (1335097739,), (1335097744,), (1335097748,), (1335097750,), (1335097770,), (1335097771,), (1335097777,), (1335097779,), (1335097785,), (1335097786,), (1335097788,), (1335097790,), (1335097797,), (1335097808,), (1335097814,), (1335097815,), (1335097936,), (1335097833,), (1335097834,), (1335097846,), (1335097901,), (1335098012,), (1335098015,), (1335098017,), (1335098019,), (1335098025,), (1335098035,), (1335098036,), (1335098096,), (1335098156,), (1335098161,), (1335098164,), (1335098196,), (1335098327,), (1335098460,), (1335098860,), (1335098890,), (1335098908,), (1335098933,), (1335098942,), (1335098943,), (1335098944,), (1335098946,), (1335098948,), (1335098950,), (1335098993,), (1335099019,), (1335099081,), (1335099143,), (1335099209,), (1335099274,), (1335099762,), (1335099789,), (1335099796,), (1335099801,), (1335099968,), (1335099969,), (1335099970,), (1335099972,), (1335099976,), (1335099983,), (1335100003,), (1335100005,), (1335100007,), (1335100010,), (1335100032,), (1335100095,), (1335100130,), (1335100151,), (1335100161,), (1335100179,), (1335100220,), (1335100222,), (1335100224,), (1335100226,), (1335100228,), (1335100230,), (1335100233,), (1335100234,), (1335100295,), (1335100311,), (1335100313,), (1335100362,), (1335100372,), (1335100378,), (1335100457,), (1335100459,), (1335100461,), (1335100490,), (1335100619,), (1335100624,), (1335100660,), (1335100664,), (1335100666,), (1335100699,), (1335100683,), (1335100684,), (1335100686,), (1335100689,), (1335100696,), (1335100933,), (1335100951,), (1335100984,), (1335100988,), (1335101019,), (1335101020,), (1335101031,), (1335101033,), (1335101034,), (1335101035,), (1335101036,), (1335101037,), (1335101038,), (1335101039,), (1335101056,), (1335101063,), (1335101068,), (1335101069,), (1335101070,), (1335101076,), (1335101081,), (1335101083,), (1335101087,), (1335101121,), (1335101159,), (1335101160,), (1335101163,), (1335101166,), (1335101414,), (1335101416,), (1335101466,), (1335101487,), (1335101489,), (1335101523,), (1335101594,), (1335101605,), (1335101613,), (1335101615,), (1335102390,), (1335102392,), (1335102397,), (1335102402,), (1335102404,), (1335102405,), (1335102823,), (1335102835,), (1335102836,), (1335102837,), (1335103094,), (1335103101,), (1335103116,), (1335103260,), (1335103269,), (1335103293,), (1335103322,), (1335103414,), (1335103488,), (1335103545,), (1335103547,), (1335103572,), (1335103575,), (1335103579,), (1335103582,), (1335103585,), (1335103588,), (1335103602,), (1335103605,), (1335103607,), (1335103956,), (1335103958,), (1335103986,), (1335104011,), (1335104031,), (1335104260,), (1335104081,), (1335104090,), (1335104091,), (1335104166,), (1335104436,), (1335104437,), (1335104438,), (1335104509,), (1335104571,), (1335104572,), (1335104574,), (1335104576,), (1335104595,), (1335104597,), (1335104601,), (1335104605,), (1335104612,), (1335104646,), (1335104648,), (1335104653,), (1335104655,), (1335104692,), (1335104693,), (1335104695,), (1335104697,), (1335104699,), (1335104724,), (1335104725,), (1335104728,), (1335104730,), (1335104731,), (1335104733,), (1335104734,), (1335104736,), (1335104737,), (1335104738,), (1335104739,), (1335104740,), (1335104745,), (1335104773,), (1335104844,), (1335105073,), (1335105079,), (1335105083,), (1335105107,), (1335105157,), (1335105158,), (1335105264,), (1335105267,), (1335105269,), (1335105271,), (1335105273,), (1335105377,), (1335105379,), (1335105400,), (1335105507,), (1335105516,), (1335105524,), (1335105530,), (1335105534,), (1335105542,), (1335105588,), (1335105579,), (1335105581,), (1335105584,), (1335105585,), (1335105667,), (1335105818,), (1335105912,), (1335106065,), (1335106235,), (1335106303,), (1335106487,), (1335106652,), (1335106667,), (1335106829,), (1335106832,), (1335106834,), (1335106836,), (1335106840,), (1335106942,), (1335106944,), (1335106946,), (1335106947,), (1335106950,), (1335106968,), (1335106972,), (1335106975,), (1335106983,), (1335107043,), (1335107045,), (1335107047,), (1335107050,), (1335107053,), (1335107056,), (1335107155,), (1335107158,), (1335107160,), (1335107162,), (1335107601,), (1335107603,), (1335107605,), (1335107662,), (1335107723,), (1335107906,), (1335107953,), (1335108172,), (1335108692,), (1335108854,), (1335109127,), (1335109121,), (1335109123,), (1335109125,), (1335109346,), (1335109386,), (1335109388,), (1335109438,), (1335109440,), (1335109442,), (1335109444,), (1335109447,), (1335109449,), (1335110066,), (1335110068,), (1335110070,), (1335110072,), (1335110075,), (1335110077,), (1335110283,), (1335110327,), (1335110329,), (1335110331,), (1335110333,), (1335110335,), (1335110362,), (1335110369,), (1335110422,), (1335110425,), (1335110682,), (1335110745,), (1335110764,), (1335110801,), (1335110842,), (1335110998,), (1335111010,), (1335111013,), (1335111020,), (1335111043,), (1335111046,), (1335111049,), (1335111053,), (1335111055,), (1335111088,), (1335111091,), (1335111092,), (1335111095,), (1335111098,), (1335111100,), (1335111708,), (1335111777,), (1335111849,), (1335111906,), (1335112055,), (1335112091,), (1335112135,), (1335112149,), (1335112152,), (1335112156,), (1335112270,), (1335112272,), (1335112278,), (1335112665,), (1335112670,), (1335112672,), (1335112686,), (1335112690,), (1335112737,), (1335112728,), (1335112731,), (1335112732,), (1335112734,), (1335112924,), (1335112968,), (1335112970,), (1335112987,), (1335112989,), (1335113027,), (1335113048,), (1335113049,), (1335113050,), (1335113051,), (1335113077,), (1335113079,), (1335113081,), (1335113083,), (1335113104,), (1335113106,), (1335113109,), (1335113114,), (1335113121,), (1335113143,), (1335113147,), (1335113150,), (1335113178,), (1335113180,), (1335113181,), (1335113183,), (1335113186,), (1335113189,), (1335113228,), (1335113230,), (1335113232,), (1335113253,), (1335113273,), (1335113279,), (1335113283,), (1335113285,), (1335113289,), (1335113372,), (1335113374,), (1335113421,), (1335113423,), (1335113425,), (1335113427,), (1335113430,), (1335118026,), (1335118609,), (1335118636,), (1335118663,), (1335118821,), (1335119171,), (1335119174,), (1335119176,), (1335119178,), (1335119197,), (1335119200,), (1335119203,), (1335119206,), (1335119210,), (1335119216,), (1335119230,), (1335119232,), (1335119234,), (1335119273,), (1335119406,), (1335120568,), (1335120637,), (1335120699,), (1335120765,), (1335120825,), (1335121135,), (1335121251,), (1335121307,), (1335121385,), (1335121476,), (1335121496,), (1335121639,), (1335121676,), (1335121725,), (1335121778,), (1335121949,), (1335121952,), (1335121955,), (1335121988,), (1335122003,), (1335122127,), (1335122175,), (1335122529,), (1335122526,), (1335122790,), (1335122793,), (1335122796,), (1335122851,), (1335122862,), (1335122965,), (1335122970,), (1335122972,), (1335122974,), (1335122977,), (1335122994,), (1335123001,), (1335123106,), (1335123130,), (1335123150,), (1335123151,), (1335123154,), (1335123157,), (1335123171,), (1335123173,), (1335123175,), (1335123191,), (1335123194,), (1335123197,), (1335123331,), (1335123360,), (1335123363,), (1335123364,), (1335123603,), (1335123605,), (1335123607,), (1335123609,), (1335123692,), (1335123695,), (1335123697,), (1335123699,), (1335123719,), (1335123723,), (1335123755,), (1335123821,), (1335123828,), (1335123830,), (1335123857,), (1335123861,), (1335123868,), (1335123872,), (1335123874,), (1335123877,), (1335123911,), (1335123917,), (1335123919,), (1335123921,), (1335123939,), (1335123941,), (1335123943,), (1335123945,), (1335123949,), (1335123951,), (1335123963,), (1335123965,), (1335123967,), (1335123981,), (1335123996,), (1335123999,), (1335124124,), (1335124126,), (1335124128,), (1335124130,), (1335124226,), (1335124206,), (1335124208,), (1335124210,), (1335124213,), (1335124215,), (1335124273,), (1335124280,), (1335124287,), (1335124290,), (1335124453,), (1335124455,), (1335124456,), (1335124457,), (1335124463,), (1335124465,), (1335124768,), (1335124769,), (1335124774,), (1335124792,), (1335124806,), (1335124808,), (1335125183,), (1335125188,), (1335125300,), (1335125306,), (1335125318,), (1335125333,), (1335125335,), (1335125385,), (1335125386,), (1335125387,), (1335125392,), (1335125396,), (1335125479,), (1335125480,), (1335125481,), (1335125482,), (1335125483,), (1335125501,), (1335125574,), (1335125575,), (1335125576,), (1335125577,), (1335125579,), (1335125738,), (1335125787,), (1335125829,), (1335125830,), (1335125930,), (1335126182,), (1335126184,), (1335126185,), (1335126186,), (1335126188,), (1335126564,), (1335126595,), (1335126651,), (1335127316,), (1335127318,), (1335127323,), (1335127332,), (1335127339,), (1335127369,), (1335127370,), (1335127371,), (1335127380,), (1335127447,), (1335127490,), (1335127802,), (1335127803,), (1335127811,), (1335127822,), (1335127957,), (1335127947,), (1335127951,), (1335127955,), (1335128121,), (1335128138,), (1335128214,), (1335128253,), (1335128280,), (1335128464,), (1335128466,), (1335128485,), (1335128900,), (1335128972,), (1335129036,), (1335129097,), (1335129174,), (1335129239,), (1335129596,), (1335129647,), (1335129648,), (1335129664,), (1335129697,), (1335129772,), (1335130226,), (1335130233,), (1335130270,), (1335130510,), (1335130537,), (1335130555,), (1335130568,), (1335130629,), (1335130696,), (1335130748,), (1335130749,), (1335130750,), (1335130751,), (1335130794,), (1335130795,), (1335130796,), (1335130797,), (1335130798,), (1335130800,), (1335130848,), (1335130850,), (1335130852,), (1335130855,), (1335130858,), (1335130974,), (1335130976,), (1335130978,), (1335131109,), (1335131112,), (1335131116,), (1335131124,), (1335131130,), (1335132202,), (1335132206,), (1335132226,), (1335132379,), (1335132367,), (1335132369,), (1335132372,), (1335132375,), (1335132393,), (1335132396,), (1335132398,), (1335132412,), (1335132416,), (1335132930,), (1335132931,), (1335132933,), (1335132935,), (1335133371,), (1335133399,), (1335133407,), (1335133480,), (1335133482,), (1335133484,), (1335134238,), (1335134240,), (1335134243,), (1335134246,), (1335134255,), (1335134293,), (1335134295,), (1335134297,), (1335134299,), (1335134302,), (1335134305,), (1335134358,), (1335134360,), (1335134364,), (1335134479,), (1335134482,), (1335134487,), (1335134490,), (1335134494,), (1335134496,), (1335134522,), (1335134508,), (1335134510,), (1335134512,), (1335134514,), (1335134518,), (1335134532,), (1335134534,), (1335134536,), (1335134538,), (1335134556,), (1335134558,), (1335134560,), (1335134562,), (1335134568,), (1335134573,), (1335134588,), (1335134590,), (1335134592,), (1335134594,), (1335134630,), (1335134632,), (1335134639,), (1335134641,), (1335134647,), (1335134660,), (1335134718,), (1335134745,), (1335134755,), (1335134767,), (1335134769,), (1335134793,), (1335134795,), (1335134797,), (1335134836,), (1335134838,), (1335134840,), (1335134853,), (1335134856,), (1335134858,), (1335134886,), (1335134889,), (1335134917,), (1335134989,), (1335134991,), (1335135051,), (1335135053,), (1335135055,), (1335135085,), (1335135090,), (1335135167,), (1335135180,), (1335135182,), (1335135184,), (1335135186,), (1335135188,), (1335135191,), (1335135202,), (1335135204,), (1335135206,), (1335135209,), (1335135242,), (1335135243,), (1335135248,), (1335135250,), (1335135253,), (1335135255,), (1335135294,), (1335135298,), (1335135305,), (1335135310,), (1335135347,), (1335135352,), (1335135355,), (1335135357,), (1335135363,), (1335135368,), (1335135387,), (1335135380,), (1335135383,), (1335135385,), (1335135905,), (1335135970,), (1335135976,), (1335135985,), (1335135988,), (1335135991,), (1335136212,), (1335136214,), (1335136241,), (1335136245,), (1335136248,), (1335136620,), (1335136622,), (1335136624,), (1335136626,), (1335136629,), (1335136631,), (1335136730,), (1335136731,), (1335136733,), (1335136749,), (1335136797,), (1335136799,), (1335136801,), (1335136816,), (1335136818,), (1335136874,), (1335136880,), (1335136886,), (1335136905,), (1335136907,), (1335136910,), (1335136964,), (1335136966,), (1335138096,), (1335138162,), (1335138164,), (1335138166,), (1335138168,), (1335138171,), (1335138174,), (1335138252,), (1335138254,), (1335138256,), (1335138265,), (1335138272,), (1335138292,), (1335138296,), (1335138298,), (1335138300,), (1335138304,), (1335138334,), (1335138319,), (1335138321,), (1335138327,), (1335138415,), (1335138421,), (1335138434,), (1335138444,), (1335139187,), (1335139252,), (1335139286,), (1335139327,), (1335139374,), (1335140005,), (1335140067,), (1335140088,), (1335140092,), (1335140094,), (1335140231,), (1335140237,), (1335140661,), (1335140677,), (1335140681,), (1335140683,), (1335140685,), (1335140688,), (1335140853,), (1335140855,), (1335140857,), (1335140859,), (1335140862,), (1335140865,), (1335140891,), (1335140897,), (1335140901,), (1335141333,), (1335141338,), (1335141340,), (1335141345,), (1335141353,), (1335141362,), (1335141387,), (1335141390,), (1335141394,), (1335141400,), (1335141439,), (1335141451,), (1335141453,), (1335141456,), (1335141458,), (1335141461,), (1335141471,), (1335141557,), (1335141559,), (1335141561,), (1335141564,), (1335141567,), (1335141599,), (1335141616,), (1335141618,), (1335141754,), (1335141759,), (1335141764,), (1335141841,), (1335141825,), (1335141830,), (1335141834,), (1335141838,), (1335141861,), (1335141863,), (1335141868,), (1335141903,), (1335141912,), (1335141915,), (1335141917,), (1335141919,), (1335142219,), (1335142221,), (1335142223,), (1335142224,), (1335142277,), (1335142301,), (1335142836,), (1335142838,), (1335142848,), (1335143004,), (1335143017,), (1335143020,), (1335143033,), (1335143096,), (1335143127,), (1335143150,), (1335143152,), (1335143216,), (1335143217,), (1335143219,), (1335144605,), (1335144611,), (1335144621,), (1335144626,), (1335144633,), (1335144639,), (1335144651,), (1335144653,), (1335144655,), (1335144657,), (1335144661,), (1335144670,), (1335144683,), (1335144722,), (1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,), (1335145103,), (1335145105,), (1335145108,), (1335145110,), (1335145111,), (1335145113,), (1335145153,), (1335145190,), (1335145229,), (1335145289,), (1335145356,), (1335145384,), (1335145787,), (1335145809,), (1335145814,), (1335146032,), (1335146042,), (1335146071,), (1335146092,), (1335146095,), (1335146126,), (1335146128,), (1335146132,), (1335146136,), (1335146140,), (1335146143,), (1335146158,), (1335146161,), (1335146165,), (1335146225,), (1335146230,), (1335146233,), (1335146236,), (1335146251,), (1335146338,), (1335146290,), (1335146293,), (1335146307,), (1335146406,), (1335146413,), (1335146417,), (1335146459,), (1335146462,), (1335146465,), (1335146472,), (1335146474,), (1335146480,), (1335146504,), (1335146507,), (1335146512,), (1335146525,), (1335146538,), (1335146563,), (1335146565,), (1335146626,), (1335146630,), (1335146634,), (1335146690,), (1335146693,), (1335146697,), (1335146701,), (1335146704,), (1335146708,), (1335146730,), (1335146738,), (1335146742,), (1335146748,), (1335146751,), (1335146997,), (1335147107,), (1335147130,), (1335147173,), (1335147737,), (1335147740,), (1335147745,), (1335147772,), (1335147957,), (1335148066,), (1335148183,), (1335148197,), (1335148202,), (1335148345,), (1335148349,), (1335148355,), (1335148359,), (1335148387,), (1335148450,), (1335148454,), (1335148457,), (1335148517,), (1335148520,), (1335148530,), (1335148558,), (1335148561,), (1335148570,), (1335148600,), (1335148602,), (1335148606,), (1335148612,), (1335149542,), (1335149118,), (1335149188,), (1335149266,), (1335149316,), (1335149428,), (1335150047,), (1335150088,), (1335150125,), (1335150202,), (1335150235,), (1335150433,), (1335150481,), (1335150837,), (1335150845,), (1335151390,), (1335151459,), (1335151545,), (1335151548,), (1335151551,), (1335151577,), (1335151624,), (1335151690,), (1335151750,), (1335151822,), (1335151831,), (1335151835,), (1335151854,), (1335151856,), (1335151863,), (1335151879,), (1335152184,), (1335152185,), (1335152189,), (1335152191,), (1335152195,), (1335152199,), (1335152240,), (1335152243,), (1335152245,), (1335152302,), (1335152305,), (1335152308,), (1335152310,), (1335152337,), (1335152341,), (1335152353,), (1335152360,), (1335152504,), (1335152507,), (1335152510,), (1335152544,), (1335152547,), (1335152550,), (1335152553,), (1335152555,), (1335152881,), (1335152886,), (1335152888,), (1335152903,), (1335152915,), (1335153058,), (1335153139,), (1335153174,), (1335153231,), (1335153842,), (1335153844,), (1335153874,), (1335153951,), (1335154046,), (1335154051,), (1335154059,), (1335154065,), (1335154070,), (1335154074,), (1335154118,), (1335154125,), (1335154130,), (1335154175,), (1335154178,), (1335154180,), (1335154203,), (1335154224,), (1335154251,), (1335154596,), (1335154598,), (1335154624,), (1335154657,), (1335154684,), (1335154686,), (1335154689,), (1335154718,), (1335154727,), (1335154745,), (1335154748,), (1335154756,), (1335154764,), (1335154996,), (1335155010,), (1335155015,), (1335155025,), (1335155034,), (1335155040,), (1335155193,), (1335155198,), (1335155231,), (1335155343,), (1335155345,), (1335155349,), (1335155353,), (1335155357,), (1335155362,), (1335155402,), (1335155406,), (1335155409,), (1335155437,), (1335155441,), (1335155445,), (1335155448,), (1335155526,), (1335155512,), (1335155514,), (1335155519,), (1335155522,), (1335155543,), (1335155546,), (1335155550,), (1335155554,), (1335155558,), (1335155571,), (1335155599,), (1335155601,), (1335155670,), (1335155672,), (1335155674,), (1335155676,), (1335155678,), (1335155731,), (1335155734,), (1335155738,), (1335155742,), (1335155771,), (1335155772,), (1335155774,), (1335155776,), (1335155780,), (1335155815,), (1335155820,), (1335155824,), (1335155828,), (1335155832,), (1335155862,), (1335155866,), (1335156181,), (1335156266,), (1335156336,), (1335156413,), (1335156485,), (1335157050,), (1335157092,), (1335157159,), (1335157172,), (1335157200,), (1335157209,), (1335157211,), (1335157215,), (1335157220,), (1335157231,), (1335157693,), (1335157749,), (1335157780,), (1335157829,), (1335157893,), (1335158110,), (1335158112,), (1335158158,), (1335158162,), (1335158173,), (1335158471,), (1335158474,), (1335158478,), (1335158483,), (1335158487,), (1335158491,), (1335158521,), (1335158527,), (1335158531,), (1335158536,), (1335158545,), (1335158584,), (1335158572,), (1335158575,), (1335158578,), (1335158581,), (1335158621,), (1335158624,), (1335158628,), (1335158631,), (1335158829,), (1335158888,), (1335158956,), (1335159014,), (1335159097,), (1335159175,), (1335159716,), (1335159781,), (1335159825,), (1335159889,), (1335160032,), (1335160096,), (1335160166,), (1335160217,), (1335160237,), (1335160288,), (1335160365,), (1335160390,), (1335160450,), (1335160481,), (1335160666,), (1335160707,), (1335160713,), (1335160725,), (1335160749,), (1335161125,), (1335161132,), (1335161151,), (1335161158,), (1335161168,), (1335161969,), (1335162031,), (1335162035,), (1335162092,), (1335162168,), (1335162302,), (1335162315,), (1335162333,), (1335162341,), (1335162438,), (1335162441,), (1335162450,), (1335162460,), (1335162471,), (1335162477,), (1335162527,), (1335162534,), (1335162537,), (1335162585,), (1335162588,), (1335162639,), (1335162646,), (1335162652,), (1335162656,), (1335162680,), (1335162681,), (1335162684,), (1335162691,), (1335162726,), (1335162730,), (1335162732,), (1335162735,), (1335162787,), (1335162780,), (1335162782,), (1335162784,), (1335162847,), (1335162953,), (1335162956,), (1335162999,), (1335163000,), (1335163002,), (1335163009,), (1335163059,), (1335163061,), (1335163064,), (1335163066,), (1335163122,), (1335163125,), (1335163127,), (1335163129,), (1335163132,), (1335163135,), (1335163163,), (1335163165,), (1335163171,), (1335163174,), (1335163176,), (1335163179,), (1335163330,), (1335163449,), (1335163460,), (1335163463,), (1335163514,), (1335163532,), (1335163573,), (1335163577,), (1335163617,), (1335163627,), (1335163696,), (1335163733,), (1335163918,), (1335164031,), (1335164277,), (1335164449,), (1335164765,), (1335164767,), (1335164770,), (1335165118,), (1335165120,), (1335165124,), (1335165169,), (1335165189,), (1335165287,), (1335165762,), (1335165767,), (1335165771,), (1335165779,), (1335165785,), (1335165804,), (1335165805,), (1335165808,), (1335165809,), (1335165812,), (1335165813,), (1335165818,), (1335165820,), (1335165822,), (1335165823,), (1335165846,), (1335235938,), (1335235942,), (1335235945,), (1335235947,), (1335235953,), (1335235956,), (1335235979,), (1335235985,), (1335235988,), (1335235991,), (1335235996,), (1335236002,), (1335236016,), (1335236018,), (1335236023,), (1335236028,), (1335236032,), (1335236035,), (1335236053,), (1335236057,), (1335236063,), (1335236068,), (1335236075,), (1335236081,), (1335236091,), (1335236098,), (1335236139,), (1335236326,), (1335236386,), (1335236398,), (1335236426,), (1335236500,), (1335236504,), (1335236509,), (1335236514,), (1335236569,), (1335236575,), (1335236585,), (1335236588,), (1335236681,), (1335236683,), (1335236689,), (1335236690,), (1335236695,), (1335236697,), (1335236734,), (1335236738,), (1335236744,), (1335236749,), (1335236754,), (1335236835,), (1335236845,), (1335236851,), (1335236868,), (1335237564,), (1335237567,), (1335237581,), (1335237599,), (1335237760,), (1335236200,), (1335236248,), (1335236292,), (1335236432,), (1335236435,), (1335236521,), (1335236527,), (1335236539,), (1335236542,), (1335236545,), (1335236547,), (1335236549,), (1335236554,), (1335236591,), (1335236595,), (1335236635,), (1335236640,), (1335236653,), (1335236659,), (1335236662,), (1335236665,), (1335236701,), (1335236708,), (1335236714,), (1335236721,), (1335236723,), (1335236725,), (1335236774,), (1335236792,), (1335236798,), (1335236805,), (1335236810,), (1335236816,), (1335236820,), (1335236878,), (1335236931,), (1335237132,), (1335237134,), (1335237139,), (1335237144,), (1335237177,), (1335237250,), (1335237318,), (1335237319,), (1335237323,), (1335237324,), (1335237331,), (1335237332,), (1335237410,), (1335237413,), (1335237423,), (1335237428,), (1335237430,), (1335237435,), (1335237445,), (1335237448,), (1335237451,), (1335237454,), (1335237458,), (1335237464,), (1335237497,), (1335237501,), (1335237508,), (1335237514,), (1335237518,), (1335237521,), (1335237609,), (1335237620,), (1335237701,), (1335237720,), (1335237731,), (1335237737,), (1335237740,), (1335237742,), (1335237771,), (1335237830,), (1335237933,), (1335237937,), (1335237965,), (1335237972,), (1335238017,), (1335238023,), (1335238041,), (1335238044,), (1335238049,), (1335238055,), (1335238061,), (1335238094,), (1335238103,), (1335238105,), (1335238107,), (1335238110,), (1335238112,), (1335238149,), (1335238151,), (1335238154,), (1335238155,), (1335238184,), (1335238187,), (1335238204,), (1335238212,), (1335238220,), (1335238230,), (1335238238,), (1335238242,), (1335238258,), (1335238263,), (1335238269,), (1335238304,), (1335238310,), (1335238313,), (1335238328,), (1335238330,), (1335237751,), (1335237753,), (1335237756,), (1335238040,), (1335238123,), (1335238125,), (1335238129,), (1335238131,), (1335238135,), (1335238137,), (1335238143,), (1335238144,), (1335238167,), (1335238170,), (1335238176,), (1335238182,), (1335238249,), (1335238251,), (1335238255,), (1335238343,), (1335238623,), (1335238625,), (1335238630,), (1335238632,), (1335238638,), (1335238639,), (1335238647,), (1335238648,), (1335238705,), (1335238715,), (1335238719,), (1335238722,), (1335238726,), (1335238793,), (1335238796,), (1335238814,), (1335238820,), (1335238825,), (1335238830,), (1335239711,), (1335239778,), (1335239798,), (1335239985,), (1335239989,), (1335240058,), (1335240059,), (1335240133,), (1335240134,), (1335240196,), (1335240204,), (1335240273,), (1335240276,), (1335240419,), (1335240422,), (1335240478,), (1335240552,), (1335240826,), (1335240829,), (1335240833,), (1335240839,), (1335240842,), (1335240870,), (1335241279,), (1335241285,), (1335241377,), (1335241378,), (1335241382,), (1335241384,), (1335241386,), (1335241388,), (1335241392,), (1335241394,), (1335241395,), (1335241446,), (1335241575,), (1335247977,), (1335247981,), (1335247985,), (1335248161,), (1335248164,), (1335248169,), (1335248174,), (1335248179,), (1335248224,), (1335248227,), (1335248274,), (1335248276,), (1335248317,), (1335248319,), (1335248321,), (1335248324,), (1335248366,), (1335248370,), (1335248377,), (1335248412,), (1335248450,), (1335248546,), (1335248548,), (1335248550,), (1335248602,), (1335248606,), (1335248610,), (1335248614,), (1335248987,), (1335249121,), (1335249300,), (1335249459,), (1335249509,), (1335249513,), (1335249518,), (1335249523,), (1335249527,), (1335249931,), (1335249934,), (1335249936,), (1335250188,), (1335250191,), (1335250196,), (1335250205,), (1335250243,), (1335250255,), (1335250266,), (1335250308,), (1335250312,), (1335250317,), (1335250321,), (1335250639,), (1335250644,), (1335250655,), (1335250660,), (1335250830,), (1335250802,), (1335250808,), (1335250820,), (1335250886,), (1335250888,), (1335251459,), (1335251530,), (1335252022,), (1335252025,), (1335252028,), (1335252409,), (1335252411,), (1335252413,), (1335252415,), (1335252418,), (1335252453,), (1335252504,), (1335252507,), (1335252510,), (1335252573,), (1335252577,), (1335252588,), (1335252595,), (1335252778,), (1335252788,), (1335252795,), (1335252908,), (1335252912,), (1335252916,), (1335252920,), (1335252955,), (1335252960,), (1335252965,), (1335252970,), (1335253010,), (1335253018,), (1335253026,), (1335253030,), (1335253082,), (1335253072,), (1335253074,), (1335253078,), (1335253217,), (1335253249,), (1335253258,), (1335253275,), (1335253345,), (1335253348,), (1335253351,), (1335253397,), (1335253399,), (1335253401,), (1335253458,), (1335253461,), (1335253465,), (1335253930,), (1335253939,), (1335253943,), (1335253946,), (1335253948,), (1335254408,), (1335254412,), (1335254576,), (1335254581,), (1335254845,), (1335254858,), (1335254863,), (1335254871,), (1335254874,), (1335255009,), (1335255011,), (1335255210,), (1335255212,), (1335255214,), (1335255217,), (1335255283,), (1335255286,), (1335255291,), (1335255295,), (1335255509,), (1335255514,), (1335255518,), (1335255522,), (1335255777,), (1335255783,), (1335255787,), (1335255791,), (1335255827,), (1335255829,), (1335255833,), (1335255890,), (1335255894,), (1335255900,), (1335255973,), (1335255953,), (1335255957,), (1335255961,), (1335255967,), (1335256024,), (1335256027,), (1335256031,), (1335256318,), (1335256339,), (1335256397,), (1335256845,), (1335256864,), (1335257078,), (1335257096,), (1335257104,), (1335257252,), (1335257299,), (1335257309,), (1335257313,), (1335257316,), (1335257353,), (1335257358,), (1335257364,), (1335257369,), (1335257372,), (1335257429,), (1335257514,), (1335257600,), (1335257690,), (1335257777,), (1335257817,), (1335258028,), (1335258034,), (1335258037,), (1335258039,), (1335258322,), (1335258326,), (1335258641,), (1335258680,), (1335258683,), (1335258747,), (1335258917,), (1335258922,), (1335258927,), (1335258934,), (1335258949,), (1335258950,), (1335258952,), (1335258954,), (1335258992,), (1335258984,), (1335258988,), (1335259048,), (1335260965,), (1335261502,), (1335261507,), (1335261899,), (1335261902,), (1335261906,), (1335261910,), (1335261959,), (1335261963,), (1335261978,), (1335261986,), (1335261990,), (1335262078,), (1335262082,), (1335262086,), (1335262119,), (1335262124,), (1335262128,), (1335262220,), (1335262159,), (1335262161,), (1335263182,), (1335263235,), (1335263266,), (1335263270,), (1335263679,), (1335263680,), (1335263797,), (1335264026,), (1335264030,), (1335264032,), (1335264326,), (1335264328,), (1335264331,), (1335264734,), (1335264735,), (1335264737,), (1335264739,), (1335264797,), (1335265062,), (1335265108,), (1335265112,), (1335265115,), (1335265120,), (1335265146,), (1335265149,), (1335265152,), (1335265155,), (1335265157,), (1335265198,), (1335265202,), (1335265207,), (1335265212,), (1335265251,), (1335265255,), (1335265259,), (1335265264,), (1335265268,), (1335265332,), (1335265334,), (1335265340,), (1335265359,), (1335265385,), (1335265476,), (1335265522,), (1335265524,), (1335265527,), (1335265540,), (1335265548,), (1335265555,), (1335266096,), (1335266186,), (1335266259,), (1335266446,), (1335266451,), (1335266455,), (1335266459,), (1335266921,), (1335266688,), (1335266757,), (1335266839,), (1335266911,), (1335267070,), (1335267078,), (1335267080,), (1335267083,), (1335267423,), (1335267663,), (1335267665,), (1335267667,), (1335267668,), (1335267670,), (1335267672,), (1335267696,), (1335267698,), (1335267701,), (1335267706,), (1335267730,), (1335267748,), (1335267779,), (1335267782,), (1335267785,), (1335267788,), (1335267812,), (1335267816,), (1335267821,), (1335267825,), (1335267867,), (1335267871,), (1335267876,), (1335267881,), (1335267884,), (1335267907,), (1335267909,), (1335267913,), (1335268642,), (1335268646,), (1335268651,), (1335268655,), (1335268658,), (1335268841,), (1335269093,), (1335269140,), (1335269144,), (1335269147,), (1335270447,), (1335270536,), (1335270623,), (1335270835,), (1335270845,), (1335270857,), (1335270863,), (1335271280,), (1335271330,), (1335271367,), (1335271383,), (1335271386,), (1335271583,), (1335271544,), (1335271552,), (1335271563,), (1335271902,), (1335271969,), (1335272041,), (1335272088,), (1335272148,), (1335272152,), (1335272166,), (1335272206,), (1335272209,), (1335272213,), (1335272218,), (1335272221,), (1335272253,), (1335272279,), (1335272282,), (1335272286,), (1335272314,), (1335272318,), (1335272326,), (1335272332,), (1335272447,), (1335272530,), (1335272581,), (1335272584,), (1335272587,), (1335272791,), (1335272793,), (1335272796,), (1335272828,), (1335272833,), (1335272840,), (1335272874,), (1335272877,), (1335272887,), (1335272895,), (1335272898,), (1335273576,), (1335273579,), (1335273637,), (1335273748,), (1335274052,), (1335274058,), (1335274061,), (1335274093,), (1335274136,), (1335274140,), (1335274150,), (1335274228,), (1335274232,), (1335274236,), (1335274243,), (1335274250,), (1335274297,), (1335274288,), (1335274290,), (1335274293,), (1335274340,), (1335274344,), (1335274351,), (1335274361,), (1335274385,), (1335274387,), (1335274530,), (1335274535,), (1335274814,), (1335274903,), (1335274993,), (1335275085,), (1335275134,), (1335275876,), (1335276011,), (1335276017,), (1335276023,), (1335276034,), (1335276464,), (1335276540,), (1335276548,), (1335276586,), (1335276804,), (1335276806,), (1335276809,), (1335276811,), (1335276813,), (1335276849,), (1335276852,), (1335276855,), (1335276859,), (1335276890,), (1335276892,), (1335276900,), (1335276903,), (1335276957,), (1335276962,), (1335277024,), (1335277027,), (1335277030,), (1335277072,), (1335277075,), (1335277079,), (1335277083,), (1335277107,), (1335277113,), (1335277119,), (1335277124,), (1335277127,), (1335277148,), (1335277152,), (1335277207,), (1335277210,), (1335277213,), (1335277216,), (1335277218,), (1335277248,), (1335277245,), (1335277281,), (1335277284,), (1335277307,), (1335277403,), (1335277490,), (1335277553,), (1335277927,), (1335277959,), (1335278069,), (1335278072,), (1335278075,), (1335278397,), (1335278413,), (1335278417,), (1335278518,), (1335278521,), (1335278525,), (1335278528,), (1335278576,), (1335278601,), (1335278661,), (1335278664,), (1335278668,), (1335278818,), (1335278948,), (1335278954,), (1335278961,), (1335278965,), (1335279013,), (1335279015,), (1335279018,), (1335279029,), (1335279148,), (1335279151,), (1335279156,), (1335279162,), (1335279166,), (1335279169,), (1335279204,), (1335279207,), (1335279211,), (1335279215,), (1335279217,), (1335279247,), (1335279251,), (1335279256,), (1335279326,), (1335279332,), (1335279336,), (1335279339,), (1335279651,), (1335279701,), (1335279746,), (1335279749,), (1335279751,), (1335279800,), (1335279908,), (1335279911,), (1335279921,), (1335279932,), (1335279939,), (1335279970,), (1335279972,), (1335279975,), (1335280043,), (1335280017,), (1335280021,), (1335280030,), (1335280039,), (1335280041,), (1335280264,), (1335280284,), (1335280292,), (1335280332,), (1335280385,), (1335280387,), (1335280390,), (1335280392,), (1335280426,), (1335280665,), (1335280736,), (1335281104,), (1335281106,), (1335281108,), (1335281111,), (1335281266,), (1335281269,), (1335281273,), (1335281276,), (1335281315,), (1335281319,), (1335281323,), (1335281334,), (1335281419,), (1335281701,), (1335281734,), (1335281737,), (1335281849,), (1335281850,), (1335281854,), (1335281898,), (1335281900,), (1335281903,), (1335281906,), (1335281908,), (1335282005,), (1335282008,), (1335282011,), (1335284911,), (1335286003,), (1335286006,), (1335286013,), (1335287795,), (1335287799,), (1335287804,), (1335287990,), (1335287995,), (1335288007,), (1335288015,), (1335288044,), (1335289624,), (1335290025,), (1335290022,), (1335290233,), (1335290791,), (1335290795,), (1335290802,), (1335290805,), (1335290839,), (1335290844,), (1335290856,), (1335290890,), (1335290894,), (1335290899,), (1335290903,), (1335290929,), (1335290932,), (1335290936,), (1335290938,), (1335290941,), (1335290978,), (1335290999,), (1335291068,), (1335291353,), (1335291372,), (1335291426,), (1335291436,), (1335291444,), (1335291849,), (1335291914,), (1335292005,), (1335292264,), (1335292267,), (1335292271,), (1335292401,), (1335292405,), (1335292408,), (1335292412,), (1335292416,), (1335292675,), (1335292686,), (1335292692,), (1335292700,), (1335292703,), (1335292766,), (1335292774,), (1335292778,), (1335292783,), (1335292786,), (1335292806,), (1335292809,), (1335292840,), (1335292843,), (1335292853,), (1335292864,), (1335292873,), (1335292918,), (1335292900,), (1335292902,), (1335292905,), (1335292955,), (1335292958,), (1335292963,), (1335292974,), (1335293564,), (1335293566,), (1335293606,), (1335294056,), (1335294088,), (1335294093,), (1335294097,), (1335294131,), (1335294132,), (1335294135,), (1335294139,), (1335294196,), (1335294198,), (1335294202,), (1335294421,), (1335294424,), (1335294452,), (1335294453,), (1335294455,), (1335294458,), (1335294570,), (1335294583,), (1335294585,), (1335294587,), (1335294588,), (1335294616,), (1335294618,), (1335294621,), (1335294624,), (1335294626,), (1335294853,), (1335294854,), (1335294856,), (1335294858,), (1335294908,), (1335294911,), (1335294934,), (1335294970,), (1335294977,), (1335294980,), (1335294983,), (1335294987,), (1335294990,), (1335295034,), (1335295036,), (1335295040,), (1335295048,), (1335295263,), (1335295102,), (1335295196,), (1335295232,), (1335295236,), (1335295673,), (1335295675,), (1335295678,), (1335295768,), (1335295770,), (1335295773,), (1335295776,), (1335295780,), (1335295785,), (1335295814,), (1335295816,), (1335295820,), (1335295823,), (1335295826,), (1335295870,), (1335295871,), (1335295875,), (1335295878,), (1335295914,), (1335295916,), (1335295922,), (1335295948,), (1335295950,), (1335296152,), (1335296154,), (1335296160,), (1335296207,), (1335296209,), (1335296222,), (1335296228,), (1335296231,), (1335296291,), (1335296294,), (1335296297,), (1335296302,), (1335296337,), (1335296339,), (1335296409,), (1335296411,), (1335296414,), (1335296427,), (1335296466,), (1335296469,), (1335296471,), (1335296475,), (1335296807,), (1335296809,), (1335296815,), (1335296818,), (1335296831,), (1335296911,), (1335297193,), (1335297196,), (1335297200,), (1335297217,), (1335297223,), (1335299589,), (1335299771,), (1335299772,), (1335299775,), (1335299865,), (1335299868,), (1335299899,), (1335300258,), (1335300260,), (1335300289,), (1335300367,), (1335300368,), (1335300396,), (1335300399,), (1335300402,), (1335300405,), (1335300407,), (1335300495,), (1335300497,), (1335300500,), (1335300530,), (1335300540,), (1335300543,), (1335301388,), (1335301390,), (1335301466,), (1335301480,), (1335301483,), (1335302009,), (1335302012,), (1335302017,), (1335302022,), (1335302024,), (1335302275,), (1335302276,), (1335302278,), (1335302280,), (1335302306,), (1335302308,), (1335302311,), (1335302314,), (1335302367,), (1335302370,), (1335302379,), (1335302383,), (1335302605,), (1335302692,), (1335302694,), (1335302972,), (1335302974,), (1335302976,), (1335302981,), (1335303179,), (1335303182,), (1335303186,), (1335303190,), (1335303208,), (1335303265,), (1335303262,), (1335303528,), (1335303552,), (1335303561,), (1335303595,), (1335303642,), (1335303644,), (1335303647,), (1335303696,), (1335303699,), (1335303703,), (1335303748,), (1335303751,), (1335303754,), (1335303758,), (1335303785,), (1335303791,), (1335303794,), (1335303799,), (1335305725,), (1335305727,), (1335305738,), (1335305740,), (1335305776,), (1335305861,), (1335305944,), (1335306035,), (1335306313,), (1335306316,), (1335306319,), (1335306379,), (1335306447,), (1335306450,), (1335306454,), (1335306511,), (1335306506,), (1335306508,), (1335306572,), (1335306577,), (1335306586,), (1335306933,), (1335307008,), (1335307011,), (1335307017,), (1335307022,), (1335307046,), (1335307051,), (1335307057,), (1335307063,), (1335307068,), (1335307125,), (1335307127,), (1335307130,), (1335307134,), (1335307155,), (1335307231,), (1335307234,), (1335307238,), (1335307243,), (1335307303,), (1335307306,), (1335307310,), (1335307326,), (1335307330,), (1335307336,), (1335307414,), (1335307416,), (1335307418,), (1335307466,), (1335307469,), (1335307505,), (1335307507,), (1335307512,), (1335307609,), (1335307696,), (1335307699,), (1335307733,), (1335307869,), (1335307872,), (1335351073,), (1335076264,), (1335079988,), (1335079991,), (1335080002,), (1335080007,), (1335080033,), (1335080130,), (1335080352,), (1335080398,), (1335080470,), (1335080515,), (1335080563,), (1335080618,), (1335080674,), (1335080675,), (1335080677,), (1335080686,), (1335080691,), (1335080692,), (1335097795,), (1335097796,), (1335097817,), (1335097820,), (1335097822,), (1335097824,), (1335097826,), (1335097827,), (1335097828,), (1335097829,), (1335097950,), (1335098006,), (1335098007,), (1335098008,), (1335098009,), (1335098010,), (1335098011,), (1335098026,), (1335098029,), (1335098030,), (1335098031,), (1335098032,), (1335098033,), (1335098034,), (1335098097,), (1335098099,), (1335098101,), (1335098110,), (1335098112,), (1335098121,), (1335098122,), (1335098123,), (1335098124,), (1335098671,), (1335098672,), (1335098673,), (1335098674,), (1335098677,), (1335098683,), (1335098940,), (1335098941,), (1335098985,), (1335098987,), (1335098989,), (1335098991,), (1335080734,), (1335080767,), (1335080772,), (1335080777,), (1335080797,), (1335080801,), (1335081146,), (1335081214,), (1335081274,), (1335081339,), (1335081397,), (1335081466,), (1335081691,), (1335081761,), (1335081763,), (1335081829,), (1335081833,), (1335081895,), (1335081914,), (1335081967,), (1335081991,), (1335082034,), (1335082055,), (1335082113,), (1335095801,), (1335095807,), (1335095814,), (1335095819,), (1335095822,), (1335095823,), (1335095824,), (1335095825,), (1335095850,), (1335095851,), (1335096355,), (1335096383,), (1335096405,), (1335096412,), (1335096425,), (1335096455,), (1335096877,), (1335096894,), (1335096897,), (1335096925,), (1335096933,), (1335096934,), (1335097075,), (1335097207,), (1335097317,), (1335097332,), (1335097385,), (1335097386,), (1335097410,), (1335097435,), (1335097437,), (1335097457,), (1335097460,), (1335097461,), (1335097462,), (1335097466,), (1335097471,), (1335097475,), (1335097512,), (1335097519,), (1335097520,), (1335097521,), (1335097522,), (1335097523,), (1335097557,), (1335097704,), (1335097707,), (1335097717,), (1335097718,), (1335097719,), (1335097720,), (1335097721,), (1335097722,), (1335097754,), (1335097756,), (1335097757,), (1335097758,), (1335097763,), (1335097766,), (1335097792,), (1335097794,), (1335082479,), (1335082529,), (1335082596,), (1335082666,), (1335082714,), (1335082761,), (1335082823,), (1335082834,), (1335082835,), (1335082865,), (1335082875,), (1335083023,), (1335083142,), (1335083167,), (1335083171,), (1335083226,), (1335083239,), (1335083384,), (1335083386,), (1335083397,), (1335083424,), (1335083427,), (1335083431,), (1335083516,), (1335083519,), (1335083536,), (1335083539,), (1335083542,), (1335083545,), (1335083546,), (1335083549,), (1335083552,), (1335083555,), (1335083558,), (1335084150,), (1335084186,), (1335084189,), (1335084202,), (1335084211,), (1335084220,), (1335084224,), (1335084227,), (1335084230,), (1335084565,), (1335084567,), (1335094974,), (1335095213,), (1335095253,), (1335095368,), (1335095371,), (1335095373,), (1335095376,), (1335095380,), (1335095383,), (1335095409,), (1335095412,), (1335095423,), (1335095463,), (1335095465,), (1335095468,), (1335095553,), (1335095624,), (1335095627,), (1335095658,), (1335095745,), (1335095750,), (1335095752,), (1335095772,), (1335095773,), (1335095774,), (1335095777,), (1335095779,), (1335095783,), (1335095799,), (1335083491,), (1335083570,), (1335083573,), (1335083575,), (1335083628,), (1335083687,), (1335083689,), (1335083755,), (1335083758,), (1335083767,), (1335083809,), (1335083812,), (1335083816,), (1335083823,), (1335083825,), (1335083827,), (1335083828,), (1335083829,), (1335083830,), (1335083841,), (1335083855,), (1335083860,), (1335083863,), (1335083874,), (1335083879,), (1335083880,), (1335083881,), (1335083884,), (1335083886,), (1335083888,), (1335083896,), (1335083900,), (1335083905,), (1335083907,), (1335083909,), (1335083911,), (1335084038,), (1335084042,), (1335084045,), (1335084049,), (1335084054,), (1335084058,), (1335084077,), (1335084079,), (1335084091,), (1335084098,), (1335084104,), (1335084105,), (1335084124,), (1335084130,), (1335084135,), (1335245529,), (1335245531,), (1335245534,), (1335245537,), (1335245570,), (1335245596,), (1335245662,), (1335245851,), (1335245948,), (1335246080,), (1335246291,), (1335245480,), (1335245488,), (1335245490,), (1335245491,), (1335245493,), (1335245495,), (1335245497,), (1335245501,), (1335245503,), (1335245508,), (1335245509,), (1335245514,), (1335245515,), (1335245524,), (1335245525,), (1335244998,), (1335245002,), (1335245007,), (1335245022,), (1335245027,), (1335245030,), (1335245032,), (1335245035,), (1335245039,), (1335245052,), (1335245056,), (1335245059,), (1335245061,), (1335245065,), (1335245067,), (1335245151,), (1335245155,), (1335245199,), (1335245210,), (1335245243,), (1335245297,), (1335245306,), (1335245311,), (1335245315,), (1335245319,), (1335245329,), (1335245345,), (1335245350,), (1335245365,), (1335245369,), (1335245375,), (1335245380,), (1335245392,), (1335245429,), (1335245432,), (1335245436,), (1335245441,), (1335245446,), (1335245456,), (1335245459,), (1335245464,), (1335245468,), (1335245475,), (1335244380,), (1335244383,), (1335244406,), (1335244413,), (1335244421,), (1335244428,), (1335244438,), (1335244442,), (1335244493,), (1335244534,), (1335244585,), (1335244613,), (1335244619,), (1335244624,), (1335244720,), (1335244722,), (1335244725,), (1335244778,), (1335244781,), (1335244785,), (1335244795,), (1335244801,), (1335244811,), (1335244817,), (1335244823,), (1335244830,), (1335244843,), (1335244844,), (1335244846,), (1335244848,), (1335244850,), (1335244851,), (1335244854,), (1335244856,), (1335244858,), (1335244860,), (1335244862,), (1335244863,), (1335244890,), (1335244901,), (1335244905,), (1335244912,), (1335244916,), (1335244919,), (1335244933,), (1335244991,), (1335244995,), (1335244229,), (1335244232,), (1335244237,), (1335244242,), (1335244253,), (1335244257,), (1335244260,), (1335244265,), (1335244270,), (1335244274,), (1335244288,), (1335244291,), (1335244296,), (1335244300,), (1335244305,), (1335244312,), (1335244329,), (1335244332,), (1335244336,), (1335244338,), (1335244340,), (1335244341,), (1335244357,), (1335244363,), (1335244369,), (1335244375,), (1335243811,), (1335243842,), (1335243896,), (1335243902,), (1335243907,), (1335243910,), (1335243933,), (1335243939,), (1335244092,), (1335244172,), (1335244177,), (1335244196,), (1335244201,), (1335244205,), (1335244209,), (1335244213,), (1335244216,), (1335244221,), (1335241455,), (1335241548,), (1335241578,), (1335241582,), (1335241587,), (1335241597,), (1335241624,), (1335241630,), (1335241637,), (1335241642,), (1335241658,), (1335241663,), (1335241704,), (1335241710,), (1335241719,), (1335241747,), (1335241753,), (1335241758,), (1335241776,), (1335241782,), (1335241788,), (1335241793,), (1335241796,), (1335241800,), (1335241816,), (1335241821,), (1335241825,), (1335241831,), (1335241837,), (1335241843,), (1335241931,), (1335242030,), (1335242077,), (1335242139,), (1335242172,), (1335242227,), (1335242259,), (1335242282,), (1335242300,), (1335242318,), (1335242351,), (1335242385,), (1335242554,), (1335242558,), (1335242579,), (1335242580,), (1335242586,), (1335242588,), (1335242595,), (1335242596,), (1335242751,), (1335242757,), (1335242984,), (1335242992,), (1335243361,), (1335243364,), (1335243367,), (1335243370,), (1335243379,), (1335243477,), (1335238334,), (1335238391,), (1335238400,), (1335238408,), (1335238454,), (1335238474,), (1335238589,), (1335238593,), (1335238599,), (1335238601,), (1335238602,), (1335238606,), (1335238659,), (1335238661,), (1335238674,), (1335238677,), (1335238731,), (1335238747,), (1335238754,), (1335238760,), (1335238766,), (1335238773,), (1335238786,), (1335239003,), (1335239101,), (1335239160,), (1335239251,), (1335239365,), (1335239449,), (1335239828,), (1335239834,), (1335239847,), (1335239866,), (1335239869,), (1335239872,), (1335239877,), (1335239887,), (1335239894,), (1335240281,), (1335240284,), (1335240574,), (1335240626,), (1335240711,), (1335240718,), (1335240731,), (1335240765,), (1335240811,), (1335240814,), (1335241119,), (1335241236,), (1335241243,), (1335241259,), (1335241265,), (1335241269,), (1335241288,), (1335241294,), (1335241299,), (1335241306,), (1335241321,), (1335241325,), (1335241330,), (1335241336,), (1335241346,), (1335241352,), (1335336664,), (1335336765,), (1335337466,), (1335337718,), (1335337960,), (1335338193,), (1335338453,), (1335338577,), (1335350035,), (1335350037,), (1335350523,), (1335350548,), (1335350560,), (1335350562,), (1335350564,), (1335350576,), (1335350604,), (1335350607,), (1335350644,), (1335350647,), (1335350649,), (1335350651,), (1335350672,), (1335350716,), (1335350850,), (1335350922,), (1335350926,), (1335350936,), (1335350959,), (1335350960,), (1335350962,), (1335350966,), (1335350968,), (1335350970,), (1335351011,), (1335351014,), (1335351023,), (1335351030,), (1335351036,), (1335351038,), (1335351042,), (1335351044,), (1335351045,), (1335351046,), (1335351047,), (1335351048,), (1335336578,), (1335338778,), (1335338782,), (1335338785,), (1335338788,), (1335338791,), (1335338794,), (1335338811,), (1335338813,), (1335338838,), (1335338848,), (1335338851,), (1335338860,), (1335338888,), (1335338891,), (1335338893,), (1335338900,), (1335338902,), (1335338927,), (1335339727,), (1335339729,), (1335347325,), (1335347465,), (1335347675,), (1335347677,), (1335347680,), (1335347753,), (1335347769,), (1335347807,), (1335348119,), (1335348121,), (1335348123,), (1335348125,), (1335348137,), (1335348195,), (1335348389,), (1335348402,), (1335348405,), (1335348407,), (1335348409,), (1335348411,), (1335349249,), (1335349251,), (1335349318,), (1335349387,), (1335349395,), (1335349397,), (1335350015,), (1335350018,), (1335350027,), (1335350032,), (1335336470,), (1335336484,), (1335338934,), (1335338937,), (1335338947,), (1335339021,), (1335339186,), (1335339356,), (1335339636,), (1335339654,), (1335339702,), (1335339725,), (1335340167,), (1335340219,), (1335340223,), (1335340231,), (1335340242,), (1335340244,), (1335340257,), (1335340259,), (1335340264,), (1335340267,), (1335340290,), (1335340299,), (1335340308,), (1335340356,), (1335340359,), (1335340403,), (1335340497,), (1335340650,), (1335341002,), (1335341007,), (1335341014,), (1335341017,), (1335341021,), (1335344909,), (1335346035,), (1335346040,), (1335346042,), (1335346044,), (1335346047,), (1335346062,), (1335346075,), (1335346083,), (1335346177,), (1335346192,), (1335346202,), (1335346306,), (1335346750,), (1335346827,), (1335346896,), (1335347088,), (1335336451,), (1335340995,), (1335341097,), (1335341251,), (1335341364,), (1335341401,), (1335341405,), (1335341409,), (1335341475,), (1335341477,), (1335341479,), (1335341481,), (1335341483,), (1335341485,), (1335344627,), (1335344716,), (1335344717,), (1335344718,), (1335344844,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06022025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20316832]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] map_info['map_portfolio_photo'] : {20316832: [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229]} final : True mtd_id 4302 list_pids : [1335244375, 1335244369, 1335244363, 1335244357, 1335244341, 1335244340, 1335244338, 1335244336, 1335244332, 1335244329, 1335244312, 1335244305, 1335244300, 1335244296, 1335244291, 1335244288, 1335244274, 1335244270, 1335244265, 1335244260, 1335244257, 1335244253, 1335244242, 1335244237, 1335244232, 1335244229] Looping around the photos to save general results len do output : 1 /20316832Didn'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, '2572554') ('4302', '20316832', '1335244375', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244369', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244363', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244357', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244341', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244340', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244338', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244336', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244332', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244329', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244312', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244305', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244300', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244296', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244291', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244288', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244274', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244270', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244265', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244260', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244257', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244253', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244242', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244237', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244232', None, None, None, None, None, '2572554') ('4302', None, None, None, None, None, None, None, '2572554') ('4302', '20316832', '1335244229', None, None, None, None, None, '2572554') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '20316832', 'None', None, None, None, None, '2572554'), ('4302', '20316832', '1335244375', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244369', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244363', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244357', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244341', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244340', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244338', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244336', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244332', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244329', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244312', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244305', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244300', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244296', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244291', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244288', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244274', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244270', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244265', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244260', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244257', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244253', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244242', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244237', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244232', None, None, None, None, None, '2572554'), ('4302', '20316832', '1335244229', None, None, None, None, None, '2572554')] time used for this insertion : 0.027853727340698242 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9961469173431396 time spend to save output : 0.02818584442138672 total time spend for step 5 : 4.024332761764526 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 (2572554) 3.16user 2.69system 0:14.27elapsed 41%CPU (0avgtext+0avgdata 166572maxresident)k 376inputs+19088outputs (4major+76521minor)pagefaults 0swaps