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 : 211157 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 (2802101) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2802101) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759893 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2802101'] with mtr_portfolio_ids : ['22759893'] and first list_photo_ids : [] new path : /proc/211157/ Name: python3 Umask: 0002 State: R (running) Tgid: 211157 Ngid: 0 Pid: 211157 PPid: 211156 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 211157 NSpid: 211157 NSpgid: 208601 NSsid: 208601 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98972 kB VmRSS: 98972 kB RssAnon: 60176 kB RssFile: 38796 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 82 nonvoluntary_ctxt_switches: 138 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '211157', 'Ngid': '0', 'Pid': '211157', 'PPid': '211156', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '211157', 'NSpid': '211157', 'NSpgid': '208601', 'NSsid': '208601', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98972 kB', 'VmRSS': '98972 kB', 'RssAnon': '60176 kB', 'RssFile': '38796 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '82', 'nonvoluntary_ctxt_switches': '138'} ('datou_batch_current', '211157', '1107228', '0', '1107228', '865976', '98972', b'', 'marlene', '2802101') 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 (22759893) 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 (2802101 ) ) 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 (22759893) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356640524, 'portfolio_id': 22759893}, {'photo_id': 1356640520, 'portfolio_id': 22759893}, {'photo_id': 1356640515, 'portfolio_id': 22759893}, {'photo_id': 1356640512, 'portfolio_id': 22759893}, {'photo_id': 1356640509, 'portfolio_id': 22759893}, {'photo_id': 1356640500, 'portfolio_id': 22759893}, {'photo_id': 1356640464, 'portfolio_id': 22759893}, {'photo_id': 1356640461, 'portfolio_id': 22759893}, {'photo_id': 1356640456, 'portfolio_id': 22759893}, {'photo_id': 1356640453, 'portfolio_id': 22759893}, {'photo_id': 1356640336, 'portfolio_id': 22759893}, {'photo_id': 1356640332, 'portfolio_id': 22759893}, {'photo_id': 1356640327, 'portfolio_id': 22759893}, {'photo_id': 1356640323, 'portfolio_id': 22759893}, {'photo_id': 1356640313, 'portfolio_id': 22759893}, {'photo_id': 1356640196, 'portfolio_id': 22759893}, {'photo_id': 1356640192, 'portfolio_id': 22759893}, {'photo_id': 1356640186, 'portfolio_id': 22759893}, {'photo_id': 1356640181, 'portfolio_id': 22759893}, {'photo_id': 1356640136, 'portfolio_id': 22759893}, {'photo_id': 1356640133, 'portfolio_id': 22759893}, {'photo_id': 1356640129, 'portfolio_id': 22759893}, {'photo_id': 1356640127, 'portfolio_id': 22759893}, {'photo_id': 1356640089, 'portfolio_id': 22759893}, {'photo_id': 1356640086, 'portfolio_id': 22759893}, {'photo_id': 1356640082, 'portfolio_id': 22759893}, {'photo_id': 1356640078, 'portfolio_id': 22759893}, {'photo_id': 1356640075, 'portfolio_id': 22759893}, {'photo_id': 1356640071, 'portfolio_id': 22759893}, {'photo_id': 1356640042, 'portfolio_id': 22759893}, {'photo_id': 1356640038, 'portfolio_id': 22759893}, {'photo_id': 1356640035, 'portfolio_id': 22759893}, {'photo_id': 1356640033, 'portfolio_id': 22759893}, {'photo_id': 1356640030, 'portfolio_id': 22759893}, {'photo_id': 1356640027, 'portfolio_id': 22759893}, {'photo_id': 1356639985, 'portfolio_id': 22759893}, {'photo_id': 1356639981, 'portfolio_id': 22759893}, {'photo_id': 1356639977, 'portfolio_id': 22759893}, {'photo_id': 1356639945, 'portfolio_id': 22759893}, {'photo_id': 1356639939, 'portfolio_id': 22759893}, {'photo_id': 1356639935, 'portfolio_id': 22759893}, {'photo_id': 1356639931, 'portfolio_id': 22759893}, {'photo_id': 1356639925, 'portfolio_id': 22759893}, {'photo_id': 1356639818, 'portfolio_id': 22759893}, {'photo_id': 1356639815, 'portfolio_id': 22759893}, {'photo_id': 1356639784, 'portfolio_id': 22759893}, {'photo_id': 1356639783, 'portfolio_id': 22759893}, {'photo_id': 1356639715, 'portfolio_id': 22759893}, {'photo_id': 1356638932, 'portfolio_id': 22759893}, {'photo_id': 1356638892, 'portfolio_id': 22759893}, {'photo_id': 1356638863, 'portfolio_id': 22759893}] map_portfolio_id_photo_id: {22759893: [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500, 1356640464, 1356640461, 1356640456, 1356640453, 1356640336, 1356640332, 1356640327, 1356640323, 1356640313, 1356640196, 1356640192, 1356640186, 1356640181, 1356640136, 1356640133, 1356640129, 1356640127, 1356640089, 1356640086, 1356640082, 1356640078, 1356640075, 1356640071, 1356640042, 1356640038, 1356640035, 1356640033, 1356640030, 1356640027, 1356639985, 1356639981, 1356639977, 1356639945, 1356639939, 1356639935, 1356639931, 1356639925, 1356639818, 1356639815, 1356639784, 1356639783, 1356639715, 1356638932, 1356638892, 1356638863]} ##### 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.016440391540527344 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 7 10:14:57 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 (22759893) 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 : 22759893 get user id for portfolio 22759893 get sub ptf for main ptf 22759893, type 3726 and hashtags ['Carton_gris', 'cartonnette', 'environnement', 'autre_refus', 'flou', 'plastique', 'papier', 'mal_croppe', 'Teint_Dans_La_Masse', 'Carton_brun', 'metal', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22759893 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','environnement','autre_refus','flou','plastique','papier','mal_croppe','Teint_Dans_La_Masse','Carton_brun','metal','kraft')) 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`=22759893 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','environnement','autre_refus','flou','plastique','papier','mal_croppe','Teint_Dans_La_Masse','Carton_brun','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22759893, 'sub_port_id': 22759911, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172107, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'mal_croppe': {'main_port_id': 22759893, 'sub_port_id': 22759912, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172108, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'cartonnette': {'main_port_id': 22759893, 'sub_port_id': 22759913, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172109, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'Carton_brun': {'main_port_id': 22759893, 'sub_port_id': 22759914, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172110, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'Carton_gris': {'main_port_id': 22759893, 'sub_port_id': 22759915, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172111, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'environnement': {'main_port_id': 22759893, 'sub_port_id': 22759916, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172112, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'papier': {'main_port_id': 22759893, 'sub_port_id': 22759917, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172113, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'flou': {'main_port_id': 22759893, 'sub_port_id': 22759918, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172114, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'autre_refus': {'main_port_id': 22759893, 'sub_port_id': 22759919, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172115, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 22759893, 'sub_port_id': 22759920, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172116, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'metal': {'main_port_id': 22759893, 'sub_port_id': 22759921, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172117, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}, 'kraft': {'main_port_id': 22759893, 'sub_port_id': 22759922, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172118, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22759911 , 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=22759893 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 (22759911) result : ((1356640123,), (1356640439,), (1356640554,), (1356640555,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759912 , 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=22759893 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 (22759912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759913 , 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=22759893 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 (22759913) result : ((1356639956,), (1356640120,), (1356640145,), (1356640172,), (1356640173,), (1356640538,), (1356640552,), (1356640594,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759914 , 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=22759893 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 (22759914) result : ((1356640053,), (1356640121,), (1356640147,), (1356640175,), (1356640176,), (1356640437,), (1356640504,), (1356640505,), (1356640506,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759915 , 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=22759893 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 (22759915) result : ((1356640119,), (1356640501,), (1356640536,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759916 , 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=22759893 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 (22759916) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759917 , 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=22759893 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 (22759917) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759918 , 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=22759893 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 (22759918) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759919 , 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=22759893 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 (22759919) result : ((1356640116,), (1356640117,), (1356640435,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759920 , 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=22759893 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 (22759920) result : ((1356640113,), (1356640114,), (1356640170,), (1356640425,), (1356640426,), (1356640427,), (1356640428,), (1356640429,), (1356640430,), (1356640431,), (1356640498,), (1356640499,), (1356640545,), (1356640546,), (1356640548,), (1356640549,), (1356640550,), (1356640551,), (1356640593,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759921 , 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=22759893 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 (22759921) result : ((1356640177,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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 22759922 , 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=22759893 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 (22759922) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22759893) result : ((1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) 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 (1356640500) 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`=22759893 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','environnement','autre_refus','flou','plastique','papier','mal_croppe','Teint_Dans_La_Masse','Carton_brun','metal','kraft')) 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`=22759893 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','cartonnette','environnement','autre_refus','flou','plastique','papier','mal_croppe','Teint_Dans_La_Masse','Carton_brun','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22759893, 'sub_port_id': 22759923, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172119, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'mal_croppe': {'main_port_id': 22759893, 'sub_port_id': 22759924, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172120, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'cartonnette': {'main_port_id': 22759893, 'sub_port_id': 22759925, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172121, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'Carton_brun': {'main_port_id': 22759893, 'sub_port_id': 22759926, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172122, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'Carton_gris': {'main_port_id': 22759893, 'sub_port_id': 22759927, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172123, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'environnement': {'main_port_id': 22759893, 'sub_port_id': 22759928, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172124, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'papier': {'main_port_id': 22759893, 'sub_port_id': 22759929, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172125, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'flou': {'main_port_id': 22759893, 'sub_port_id': 22759930, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172126, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'autre_refus': {'main_port_id': 22759893, 'sub_port_id': 22759931, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172127, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22759893, 'sub_port_id': 22759932, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172128, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'metal': {'main_port_id': 22759893, 'sub_port_id': 22759933, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172129, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}, 'kraft': {'main_port_id': 22759893, 'sub_port_id': 22759934, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15172130, 'last_updated_at': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 10, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 10, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759915 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759916 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759929,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759917 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759918 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759931,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759919 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759932,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759920 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759933,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759921 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22759934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22759922 lien utilise dans velours : https://www.fotonower.com/velours/22759923,22759924,22759925,22759926,22759927,22759928,22759929,22759930,22759931,22759932,22759933,22759934?tags=plastique,mal_croppe,cartonnette,Carton_brun,Carton_gris,environnement,papier,flou,autre_refus,Teint_Dans_La_Masse,metal,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22759893]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] map_info['map_portfolio_photo'] : {22759893: [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500, 1356640464, 1356640461, 1356640456, 1356640453, 1356640336, 1356640332, 1356640327, 1356640323, 1356640313, 1356640196, 1356640192, 1356640186, 1356640181, 1356640136, 1356640133, 1356640129, 1356640127, 1356640089, 1356640086, 1356640082, 1356640078, 1356640075, 1356640071, 1356640042, 1356640038, 1356640035, 1356640033, 1356640030, 1356640027, 1356639985, 1356639981, 1356639977, 1356639945, 1356639939, 1356639935, 1356639931, 1356639925, 1356639818, 1356639815, 1356639784, 1356639783, 1356639715, 1356638932, 1356638892, 1356638863]} final : False mtd_id 4302 list_pids : [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] Looping around the photos to save general results len do output : 1 /22759893. 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, '2802101') ('4302', '22759893', '1356640524', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640520', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640515', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640512', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640509', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640500', None, None, None, None, None, '2802101') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '22759893', "{'plastique': 22759911, 'mal_croppe': 22759912, 'cartonnette': 22759913, 'Carton_brun': 22759914, 'Carton_gris': 22759915, 'environnement': 22759916, 'papier': 22759917, 'flou': 22759918, 'autre_refus': 22759919, 'Teint_Dans_La_Masse': 22759920, 'metal': 22759921, 'kraft': 22759922}", None, None, None, None, '2802101'), ('4302', '22759893', '1356640524', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640520', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640515', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640512', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640509', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640500', None, None, None, None, None, '2802101')] time used for this insertion : 0.01389002799987793 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4662628173828125 time spend to save output : 0.015888690948486328 total time spend for step 1 : 0.48215150833129883 step2:final Wed May 7 10:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22759893) 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 22759893 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356638932,1356638892,1356638863,1356639818,1356639815,1356639784,1356639783,1356639715,1356639945,1356639939,1356639935,1356639931,1356639925,1356639985,1356639981,1356639977,1356640042,1356640038,1356640035,1356640033,1356640030,1356640027,1356640089,1356640086,1356640082,1356640078,1356640075,1356640071,1356640136,1356640133,1356640129,1356640127,1356640196,1356640192,1356640186,1356640181,1356640336,1356640332,1356640327,1356640323,1356640313,1356640464,1356640461,1356640456,1356640453,1356640524,1356640520,1356640515,1356640512,1356640509,1356640500); 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([22759893]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} new output for save of step final : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] map_info['map_portfolio_photo'] : {22759893: [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500, 1356640464, 1356640461, 1356640456, 1356640453, 1356640336, 1356640332, 1356640327, 1356640323, 1356640313, 1356640196, 1356640192, 1356640186, 1356640181, 1356640136, 1356640133, 1356640129, 1356640127, 1356640089, 1356640086, 1356640082, 1356640078, 1356640075, 1356640071, 1356640042, 1356640038, 1356640035, 1356640033, 1356640030, 1356640027, 1356639985, 1356639981, 1356639977, 1356639945, 1356639939, 1356639935, 1356639931, 1356639925, 1356639818, 1356639815, 1356639784, 1356639783, 1356639715, 1356638932, 1356638892, 1356638863]} final : False mtd_id 4302 list_pids : [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] Looping around the photos to save general results len do output : 6 /1356640524.Didn't retrieve data . /1356640520.Didn't retrieve data . /1356640515.Didn't retrieve data . /1356640512.Didn't retrieve data . /1356640509.Didn't retrieve data . /1356640500.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, '2802101') ('4302', '22759893', '1356640524', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640520', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640515', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640512', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640509', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640500', None, None, None, None, None, '2802101') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22759893', '1356640524', '0.03994843954487366', None, None, None, None, '2802101'), ('4302', '22759893', '1356640520', '0.03994843954487366', None, None, None, None, '2802101'), ('4302', '22759893', '1356640515', '0.03994843954487366', None, None, None, None, '2802101'), ('4302', '22759893', '1356640512', '0.03994843954487366', None, None, None, None, '2802101'), ('4302', '22759893', '1356640509', '0.03994843954487366', None, None, None, None, '2802101'), ('4302', '22759893', '1356640500', '0.03994843954487366', None, None, None, None, '2802101')] time used for this insertion : 0.012903451919555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06976032257080078 time spend to save output : 0.013286590576171875 total time spend for step 2 : 0.08304691314697266 step3:velours_tree Wed May 7 10:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22759893: [{'plastique': 22759911, 'mal_croppe': 22759912, 'cartonnette': 22759913, 'Carton_brun': 22759914, 'Carton_gris': 22759915, 'environnement': 22759916, 'papier': 22759917, 'flou': 22759918, 'autre_refus': 22759919, 'Teint_Dans_La_Masse': 22759920, 'metal': 22759921, 'kraft': 22759922}]} input_args_next_step : {22759893: ()} output_args : {22759893: [{'plastique': 22759911, 'mal_croppe': 22759912, 'cartonnette': 22759913, 'Carton_brun': 22759914, 'Carton_gris': 22759915, 'environnement': 22759916, 'papier': 22759917, 'flou': 22759918, 'autre_refus': 22759919, 'Teint_Dans_La_Masse': 22759920, 'metal': 22759921, 'kraft': 22759922}]} args : 22759893 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': 22759911, 'mal_croppe': 22759912, 'cartonnette': 22759913, 'Carton_brun': 22759914, 'Carton_gris': 22759915, 'environnement': 22759916, 'papier': 22759917, 'flou': 22759918, 'autre_refus': 22759919, 'Teint_Dans_La_Masse': 22759920, 'metal': 22759921, 'kraft': 22759922},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22759893) 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([22759893]) 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.40645384788513184 time spend to save output : 5.9604644775390625e-05 total time spend for step 3 : 0.4065134525299072 step4:send_mail_cod Wed May 7 10:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} input_args_next_step : {1356640524: ()} output_args : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} args : 1356640524 depend.output_id : 0 input_args_next_step : {1356640524: ('0.03994843954487366',), 1356640520: ()} output_args : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} args : 1356640520 depend.output_id : 0 input_args_next_step : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ()} output_args : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} args : 1356640515 depend.output_id : 0 input_args_next_step : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ()} output_args : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} args : 1356640512 depend.output_id : 0 input_args_next_step : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ()} output_args : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} args : 1356640509 depend.output_id : 0 input_args_next_step : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ()} output_args : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',)} args : 1356640500 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 : {22759893: [{'plastique': 22759911, 'mal_croppe': 22759912, 'cartonnette': 22759913, 'Carton_brun': 22759914, 'Carton_gris': 22759915, 'environnement': 22759916, 'papier': 22759917, 'flou': 22759918, 'autre_refus': 22759919, 'Teint_Dans_La_Masse': 22759920, 'metal': 22759921, 'kraft': 22759922}]} input_args_next_step : {1356640524: ('0.03994843954487366',), 1356640520: ('0.03994843954487366',), 1356640515: ('0.03994843954487366',), 1356640512: ('0.03994843954487366',), 1356640509: ('0.03994843954487366',), 1356640500: ('0.03994843954487366',), 22759893: ()} output_args : {22759893: [{'plastique': 22759911, 'mal_croppe': 22759912, 'cartonnette': 22759913, 'Carton_brun': 22759914, 'Carton_gris': 22759915, 'environnement': 22759916, 'papier': 22759917, 'flou': 22759918, 'autre_refus': 22759919, 'Teint_Dans_La_Masse': 22759920, 'metal': 22759921, 'kraft': 22759922}]} args : 22759893 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 :7, first value : ('0.03994843954487366',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22759893) 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 (1356640524,1356640520,1356640515,1356640512,1356640509,1356640500) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356640500 begin to download photo : 1356640512 begin to download photo : 1356640520 download finish for photo 1356640500 begin to download photo : 1356640509 download finish for photo 1356640512 begin to download photo : 1356640515 download finish for photo 1356640520 begin to download photo : 1356640524 download finish for photo 1356640524 download finish for photo 1356640515 download finish for photo 1356640509 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P22759893_07-05-2025_10_14_58.pdf 22759911 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=22759911 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356640123: '1746605292_2507217_1356639935_725eef739539b0d5282c1e3d5de19efc_rle_crop_3788186772_0.png', 1356640439: '1746605471_2509723_1356640186_3973eee3900ead81ff448b76f6355bef_rle_crop_3788188782_0.png', 1356640554: '1746605605_604014_1356640464_d97f6ace9878811afe2aaa29ce77bcd7_rle_crop_3788190074_0.png', 1356640555: '1746605605_604014_1356640313_43f0f3d4a453c84569161fb3c6c3da8c_rle_crop_3788190125_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c9c907596075552fca4589492ba35e2b_35683145.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/2d7efc7927637ec993a76257f9795e7d_55153686.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5eaed35e73c4ef495fb45b12f20fd08f_11145793.png change filename to text .imagette227599111746605698/ imagette227599111746605698/1746605605_604014_1356640313_43f0f3d4a453c84569161fb3c6c3da8c_rle_crop_3788190125_0.png.png imagette227599111746605698/1746605292_2507217_1356639935_725eef739539b0d5282c1e3d5de19efc_rle_crop_3788186772_0.png.png imagette227599111746605698/1746605471_2509723_1356640186_3973eee3900ead81ff448b76f6355bef_rle_crop_3788188782_0.png.png imagette227599111746605698/1746605605_604014_1356640464_d97f6ace9878811afe2aaa29ce77bcd7_rle_crop_3788190074_0.png.png imagette227599121746605699/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/602da9135a4590d496757ac941b24b58_12052681.png imagette227599111746605698 22759912 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=22759912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227599121746605699 22759913 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=22759913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356639956: '1746605112_2505271_1356638863_58f8f74cb4d9171d3f9939764a1bf5a7_rle_crop_3788186128_0.png', 1356640120: '1746605292_2507217_1356639939_bd36a6aac304f7e960697c9255cb14a9_rle_crop_3788186768_0.png', 1356640145: '1746605341_2507902_1356640042_7bfda6d5de49d51a2f8da152557e8f36_rle_crop_3788187531_0.png', 1356640172: '1746605352_2508047_1356640038_9463ddefa76e111c8737561aeac0b441_rle_crop_3788187637_0.png', 1356640173: '1746605352_2508047_1356640030_8f8f0b55b02663515c0e8ac2ce9d71d9_rle_crop_3788187668_0.png', 1356640538: '1746605592_2511221_1356640453_fb5766a377d022d60ef810814793d267_rle_crop_3788190055_0.png', 1356640552: '1746605605_604014_1356640327_c25230abdbba55d82a79939f27de8fe3_rle_crop_3788190090_0.png', 1356640594: '1746605651_2512012_1356640336_6a2b4d9ecd5bed7dd3a7b1af93cb2551_rle_crop_3788190181_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/21ffcfd9de971e81d325249bb3463715_11823718.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8e186a8d769804f2f86bcab08a262b16_22388903.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ffb50a1ecc49b91b297e496abd2b00bb_17547841.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b1156ad5d117034398dff41d988bfbc5_25302382.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/53b64b1b2078b284ecec269241a4ef31_52214975.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5482e5505c80d75837ade813b121271e_66706512.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/589ac666a2c1c837e8e558d425371210_65871596.png change filename to text .imagette227599131746605699/ imagette227599131746605699/1746605352_2508047_1356640038_9463ddefa76e111c8737561aeac0b441_rle_crop_3788187637_0.png.png imagette227599131746605699/1746605112_2505271_1356638863_58f8f74cb4d9171d3f9939764a1bf5a7_rle_crop_3788186128_0.png.png imagette227599131746605699/1746605341_2507902_1356640042_7bfda6d5de49d51a2f8da152557e8f36_rle_crop_3788187531_0.png.png imagette227599131746605699/1746605592_2511221_1356640453_fb5766a377d022d60ef810814793d267_rle_crop_3788190055_0.png.png imagette227599131746605699/1746605605_604014_1356640327_c25230abdbba55d82a79939f27de8fe3_rle_crop_3788190090_0.png.png imagette227599131746605699/1746605651_2512012_1356640336_6a2b4d9ecd5bed7dd3a7b1af93cb2551_rle_crop_3788190181_0.png.png imagette227599131746605699/1746605292_2507217_1356639939_bd36a6aac304f7e960697c9255cb14a9_rle_crop_3788186768_0.png.png imagette227599131746605699/1746605352_2508047_1356640030_8f8f0b55b02663515c0e8ac2ce9d71d9_rle_crop_3788187668_0.png.png imagette227599181746605699/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0ceb211d349ea07c4e0e957684ec59c5_9084754.png imagette227599131746605699 22759918 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=22759918 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227599181746605699 22759919 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=22759919 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356640116: '1746605292_2507217_1356639935_725eef739539b0d5282c1e3d5de19efc_rle_crop_3788186775_0.png', 1356640117: '1746605292_2507217_1356639925_b55fbe725b6ad340ea2149e0d8dd585f_rle_crop_3788186810_0.png', 1356640435: '1746605471_2509723_1356640181_cc2222e83b6c29fd02da3dd7f4e18b63_rle_crop_3788188795_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3602b0d640b270aa03894d5963cf6acf_96467954.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/6412f52b4168185a2004d09363fedede_2733825.png change filename to text .imagette227599191746605699/ imagette227599191746605699/1746605471_2509723_1356640181_cc2222e83b6c29fd02da3dd7f4e18b63_rle_crop_3788188795_0.png.png imagette227599191746605699/1746605292_2507217_1356639935_725eef739539b0d5282c1e3d5de19efc_rle_crop_3788186775_0.png.png imagette227599191746605699/1746605292_2507217_1356639925_b55fbe725b6ad340ea2149e0d8dd585f_rle_crop_3788186810_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7cd241b59fabef5b0ad34196e60f54c5_58362675.png imagette227599191746605699 22759921 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=22759921 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356640177: '1746605352_2508047_1356640027_1a5505bf184654686fbc259b491d16a7_rle_crop_3788187677_0.png'} change filename to text .imagette227599211746605699/ imagette227599211746605699/1746605352_2508047_1356640027_1a5505bf184654686fbc259b491d16a7_rle_crop_3788187677_0.png.png imagette227599221746605699/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b867aaccc11f011c6a286055fb8a6a9f_62356007.png imagette227599211746605699 22759922 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=22759922 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227599221746605699 22759914 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=22759914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356640053: '1746605231_2506613_1356639977_2e0eadb75a5f33a9ad586b0fa875a0cb_rle_crop_3788186277_0.png', 1356640121: '1746605292_2507217_1356639931_40baaddf1c4bb42245dc76a6e7e974b5_rle_crop_3788186799_0.png', 1356640147: '1746605341_2507902_1356640042_7bfda6d5de49d51a2f8da152557e8f36_rle_crop_3788187533_0.png', 1356640175: '1746605352_2508047_1356640035_5d767d2f49d35b497b804b62232d09eb_rle_crop_3788187654_0.png', 1356640176: '1746605352_2508047_1356640027_1a5505bf184654686fbc259b491d16a7_rle_crop_3788187680_0.png', 1356640437: '1746605471_2509723_1356640186_3973eee3900ead81ff448b76f6355bef_rle_crop_3788188783_0.png', 1356640504: '1746605530_2510442_1356640082_991d0b34f881406195d9ce1b141c8ae9_rle_crop_3788189074_0.png', 1356640505: '1746605530_2510442_1356640078_4a0e642d99dca9e1da6c21dc6413ecb3_rle_crop_3788189095_0.png', 1356640506: '1746605530_2510442_1356640075_01b28b9dbc122ceb55925525f3cbad30_rle_crop_3788189108_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7711e531f9206ed5ac3f2fdd700833eb_17041440.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/29755955fa8624a1ca6aa80ae37c8d5b_94978033.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5c72e9a56baf7ed3f622f74732ab53de_14971142.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/914e27ac5a556ec67be755c2cf775167_99159983.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7057cd7917d99460ff816a912cc2f9a7_24075209.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1dbbb0d9383b5e295258e5707ec2931b_82580593.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/032a20679c6f15bc8078355bf03a66b6_47012273.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/086fdf435def34001dc9b842b1f6fc9c_74309211.png change filename to text .imagette227599141746605699/ imagette227599141746605699/1746605530_2510442_1356640075_01b28b9dbc122ceb55925525f3cbad30_rle_crop_3788189108_0.png.png imagette227599141746605699/1746605471_2509723_1356640186_3973eee3900ead81ff448b76f6355bef_rle_crop_3788188783_0.png.png imagette227599141746605699/1746605352_2508047_1356640035_5d767d2f49d35b497b804b62232d09eb_rle_crop_3788187654_0.png.png imagette227599141746605699/1746605352_2508047_1356640027_1a5505bf184654686fbc259b491d16a7_rle_crop_3788187680_0.png.png imagette227599141746605699/1746605231_2506613_1356639977_2e0eadb75a5f33a9ad586b0fa875a0cb_rle_crop_3788186277_0.png.png imagette227599141746605699/1746605341_2507902_1356640042_7bfda6d5de49d51a2f8da152557e8f36_rle_crop_3788187533_0.png.png imagette227599141746605699/1746605530_2510442_1356640078_4a0e642d99dca9e1da6c21dc6413ecb3_rle_crop_3788189095_0.png.png imagette227599141746605699/1746605292_2507217_1356639931_40baaddf1c4bb42245dc76a6e7e974b5_rle_crop_3788186799_0.png.png imagette227599141746605699/1746605530_2510442_1356640082_991d0b34f881406195d9ce1b141c8ae9_rle_crop_3788189074_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0d942136e0c0cbffb92e6a69939975ee_7195076.png imagette227599141746605699 22759915 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=22759915 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356640119: '1746605292_2507217_1356639935_725eef739539b0d5282c1e3d5de19efc_rle_crop_3788186773_0.png', 1356640501: '1746605530_2510442_1356640082_991d0b34f881406195d9ce1b141c8ae9_rle_crop_3788189079_0.png', 1356640536: '1746605592_2511221_1356640453_fb5766a377d022d60ef810814793d267_rle_crop_3788190058_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/bb780ea3bc814aa52d64bfe9171c532f_33905371.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5309996a7e6d72f74333e0c9e51abae6_65520066.png change filename to text .imagette227599151746605700/ imagette227599151746605700/1746605530_2510442_1356640082_991d0b34f881406195d9ce1b141c8ae9_rle_crop_3788189079_0.png.png imagette227599151746605700/1746605292_2507217_1356639935_725eef739539b0d5282c1e3d5de19efc_rle_crop_3788186773_0.png.png imagette227599151746605700/1746605592_2511221_1356640453_fb5766a377d022d60ef810814793d267_rle_crop_3788190058_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/2c0753b01925e258b8830dbeafe235f0_63934857.png imagette227599151746605700 22759920 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=22759920 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356640431: '1746605471_2509723_1356640181_cc2222e83b6c29fd02da3dd7f4e18b63_rle_crop_3788188798_0.png', 1356640593: '1746605651_2512012_1356640336_6a2b4d9ecd5bed7dd3a7b1af93cb2551_rle_crop_3788190184_0.png', 1356640551: '1746605605_604014_1356640313_43f0f3d4a453c84569161fb3c6c3da8c_rle_crop_3788190122_0.png', 1356640550: '1746605605_604014_1356640323_c67363900f7ebf5693f7a479cc973b63_rle_crop_3788190106_0.png', 1356640549: '1746605605_604014_1356640327_c25230abdbba55d82a79939f27de8fe3_rle_crop_3788190094_0.png', 1356640548: '1746605605_604014_1356640327_c25230abdbba55d82a79939f27de8fe3_rle_crop_3788190096_0.png', 1356640546: '1746605605_604014_1356640332_2990b3cf2691d101986f4b8740c1890a_rle_crop_3788190082_0.png', 1356640545: '1746605605_604014_1356640464_d97f6ace9878811afe2aaa29ce77bcd7_rle_crop_3788190071_0.png', 1356640499: '1746605530_2510442_1356640075_01b28b9dbc122ceb55925525f3cbad30_rle_crop_3788189110_0.png', 1356640498: '1746605530_2510442_1356640078_4a0e642d99dca9e1da6c21dc6413ecb3_rle_crop_3788189094_0.png', 1356640113: '1746605292_2507217_1356639925_b55fbe725b6ad340ea2149e0d8dd585f_rle_crop_3788186815_0.png', 1356640430: '1746605471_2509723_1356640181_cc2222e83b6c29fd02da3dd7f4e18b63_rle_crop_3788188801_0.png', 1356640429: '1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188774_0.png', 1356640428: '1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188769_0.png', 1356640427: '1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188772_0.png', 1356640426: '1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188775_0.png', 1356640425: '1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188768_0.png', 1356640170: '1746605352_2508047_1356640033_6028a8e25f165e40c9f1934f6e96394e_rle_crop_3788187659_0.png', 1356640114: '1746605292_2507217_1356639925_b55fbe725b6ad340ea2149e0d8dd585f_rle_crop_3788186813_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/95e2013f3c27b0ad4d1ffa33df2adc79_56878548.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/43c416024084ff05e3edc70e67b85377_19762080.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7b6dd4c0509f15c39b77edb85ee8455b_94601115.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/2109b55b91f276ac20b48d9320f7d774_95333284.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1590ead56ec9fa155fbbf5b4152738d6_62507328.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c507a49a018edc5931bbf82fa1a49280_52416601.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/2ebcf88c1921c81e337aa2ae4d8996d0_58278572.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/edbd5047d007008ce6d3c703dfd946e5_7484181.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e720d8bda39439ca81a257e4e5237922_76171203.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/46af1ebfa6922f6f3442c5a3b9163c05_44524506.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cd0a8dc1f73374c8bb60d83ed4bd868b_95621848.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a92a2f6b79c0ecd5b8c3b8ea32ca1411_85749644.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e64bcfadd655c4dd1d2a54f8e4a930a5_55386164.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/295eb772e6fa95e95bfdbc0531fb001f_53212094.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d2a335a209bc57fc29094e0b35b136ff_53468600.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c1cdaeeb54589068aa272a403766ef6e_27937136.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/85015036fde4299a6776a4b5d0c119b1_16230079.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/04fcf5176e8bd0aa331c8a3be1a081dc_9209169.png change filename to text .imagette227599201746605700/ imagette227599201746605700/1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188775_0.png.png imagette227599201746605700/1746605292_2507217_1356639925_b55fbe725b6ad340ea2149e0d8dd585f_rle_crop_3788186813_0.png.png imagette227599201746605700/1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188768_0.png.png imagette227599201746605700/1746605651_2512012_1356640336_6a2b4d9ecd5bed7dd3a7b1af93cb2551_rle_crop_3788190184_0.png.png imagette227599201746605700/1746605471_2509723_1356640181_cc2222e83b6c29fd02da3dd7f4e18b63_rle_crop_3788188798_0.png.png imagette227599201746605700/1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188772_0.png.png imagette227599201746605700/1746605471_2509723_1356640181_cc2222e83b6c29fd02da3dd7f4e18b63_rle_crop_3788188801_0.png.png imagette227599201746605700/1746605530_2510442_1356640078_4a0e642d99dca9e1da6c21dc6413ecb3_rle_crop_3788189094_0.png.png imagette227599201746605700/1746605605_604014_1356640332_2990b3cf2691d101986f4b8740c1890a_rle_crop_3788190082_0.png.png imagette227599201746605700/1746605605_604014_1356640327_c25230abdbba55d82a79939f27de8fe3_rle_crop_3788190096_0.png.png imagette227599201746605700/1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188769_0.png.png imagette227599201746605700/1746605605_604014_1356640327_c25230abdbba55d82a79939f27de8fe3_rle_crop_3788190094_0.png.png imagette227599201746605700/1746605471_2509723_1356640192_f9d6329694a69036b40711de4072e593_rle_crop_3788188774_0.png.png imagette227599201746605700/1746605530_2510442_1356640075_01b28b9dbc122ceb55925525f3cbad30_rle_crop_3788189110_0.png.png imagette227599201746605700/1746605605_604014_1356640313_43f0f3d4a453c84569161fb3c6c3da8c_rle_crop_3788190122_0.png.png imagette227599201746605700/1746605292_2507217_1356639925_b55fbe725b6ad340ea2149e0d8dd585f_rle_crop_3788186815_0.png.png imagette227599201746605700/1746605352_2508047_1356640033_6028a8e25f165e40c9f1934f6e96394e_rle_crop_3788187659_0.png.png imagette227599201746605700/1746605605_604014_1356640323_c67363900f7ebf5693f7a479cc973b63_rle_crop_3788190106_0.png.png imagette227599201746605700/1746605605_604014_1356640464_d97f6ace9878811afe2aaa29ce77bcd7_rle_crop_3788190071_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/95df8bc62c7ed7c0c34bd8735c4585ed_27302055.png imagette227599201746605700 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22759893 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22759923,22759924,22759925,22759926,22759927,22759928,22759929,22759930,22759931,22759932,22759933,22759934?tags=plastique,mal_croppe,cartonnette,Carton_brun,Carton_gris,environnement,papier,flou,autre_refus,Teint_Dans_La_Masse,metal,kraft your option no_mail is active, we will not send the real mail to your client args[1356640524] : ('0.03994843954487366',) no score found for photo 1356640524 We are sending mail with results at report@fotonower.com args[1356640520] : ('0.03994843954487366',) no score found for photo 1356640520 We are sending mail with results at report@fotonower.com args[1356640515] : ('0.03994843954487366',) no score found for photo 1356640515 We are sending mail with results at report@fotonower.com args[1356640512] : ('0.03994843954487366',) no score found for photo 1356640512 We are sending mail with results at report@fotonower.com args[1356640509] : ('0.03994843954487366',) no score found for photo 1356640509 We are sending mail with results at report@fotonower.com args[1356640500] : ('0.03994843954487366',) no score found for photo 1356640500 We are sending mail with results at report@fotonower.com refus_total : 0.03994843954487366 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=22759893 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_P22759893_07-05-2025_10_14_58.pdf results_Auto_P22759893_07-05-2025_10_14_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_14_58.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','22759893','results_Auto_P22759893_07-05-2025_10_14_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_14_58.pdf','pdf','','0.2','0.03994843954487366') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22759893]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] map_info['map_portfolio_photo'] : {22759893: [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500, 1356640464, 1356640461, 1356640456, 1356640453, 1356640336, 1356640332, 1356640327, 1356640323, 1356640313, 1356640196, 1356640192, 1356640186, 1356640181, 1356640136, 1356640133, 1356640129, 1356640127, 1356640089, 1356640086, 1356640082, 1356640078, 1356640075, 1356640071, 1356640042, 1356640038, 1356640035, 1356640033, 1356640030, 1356640027, 1356639985, 1356639981, 1356639977, 1356639945, 1356639939, 1356639935, 1356639931, 1356639925, 1356639818, 1356639815, 1356639784, 1356639783, 1356639715, 1356638932, 1356638892, 1356638863]} final : False mtd_id 4302 list_pids : [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] 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, '2802101') ('4302', '22759893', '1356640524', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640520', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640515', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640512', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640509', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640500', None, None, None, None, None, '2802101') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '22759893', '1356640524', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640520', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640515', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640512', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640509', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640500', None, None, None, None, None, '2802101')] time used for this insertion : 0.013210535049438477 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.284460544586182 time spend to save output : 0.013457059860229492 total time spend for step 4 : 5.297917604446411 step5:split_time_score Wed May 7 10:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22759893'] 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 : [('22759893',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22759893) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356640520: {'path': 'temp/1746605698_211157_1356640520_a542b5f78d14d34e4f74b0d52624ec3e.jpg', 'extension': 'jpg'}, 1356640524: {'path': 'temp/1746605698_211157_1356640524_1115407e2f16130378d58eb6ec551180.jpg', 'extension': 'jpg'}, 1356640512: {'path': 'temp/1746605698_211157_1356640512_b8f10b446ab4ccf1443928d9a0e6abf6.jpg', 'extension': 'jpg'}, 1356640515: {'path': 'temp/1746605698_211157_1356640515_cdd1efe5068ef31c54e6f1d2f044cbb2.jpg', 'extension': 'jpg'}, 1356640500: {'path': 'temp/1746605698_211157_1356640500_1db555b2b011759e2a45f99d6cfb6e8b.jpg', 'extension': 'jpg'}, 1356640509: {'path': 'temp/1746605698_211157_1356640509_d1044315f5459ccbb96d51907e0b326c.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 = 22759893; (('arc_en_ciel_jrm_live',), ('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 = 22759893 group by h (('10', 51),) 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=22759893 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 (22759893) 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 (22759893) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22759893 Nombre de photos uploadées : 51 / 23040 (0%) 07052025 22759893 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 07052025 22759893 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1356638932, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cff5b78cb7f48dc083375e642e79030f.jpg', 'username': None, 'uploaded_at': 1746604988, 'text': 'image_07052025_10_00_14_10204.jpg'}, {'photo_id': 1356638892, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/301f3dbcbff0dccb52e8f515013202db.jpg', 'username': None, 'uploaded_at': 1746604988, 'text': 'image_07052025_10_02_04_010161m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356638863, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/58f8f74cb4d9171d3f9939764a1bf5a7.jpg', 'username': None, 'uploaded_at': 1746604988, 'text': 'image_07052025_10_02_44_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356639818, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/36256b087d5b799a93039f451f2d1a87.jpg', 'username': None, 'uploaded_at': 1746605047, 'text': 'image_07052025_10_02_54_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025246143341064453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22759893, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1781050,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022617578506469727 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= 1781050 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22740041, 'dashboard_result_id': 10375557, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22741189, 'dashboard_result_id': 10375558, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22741710, 'dashboard_result_id': 10375559, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22742314, 'dashboard_result_id': 10375560, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22743939, 'dashboard_result_id': 10375561, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22744354, 'dashboard_result_id': 10375562, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22744792, 'dashboard_result_id': 10375563, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22745552, 'dashboard_result_id': 10375564, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22745924, 'dashboard_result_id': 10375565, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22746301, 'dashboard_result_id': 10375566, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22746900, 'dashboard_result_id': 10375567, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22747363, 'dashboard_result_id': 10375568, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22747808, 'dashboard_result_id': 10375569, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22748285, 'dashboard_result_id': 10375570, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22748931, 'dashboard_result_id': 10375571, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22749585, 'dashboard_result_id': 10375572, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22750050, 'dashboard_result_id': 10375573, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22750360, 'dashboard_result_id': 10375574, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22750640, 'dashboard_result_id': 10375575, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22751196, 'dashboard_result_id': 10375576, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22751988, 'dashboard_result_id': 10375577, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22752170, 'dashboard_result_id': 10375578, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22752559, 'dashboard_result_id': 10375579, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22753186, 'dashboard_result_id': 10375580, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22753874, 'dashboard_result_id': 10375581, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22754426, 'dashboard_result_id': 10375582, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22755041, 'dashboard_result_id': 10375583, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22755575, 'dashboard_result_id': 10375584, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22756353, 'dashboard_result_id': 10375585, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22756932, 'dashboard_result_id': 10375586, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22757570, 'dashboard_result_id': 10375587, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22758740, 'dashboard_result_id': 10375588, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22759267, 'dashboard_result_id': 10375589, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1790046, 'mtr_portfolio_id': 22759893, 'dashboard_result_id': 10375590, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, '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 = 22740041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800912, 'mtr_portfolio_id': 22740041, 'created_at': datetime.datetime(2025, 5, 7, 6, 2), 'result': '0.050109031736622824', 'result_long': None, 'result_double': None}] Qualite : 0.050109031736622824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22740041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22740041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}" where mtr_portfolio_id = 22740041 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22740041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375557, 0.050109031736622824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22741189 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800913, 'mtr_portfolio_id': 22741189, 'created_at': datetime.datetime(2025, 5, 7, 6, 2, 28), 'result': '0.04701292400710008', 'result_long': None, 'result_double': None}] Qualite : 0.04701292400710008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741189 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}" where mtr_portfolio_id = 22741189 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22741189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375558, 0.04701292400710008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22741710 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800914, 'mtr_portfolio_id': 22741710, 'created_at': datetime.datetime(2025, 5, 7, 6, 4), 'result': '0.05760114200802414', 'result_long': None, 'result_double': None}] Qualite : 0.05760114200802414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741710 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}" where mtr_portfolio_id = 22741710 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22741710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375559, 0.05760114200802414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22742314 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800915, 'mtr_portfolio_id': 22742314, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 28), 'result': '0.045077702374708616', 'result_long': None, 'result_double': None}] Qualite : 0.045077702374708616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22742314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22742314 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}" where mtr_portfolio_id = 22742314 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22742314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375560, 0.045077702374708616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22743939 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800916, 'mtr_portfolio_id': 22743939, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 59), 'result': '0.04478232993303851', 'result_long': None, 'result_double': None}] Qualite : 0.04478232993303851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22743939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22743939 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}" where mtr_portfolio_id = 22743939 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22743939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375561, 0.04478232993303851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22744354 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800917, 'mtr_portfolio_id': 22744354, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 28), 'result': '0.035671548309605734', 'result_long': None, 'result_double': None}] Qualite : 0.035671548309605734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744354 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}" where mtr_portfolio_id = 22744354 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22744354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375562, 0.035671548309605734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22744792 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800918, 'mtr_portfolio_id': 22744792, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 59), 'result': '0.054948676811049965', 'result_long': None, 'result_double': None}] Qualite : 0.054948676811049965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744792 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}" where mtr_portfolio_id = 22744792 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22744792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375563, 0.054948676811049965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22745552 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800919, 'mtr_portfolio_id': 22745552, 'created_at': datetime.datetime(2025, 5, 7, 6, 6, 27), 'result': '0.0408681048489511', 'result_long': None, 'result_double': None}] Qualite : 0.0408681048489511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745552 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}" where mtr_portfolio_id = 22745552 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22745552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375564, 0.0408681048489511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22745924 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800920, 'mtr_portfolio_id': 22745924, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 29), 'result': '0.03856288324551846', 'result_long': None, 'result_double': None}] Qualite : 0.03856288324551846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745924 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}" where mtr_portfolio_id = 22745924 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22745924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375565, 0.03856288324551846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22746301 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800921, 'mtr_portfolio_id': 22746301, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 56), 'result': '0.05090100322650896', 'result_long': None, 'result_double': None}] Qualite : 0.05090100322650896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746301 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}" where mtr_portfolio_id = 22746301 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22746301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375566, 0.05090100322650896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22746900 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800922, 'mtr_portfolio_id': 22746900, 'created_at': datetime.datetime(2025, 5, 7, 6, 8, 27), 'result': '0.050751273434838894', 'result_long': None, 'result_double': None}] Qualite : 0.050751273434838894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}" where mtr_portfolio_id = 22746900 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22746900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375567, 0.050751273434838894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22747363 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800923, 'mtr_portfolio_id': 22747363, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 30), 'result': '0.05098369322515066', 'result_long': None, 'result_double': None}] Qualite : 0.05098369322515066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747363 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}" where mtr_portfolio_id = 22747363 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22747363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375568, 0.05098369322515066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22747808 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800924, 'mtr_portfolio_id': 22747808, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 59), 'result': '0.05286859502594896', 'result_long': None, 'result_double': None}] Qualite : 0.05286859502594896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747808 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}" where mtr_portfolio_id = 22747808 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22747808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375569, 0.05286859502594896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22748285 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800925, 'mtr_portfolio_id': 22748285, 'created_at': datetime.datetime(2025, 5, 7, 6, 10, 29), 'result': '0.040572381966203545', 'result_long': None, 'result_double': None}] Qualite : 0.040572381966203545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748285 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}" where mtr_portfolio_id = 22748285 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22748285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375570, 0.040572381966203545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22748931 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800926, 'mtr_portfolio_id': 22748931, 'created_at': datetime.datetime(2025, 5, 7, 6, 16, 30), 'result': '0.04440606911211384', 'result_long': None, 'result_double': None}] Qualite : 0.04440606911211384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748931 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}" where mtr_portfolio_id = 22748931 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22748931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375571, 0.04440606911211384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22749585 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800781, 'mtr_portfolio_id': 22749585, 'created_at': datetime.datetime(2025, 5, 7, 5, 19), 'result': '0.013151463601640639', 'result_long': None, 'result_double': None}] Qualite : 0.013151463601640639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22749585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22749585 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}" where mtr_portfolio_id = 22749585 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22749585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375572, 0.013151463601640639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22750050 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800928, 'mtr_portfolio_id': 22750050, 'created_at': datetime.datetime(2025, 5, 7, 6, 11, 29), 'result': '0.035525455797541246', 'result_long': None, 'result_double': None}] Qualite : 0.035525455797541246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750050 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}" where mtr_portfolio_id = 22750050 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22750050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375573, 0.035525455797541246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22750360 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2800850, 'mtr_portfolio_id': 22750360, 'created_at': datetime.datetime(2025, 5, 7, 5, 46, 59), 'result': '0.04888496095988462', 'result_long': None, 'result_double': None}] Qualite : 0.04888496095988462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750360 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}" where mtr_portfolio_id = 22750360 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22750360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375574, 0.04888496095988462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22750640 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801011, 'mtr_portfolio_id': 22750640, 'created_at': datetime.datetime(2025, 5, 7, 6, 3, 29), 'result': '0.03869306359170151', 'result_long': None, 'result_double': None}] Qualite : 0.03869306359170151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750640 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}" where mtr_portfolio_id = 22750640 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22750640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375575, 0.03869306359170151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22751196 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801080, 'mtr_portfolio_id': 22751196, 'created_at': datetime.datetime(2025, 5, 7, 6, 24, 56), 'result': '0.043858363734555976', 'result_long': None, 'result_double': None}] Qualite : 0.043858363734555976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22751196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22751196 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}" where mtr_portfolio_id = 22751196 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22751196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375576, 0.043858363734555976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_24_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22751988 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801158, 'mtr_portfolio_id': 22751988, 'created_at': datetime.datetime(2025, 5, 7, 6, 32, 57), 'result': '0.037025815144058845', 'result_long': None, 'result_double': None}] Qualite : 0.037025815144058845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22751988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22751988 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, 'pht': 3726}}" where mtr_portfolio_id = 22751988 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22751988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375577, 0.037025815144058845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751988_07-05-2025_06_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751999, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752004, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22752170 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801181, 'mtr_portfolio_id': 22752170, 'created_at': datetime.datetime(2025, 5, 7, 6, 48, 58), 'result': '0.062208916492780146', 'result_long': None, 'result_double': None}] Qualite : 0.062208916492780146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22752170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22752170 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, 'pht': 3726}}" where mtr_portfolio_id = 22752170 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22752170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375578, 0.062208916492780146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752170_07-05-2025_06_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22752195, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22752196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752203, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752204, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752206, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22752559 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801229, 'mtr_portfolio_id': 22752559, 'created_at': datetime.datetime(2025, 5, 7, 7, 2, 57), 'result': '0.05807673542209003', 'result_long': None, 'result_double': None}] Qualite : 0.05807673542209003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22752559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22752559 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, 'pht': 3726}}" where mtr_portfolio_id = 22752559 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22752559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375579, 0.05807673542209003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22752559_07-05-2025_07_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22752584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22752585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22752586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22752587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22752588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22752589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22752590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22752591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22752592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22752593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22752594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22752595, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22753186 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801312, 'mtr_portfolio_id': 22753186, 'created_at': datetime.datetime(2025, 5, 7, 7, 19, 31), 'result': '0.033643019104665654', 'result_long': None, 'result_double': None}] Qualite : 0.033643019104665654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22753186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22753186 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, 'pht': 3726}}" where mtr_portfolio_id = 22753186 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22753186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375580, 0.033643019104665654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753186_07-05-2025_07_19_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22753259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753271, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22753874 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801388, 'mtr_portfolio_id': 22753874, 'created_at': datetime.datetime(2025, 5, 7, 7, 32, 58), 'result': '0.035783283909154806', 'result_long': None, 'result_double': None}] Qualite : 0.035783283909154806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22753874 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22753874 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, 'pht': 3726}}" where mtr_portfolio_id = 22753874 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22753874 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375581, 0.035783283909154806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22753874_07-05-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22753893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22753894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22753895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22753896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22753897, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22753898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22753899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22753900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22753901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22753902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22753903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22753904, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22754426 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801441, 'mtr_portfolio_id': 22754426, 'created_at': datetime.datetime(2025, 5, 7, 7, 48, 58), 'result': '0.03714356172185541', 'result_long': None, 'result_double': None}] Qualite : 0.03714356172185541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22754426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22754426 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, 'pht': 3726}}" where mtr_portfolio_id = 22754426 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22754426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375582, 0.03714356172185541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22754426_07-05-2025_07_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22754432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22754433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22754434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22754435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22754436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22754437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22754438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22754439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22754440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22754441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22754442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22754443, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22755041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801499, 'mtr_portfolio_id': 22755041, 'created_at': datetime.datetime(2025, 5, 7, 8, 2, 59), 'result': '0.03978187668506218', 'result_long': None, 'result_double': None}] Qualite : 0.03978187668506218 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22755041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22755041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, 'pht': 3726}}" where mtr_portfolio_id = 22755041 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22755041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375583, 0.03978187668506218, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755041_07-05-2025_08_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755055, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22755575 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801563, 'mtr_portfolio_id': 22755575, 'created_at': datetime.datetime(2025, 5, 7, 8, 19), 'result': '0.03788803038641343', 'result_long': None, 'result_double': None}] Qualite : 0.03788803038641343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22755575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22755575 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, 'pht': 3726}}" where mtr_portfolio_id = 22755575 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22755575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375584, 0.03788803038641343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22755575_07-05-2025_08_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22755618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22755619, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22755620, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22755621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22755622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22755623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22755624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22755625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22755626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22755627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22755628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22755629, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22756353 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801643, 'mtr_portfolio_id': 22756353, 'created_at': datetime.datetime(2025, 5, 7, 8, 32, 57), 'result': '0.04501757045986341', 'result_long': None, 'result_double': None}] Qualite : 0.04501757045986341 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22756353 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22756353 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, 'pht': 3726}}" where mtr_portfolio_id = 22756353 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22756353 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375585, 0.04501757045986341, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756353_07-05-2025_08_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756408, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22756932 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801694, 'mtr_portfolio_id': 22756932, 'created_at': datetime.datetime(2025, 5, 7, 8, 48, 58), 'result': '0.05114577257248475', 'result_long': None, 'result_double': None}] Qualite : 0.05114577257248475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22756932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22756932 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, 'pht': 3726}}" where mtr_portfolio_id = 22756932 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22756932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375586, 0.05114577257248475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22756932_07-05-2025_08_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22756938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22756939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22756940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22756941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22756942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22756943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22756944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22756945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22756946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22756947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22756948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22756949, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22757570 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801767, 'mtr_portfolio_id': 22757570, 'created_at': datetime.datetime(2025, 5, 7, 9, 2, 58), 'result': '0.035758572732979894', 'result_long': None, 'result_double': None}] Qualite : 0.035758572732979894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22757570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22757570 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, 'pht': 3726}}" where mtr_portfolio_id = 22757570 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22757570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375587, 0.035758572732979894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22757570_07-05-2025_09_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22757600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22757601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22757602, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22757603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22757604, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22757605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22757606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22757607, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22757608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22757609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22757610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22757611, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22758740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2801954, 'mtr_portfolio_id': 22758740, 'created_at': datetime.datetime(2025, 5, 7, 9, 49), 'result': '0.02286731114836762', 'result_long': None, 'result_double': None}] Qualite : 0.02286731114836762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22758740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22758740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, 'pht': 3726}}" where mtr_portfolio_id = 22758740 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22758740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375588, 0.02286731114836762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22758740_07-05-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22758757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22758758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22758759, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22758760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22758761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22758762, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22758763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22758764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22758765, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22758766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22758767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22758768, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22759267 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2802023, 'mtr_portfolio_id': 22759267, 'created_at': datetime.datetime(2025, 5, 7, 10, 2, 59), 'result': '0.027058893693445267', 'result_long': None, 'result_double': None}] Qualite : 0.027058893693445267 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22759267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22759267 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, 'pht': 3726}}" where mtr_portfolio_id = 22759267 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22759267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375589, 0.027058893693445267, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759267_07-05-2025_10_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759300, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759308, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759309, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22759893 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2802101, 'mtr_portfolio_id': 22759893, 'created_at': datetime.datetime(2025, 5, 7, 10, 14, 58), 'result': '0.03994843954487366', 'result_long': None, 'result_double': None}] Qualite : 0.03994843954487366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22759893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_14_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22759893 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_14_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, 'pht': 3726}}" where mtr_portfolio_id = 22759893 and dashboard_run_id = 1790046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22759893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10375590, 0.03994843954487366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22759893_07-05-2025_10_14_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22759911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22759912, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22759913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22759914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22759915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22759916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22759917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22759918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22759919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22759920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22759921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22759922, '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 (22740041,22741189,22741710,22742314,22743939,22744354,22744792,22745552,22745924,22746301,22746900,22747363,22747808,22748285,22748931,22749585,22750050,22750360,22750640,22751196,22751988,22752170,22752559,22753186,22753874,22754426,22755041,22755575,22756353,22756932,22757570,22758740,22759267,22759893) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,), (1356515156,), (1356515208,), (1356515901,), (1356515952,), (1356516009,), (1356516068,), (1356516118,), (1356516709,), (1356516768,), (1356516802,), (1356517611,), (1356517205,), (1356517282,), (1356517353,), (1356517432,), (1356517511,), (1356518522,), (1356518642,), (1356518772,), (1356520657,), (1356520772,), (1356520880,), (1356520942,), (1356521561,), (1356521613,), (1356521662,), (1356521710,), (1356521766,), (1356521814,), (1356521967,), (1356522017,), (1356522065,), (1356522762,), (1356522842,), (1356522931,), (1356522962,), (1356522997,), (1356523046,), (1356523401,), (1356523447,), (1356523501,), (1356523551,), (1356523604,), (1356523663,), (1356524321,), (1356524362,), (1356525241,), (1356525301,), (1356525336,), (1356525381,), (1356525424,), (1356525488,), (1356525876,), (1356525905,), (1356525912,), (1356525916,), (1356525920,), (1356526224,), (1356526289,), (1356526355,), (1356526529,), (1356526599,), (1356526888,), (1356526916,), (1356526943,), (1356526977,), (1356527139,), (1356527144,), (1356527199,), (1356527283,), (1356527286,), (1356527289,), (1356527297,), (1356527302,), (1356527305,), (1356527328,), (1356527330,), (1356527333,), (1356527336,), (1356527340,), (1356527398,), (1356527388,), (1356527390,), (1356527392,), (1356527394,), (1356527420,), (1356527434,), (1356527575,), (1356527577,), (1356527579,), (1356527598,), (1356527622,), (1356527823,), (1356527833,), (1356527838,), (1356527840,), (1356527842,), (1356527859,), (1356527861,), (1356527864,), (1356527867,), (1356527891,), (1356527895,), (1356527897,), (1356527982,), (1356527986,), (1356527991,), (1356527999,), (1356528003,), (1356528011,), (1356528184,), (1356528189,), (1356528198,), (1356528204,), (1356528209,), (1356528214,), (1356528324,), (1356528352,), (1356528387,), (1356528414,), (1356528872,), (1356528898,), (1356528919,), (1356528924,), (1356529012,), (1356529017,), (1356529019,), (1356529022,), (1356529025,), (1356529113,), (1356529117,), (1356529120,), (1356529170,), (1356529182,), (1356529186,), (1356529237,), (1356529247,), (1356529250,), (1356529261,), (1356529264,), (1356529266,), (1356529406,), (1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,), (1356533731,), (1356533754,), (1356533782,), (1356533815,), (1356533856,), (1356534880,), (1356534890,), (1356534942,), (1356534970,), (1356535000,), (1356535530,), (1356535601,), (1356535647,), (1356536690,), (1356536742,), (1356536792,), (1356536816,), (1356537259,), (1356537293,), (1356537324,), (1356537365,), (1356537396,), (1356538843,), (1356538848,), (1356538852,), (1356538856,), (1356551892,), (1356551883,), (1356551888,), (1356551890,), (1356552007,), (1356552011,), (1356552031,), (1356552173,), (1356552180,), (1356552208,), (1356552234,), (1356552260,), (1356552263,), (1356552266,), (1356552269,), (1356552740,), (1356552754,), (1356552757,), (1356552759,), (1356552897,), (1356552899,), (1356552901,), (1356552908,), (1356552920,), (1356553268,), (1356553293,), (1356553318,), (1356553342,), (1356553365,), (1356553686,), (1356553770,), (1356553774,), (1356553784,), (1356553853,), (1356553856,), (1356553858,), (1356553898,), (1356553907,), (1356553909,), (1356553912,), (1356553915,), (1356553919,), (1356553949,), (1356553999,), (1356554078,), (1356554150,), (1356554223,), (1356554229,), (1356554230,), (1356554232,), (1356554290,), (1356554321,), (1356554356,), (1356554390,), (1356554427,), (1356554447,), (1356554451,), (1356554474,), (1356554480,), (1356554508,), (1356554534,), (1356554715,), (1356554717,), (1356554718,), (1356554720,), (1356554723,), (1356554775,), (1356554741,), (1356554744,), (1356554758,), (1356554771,), (1356554792,), (1356554801,), (1356554832,), (1356554842,), (1356554844,), (1356554846,), (1356554849,), (1356554964,), (1356554991,), (1356555019,), (1356555045,), (1356555374,), (1356555409,), (1356555487,), (1356555573,), (1356555603,), (1356555631,), (1356555840,), (1356555843,), (1356555844,), (1356555847,), (1356555849,), (1356555851,), (1356555975,), (1356556009,), (1356556032,), (1356556056,), (1356556246,), (1356556315,), (1356556317,), (1356556320,), (1356556343,), (1356556346,), (1356556349,), (1356556516,), (1356556546,), (1356557073,), (1356556969,), (1356556995,), (1356557021,), (1356557046,), (1356557252,), (1356557264,), (1356557274,), (1356557385,), (1356557410,), (1356557411,), (1356557413,), (1356557416,), (1356557419,), (1356557454,), (1356557456,), (1356557485,), (1356558044,), (1356558086,), (1356558115,), (1356558146,), (1356558764,), (1356558943,), (1356558979,), (1356559005,), (1356559076,), (1356559426,), (1356559432,), (1356559482,), (1356559538,), (1356559600,), (1356559959,), (1356559984,), (1356560009,), (1356560136,), (1356560190,), (1356560246,), (1356560883,), (1356561039,), (1356561143,), (1356561355,), (1356561771,), (1356561812,), (1356561860,), (1356561896,), (1356561943,), (1356562118,), (1356562123,), (1356562149,), (1356562177,), (1356562213,), (1356562263,), (1356562752,), (1356562797,), (1356562823,), (1356562865,), (1356563467,), (1356563522,), (1356563579,), (1356563627,), (1356564196,), (1356564239,), (1356564259,), (1356564262,), (1356564265,), (1356564287,), (1356564291,), (1356564293,), (1356564295,), (1356564296,), (1356565344,), (1356564955,), (1356565038,), (1356565118,), (1356565195,), (1356565273,), (1356566148,), (1356566196,), (1356566696,), (1356566706,), (1356566708,), (1356566720,), (1356566722,), (1356566745,), (1356566747,), (1356566749,), (1356566751,), (1356566754,), (1356566994,), (1356567021,), (1356567046,), (1356567071,), (1356567100,), (1356567126,), (1356567388,), (1356567413,), (1356567741,), (1356567829,), (1356567852,), (1356567879,), (1356567907,), (1356568160,), (1356568166,), (1356568170,), (1356568175,), (1356568179,), (1356568183,), (1356568192,), (1356568194,), (1356568196,), (1356568460,), (1356568508,), (1356568569,), (1356568596,), (1356568667,), (1356568669,), (1356568674,), (1356568677,), (1356568679,), (1356568739,), (1356568740,), (1356568741,), (1356568758,), (1356568783,), (1356569059,), (1356569084,), (1356569299,), (1356569300,), (1356569301,), (1356569302,), (1356569304,), (1356569306,), (1356569343,), (1356569344,), (1356569346,), (1356569348,), (1356569350,), (1356569598,), (1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,), (1356570872,), (1356570900,), (1356570928,), (1356571270,), (1356571296,), (1356571325,), (1356571362,), (1356571392,), (1356571492,), (1356571494,), (1356571520,), (1356571525,), (1356571528,), (1356571529,), (1356571739,), (1356571767,), (1356571795,), (1356571822,), (1356571848,), (1356572115,), (1356572117,), (1356572119,), (1356572121,), (1356572124,), (1356572253,), (1356572254,), (1356572256,), (1356572258,), (1356572299,), (1356572308,), (1356572312,), (1356572316,), (1356572505,), (1356572583,), (1356572610,), (1356572643,), (1356572667,), (1356572695,), (1356572847,), (1356572848,), (1356572849,), (1356572945,), (1356572983,), (1356573007,), (1356573031,), (1356573357,), (1356573389,), (1356573689,), (1356573713,), (1356575159,), (1356575235,), (1356575267,), (1356575306,), (1356575460,), (1356575475,), (1356575487,), (1356575510,), (1356575789,), (1356575727,), (1356575759,), (1356576071,), (1356576097,), (1356576130,), (1356576159,), (1356576662,), (1356576712,), (1356576743,), (1356576747,), (1356576771,), (1356576803,), (1356576805,), (1356576807,), (1356576809,), (1356576830,), (1356576832,), (1356576834,), (1356576837,), (1356576868,), (1356576870,), (1356576871,), (1356576872,), (1356576873,), (1356576875,), (1356576910,), (1356576913,), (1356576915,), (1356576956,), (1356576957,), (1356576958,), (1356576959,), (1356576961,), (1356576985,), (1356576986,), (1356576987,), (1356576988,), (1356577018,), (1356577019,), (1356577021,), (1356577141,), (1356577186,), (1356577188,), (1356577212,), (1356577214,), (1356577242,), (1356577238,), (1356577272,), (1356577280,), (1356577282,), (1356577284,), (1356577286,), (1356577288,), (1356577421,), (1356577445,), (1356577467,), (1356577489,), (1356577819,), (1356577847,), (1356577872,), (1356578109,), (1356578111,), (1356578112,), (1356578113,), (1356578115,), (1356578159,), (1356578160,), (1356578161,), (1356578162,), (1356578164,), (1356578165,), (1356578194,), (1356578207,), (1356578230,), (1356578261,), (1356578290,), (1356578332,), (1356578895,), (1356578940,), (1356579576,), (1356579616,), (1356579624,), (1356579625,), (1356579763,), (1356579764,), (1356579765,), (1356579766,), (1356579768,), (1356580017,), (1356580068,), (1356580069,), (1356580071,), (1356580295,), (1356580320,), (1356580343,), (1356580417,), (1356580517,), (1356580548,), (1356580826,), (1356580827,), (1356580828,), (1356580829,), (1356580830,), (1356581077,), (1356581102,), (1356581128,), (1356581329,), (1356581333,), (1356581334,), (1356581336,), (1356581338,), (1356581340,), (1356581387,), (1356581384,), (1356581385,), (1356581386,), (1356581428,), (1356581429,), (1356581430,), (1356581432,), (1356581459,), (1356581460,), (1356581487,), (1356581488,), (1356581511,), (1356581514,), (1356581515,), (1356581517,), (1356581519,), (1356581541,), (1356581542,), (1356581543,), (1356581544,), (1356581546,), (1356581571,), (1356581572,), (1356581573,), (1356581574,), (1356581630,), (1356581632,), (1356581653,), (1356581706,), (1356581709,), (1356581711,), (1356581713,), (1356581718,), (1356581738,), (1356581742,), (1356581744,), (1356581746,), (1356581748,), (1356581804,), (1356581806,), (1356581808,), (1356581993,), (1356581998,), (1356582017,), (1356582045,), (1356582069,), (1356582104,), (1356582163,), (1356582167,), (1356582215,), (1356582261,), (1356582270,), (1356582272,), (1356582274,), (1356582277,), (1356582283,), (1356582297,), (1356582303,), (1356582307,), (1356582311,), (1356582313,), (1356582315,), (1356582316,), (1356582355,), (1356582352,), (1356582353,), (1356582354,), (1356582373,), (1356582375,), (1356582377,), (1356582380,), (1356582383,), (1356582385,), (1356582408,), (1356582409,), (1356582410,), (1356582435,), (1356582436,), (1356582437,), (1356582438,), (1356582471,), (1356582473,), (1356582523,), (1356582554,), (1356582588,), (1356582700,), (1356582955,), (1356583810,), (1356583836,), (1356583872,), (1356583905,), (1356583939,), (1356584522,), (1356584587,), (1356584589,), (1356584711,), (1356584713,), (1356584737,), (1356584738,), (1356584740,), (1356584742,), (1356584744,), (1356584747,), (1356585201,), (1356585204,), (1356585206,), (1356585208,), (1356585210,), (1356585478,), (1356585508,), (1356585539,), (1356585592,), (1356585645,), (1356586130,), (1356586171,), (1356586222,), (1356586981,), (1356587007,), (1356587021,), (1356587023,), (1356587026,), (1356587825,), (1356587882,), (1356587943,), (1356588003,), (1356588058,), (1356588677,), (1356588542,), (1356588577,), (1356588610,), (1356588647,), (1356588786,), (1356588816,), (1356588843,), (1356588871,), (1356588899,), (1356588978,), (1356588980,), (1356588982,), (1356588986,), (1356588988,), (1356588990,), (1356589016,), (1356589019,), (1356589021,), (1356589023,), (1356589042,), (1356589045,), (1356589049,), (1356589051,), (1356589073,), (1356589077,), (1356589080,), (1356589082,), (1356589086,), (1356589098,), (1356589100,), (1356589103,), (1356589105,), (1356589107,), (1356589110,), (1356589148,), (1356589150,), (1356589178,), (1356589180,), (1356589182,), (1356589184,), (1356589213,), (1356589227,), (1356589230,), (1356589232,), (1356589235,), (1356589237,), (1356589296,), (1356589298,), (1356589366,), (1356600110,), (1356600041,), (1356600533,), (1356601688,), (1356602732,), (1356602733,), (1356602758,), (1356602760,), (1356603106,), (1356603132,), (1356603263,), (1356603356,), (1356603457,), (1356603478,), (1356603804,), (1356603806,), (1356603807,), (1356603808,), (1356603811,), (1356603813,), (1356603840,), (1356603836,), (1356603837,), (1356603838,), (1356603865,), (1356603867,), (1356603869,), (1356603872,), (1356603877,), (1356603882,), (1356603905,), (1356603906,), (1356603907,), (1356603908,), (1356603934,), (1356603935,), (1356603936,), (1356603937,), (1356603938,), (1356603940,), (1356603980,), (1356603982,), (1356603984,), (1356604029,), (1356604033,), (1356604035,), (1356604037,), (1356604063,), (1356604066,), (1356604069,), (1356604071,), (1356604074,), (1356604109,), (1356604112,), (1356604116,), (1356604120,), (1356604184,), (1356604187,), (1356604188,), (1356604189,), (1356604191,), (1356604192,), (1356604218,), (1356604219,), (1356604220,), (1356604222,), (1356604265,), (1356604266,), (1356604267,), (1356604268,), (1356604270,), (1356604272,), (1356604352,), (1356604377,), (1356604403,), (1356604432,), (1356604614,), (1356604615,), (1356604616,), (1356604617,), (1356604618,), (1356604637,), (1356604881,), (1356604882,), (1356604903,), (1356604923,), (1356605008,), (1356605040,), (1356605105,), (1356605168,), (1356605175,), (1356605191,), (1356605209,), (1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,), (1356607156,), (1356607158,), (1356607160,), (1356607161,), (1356607162,), (1356607165,), (1356607200,), (1356607197,), (1356607198,), (1356607462,), (1356607488,), (1356607515,), (1356607541,), (1356607566,), (1356607592,), (1356607688,), (1356607689,), (1356607690,), (1356607691,), (1356607693,), (1356607727,), (1356607728,), (1356607729,), (1356607730,), (1356607731,), (1356607771,), (1356607772,), (1356607773,), (1356607775,), (1356607776,), (1356607778,), (1356607818,), (1356607819,), (1356607820,), (1356607873,), (1356607875,), (1356607876,), (1356607877,), (1356607878,), (1356607880,), (1356607905,), (1356607906,), (1356607907,), (1356607908,), (1356607938,), (1356607939,), (1356607940,), (1356607941,), (1356607942,), (1356607972,), (1356607978,), (1356607980,), (1356607981,), (1356607999,), (1356608007,), (1356608015,), (1356608017,), (1356608020,), (1356608022,), (1356608044,), (1356608046,), (1356608049,), (1356608050,), (1356608053,), (1356608056,), (1356608074,), (1356608101,), (1356608130,), (1356608157,), (1356609466,), (1356609470,), (1356609475,), (1356609479,), (1356609591,), (1356609611,), (1356609640,), (1356609678,), (1356609706,), (1356609738,), (1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,), (1356610554,), (1356610557,), (1356610559,), (1356610561,), (1356610563,), (1356610566,), (1356610589,), (1356610593,), (1356610595,), (1356610597,), (1356610600,), (1356610646,), (1356610639,), (1356610641,), (1356610642,), (1356610643,), (1356610645,), (1356610670,), (1356610672,), (1356610674,), (1356610677,), (1356610681,), (1356610706,), (1356610707,), (1356610710,), (1356610714,), (1356610718,), (1356610720,), (1356610743,), (1356610744,), (1356610747,), (1356610749,), (1356610778,), (1356610784,), (1356610785,), (1356610788,), (1356610791,), (1356610792,), (1356610884,), (1356610888,), (1356610891,), (1356610899,), (1356610938,), (1356610940,), (1356610942,), (1356610944,), (1356610947,), (1356610951,), (1356610971,), (1356610974,), (1356610976,), (1356610978,), (1356611016,), (1356611017,), (1356611020,), (1356611022,), (1356611025,), (1356611058,), (1356611060,), (1356611063,), (1356611064,), (1356611067,), (1356611069,), (1356611108,), (1356611111,), (1356611115,), (1356611117,), (1356611121,), (1356611123,), (1356611152,), (1356611155,), (1356611157,), (1356611159,), (1356611161,), (1356611165,), (1356611188,), (1356611190,), (1356611193,), (1356611195,), (1356611199,), (1356611216,), (1356611218,), (1356611220,), (1356611222,), (1356611226,), (1356611250,), (1356611254,), (1356611256,), (1356611258,), (1356611263,), (1356611342,), (1356611332,), (1356611334,), (1356611336,), (1356611338,), (1356611368,), (1356611370,), (1356611372,), (1356611374,), (1356611379,), (1356611382,), (1356611410,), (1356611412,), (1356611414,), (1356611416,), (1356611420,), (1356611463,), (1356611466,), (1356611468,), (1356611472,), (1356611475,), (1356611477,), (1356611513,), (1356611515,), (1356611517,), (1356611521,), (1356611554,), (1356611558,), (1356611561,), (1356611564,), (1356611567,), (1356611570,), (1356611602,), (1356611604,), (1356611606,), (1356611648,), (1356611661,), (1356611663,), (1356611667,), (1356611670,), (1356611695,), (1356611699,), (1356611702,), (1356611705,), (1356611707,), (1356611711,), (1356611742,), (1356611745,), (1356611749,), (1356611752,), (1356611802,), (1356611806,), (1356611809,), (1356611812,), (1356611816,), (1356611820,), (1356611859,), (1356611863,), (1356611866,), (1356611870,), (1356611901,), (1356611906,), (1356611909,), (1356611942,), (1356611944,), (1356611946,), (1356611948,), (1356611952,), (1356611982,), (1356611985,), (1356611988,), (1356611991,), (1356611995,), (1356611997,), (1356612034,), (1356612016,), (1356612018,), (1356612020,), (1356612022,), (1356612026,), (1356612053,), (1356612055,), (1356612057,), (1356612083,), (1356612085,), (1356612087,), (1356612091,), (1356612096,), (1356612099,), (1356612138,), (1356612140,), (1356612142,), (1356612144,), (1356612181,), (1356612183,), (1356612185,), (1356612233,), (1356612235,), (1356612237,), (1356612239,), (1356612241,), (1356612245,), (1356612299,), (1356612302,), (1356612305,), (1356612309,), (1356612333,), (1356612335,), (1356612337,), (1356612339,), (1356612341,), (1356612379,), (1356612382,), (1356612386,), (1356612389,), (1356612391,), (1356612393,), (1356612423,), (1356612436,), (1356612438,), (1356612440,), (1356612442,), (1356612500,), (1356612503,), (1356612505,), (1356612507,), (1356612509,), (1356612549,), (1356612577,), (1356612605,), (1356612631,), (1356612660,), (1356612990,), (1356613017,), (1356613050,), (1356613105,), (1356613154,), (1356614058,), (1356614070,), (1356614099,), (1356614129,), (1356614178,), (1356614187,), (1356614274,), (1356614265,), (1356614268,), (1356614271,), (1356614315,), (1356614319,), (1356614322,), (1356614325,), (1356614328,), (1356614365,), (1356614369,), (1356614372,), (1356614411,), (1356614416,), (1356614418,), (1356614421,), (1356614424,), (1356614466,), (1356614470,), (1356614473,), (1356614476,), (1356614480,), (1356614511,), (1356614524,), (1356614527,), (1356614531,), (1356614535,), (1356614565,), (1356614568,), (1356614573,), (1356614577,), (1356614582,), (1356614586,), (1356614610,), (1356614613,), (1356614617,), (1356614620,), (1356614649,), (1356614652,), (1356614655,), (1356614659,), (1356614664,), (1356614666,), (1356614720,), (1356614724,), (1356614741,), (1356614745,), (1356614746,), (1356614827,), (1356614829,), (1356614831,), (1356614832,), (1356614835,), (1356614889,), (1356614892,), (1356614896,), (1356614899,), (1356614903,), (1356614905,), (1356614960,), (1356614961,), (1356614965,), (1356614968,), (1356614971,), (1356615014,), (1356615017,), (1356615021,), (1356615024,), (1356615026,), (1356615029,), (1356615084,), (1356615093,), (1356615097,), (1356615099,), (1356615103,), (1356615175,), (1356615154,), (1356615163,), (1356615166,), (1356615168,), (1356615173,), (1356615207,), (1356615211,), (1356615214,), (1356615218,), (1356615222,), (1356615258,), (1356615270,), (1356615297,), (1356615306,), (1356615308,), (1356615414,), (1356615419,), (1356615438,), (1356615456,), (1356615472,), (1356615579,), (1356615589,), (1356615593,), (1356615699,), (1356615704,), (1356615707,), (1356615712,), (1356615715,), (1356615718,), (1356615764,), (1356615774,), (1356615777,), (1356616179,), (1356616206,), (1356616251,), (1356616286,), (1356616319,), (1356616327,), (1356616472,), (1356616478,), (1356616483,), (1356616488,), (1356616491,), (1356616631,), (1356616634,), (1356616637,), (1356616648,), (1356616673,), (1356616702,), (1356616793,), (1356616798,), (1356616802,), (1356616811,), (1356616851,), (1356616878,), (1356617072,), (1356617101,), (1356617119,), (1356617123,), (1356617223,), (1356617229,), (1356617237,), (1356617245,), (1356617249,), (1356617252,), (1356617298,), (1356617301,), (1356617304,), (1356617356,), (1356617367,), (1356617372,), (1356617375,), (1356617380,), (1356617384,), (1356617500,), (1356617479,), (1356617482,), (1356617486,), (1356617489,), (1356617495,), (1356617547,), (1356617554,), (1356617565,), (1356617612,), (1356617616,), (1356617619,), (1356617624,), (1356617628,), (1356617632,), (1356617676,), (1356617681,), (1356617685,), (1356617687,), (1356617889,), (1356617895,), (1356617898,), (1356617902,), (1356617947,), (1356617949,), (1356617952,), (1356617954,), (1356617955,), (1356617957,), (1356617987,), (1356617993,), (1356617995,), (1356617997,), (1356618002,), (1356618027,), (1356618029,), (1356618033,), (1356618038,), (1356618041,), (1356618069,), (1356618071,), (1356618074,), (1356618168,), (1356618181,), (1356618186,), (1356618188,), (1356618201,), (1356618214,), (1356618270,), (1356618273,), (1356618276,), (1356618278,), (1356618279,), (1356618407,), (1356618411,), (1356618416,), (1356618418,), (1356618465,), (1356618471,), (1356618475,), (1356618488,), (1356618496,), (1356618504,), (1356618557,), (1356618567,), (1356618570,), (1356618574,), (1356618590,), (1356618667,), (1356618680,), (1356618686,), (1356618688,), (1356618824,), (1356618806,), (1356618810,), (1356618814,), (1356618816,), (1356618820,), (1356618849,), (1356618853,), (1356618865,), (1356618867,), (1356618903,), (1356618907,), (1356618909,), (1356618912,), (1356618916,), (1356618920,), (1356618950,), (1356618953,), (1356618956,), (1356619024,), (1356619030,), (1356619038,), (1356619045,), (1356619048,), (1356619069,), (1356619204,), (1356619208,), (1356619216,), (1356619219,), (1356619222,), (1356619226,), (1356619315,), (1356619326,), (1356619330,), (1356619367,), (1356619369,), (1356619373,), (1356619376,), (1356619380,), (1356619384,), (1356619429,), (1356619439,), (1356619447,), (1356619454,), (1356619548,), (1356619555,), (1356619564,), (1356619568,), (1356619571,), (1356619656,), (1356619659,), (1356619686,), (1356619690,), (1356619696,), (1356619716,), (1356619938,), (1356619943,), (1356619948,), (1356620144,), (1356620173,), (1356620206,), (1356620229,), (1356620259,), (1356620288,), (1356620689,), (1356620714,), (1356620775,), (1356620826,), (1356621295,), (1356621103,), (1356621204,), (1356621235,), (1356621265,), (1356621568,), (1356621598,), (1356621625,), (1356621658,), (1356621756,), (1356621782,), (1356621807,), (1356621834,), (1356621871,), (1356622044,), (1356622048,), (1356622051,), (1356622055,), (1356622070,), (1356622116,), (1356622120,), (1356622123,), (1356622209,), (1356622213,), (1356622217,), (1356622222,), (1356622269,), (1356622270,), (1356622272,), (1356622274,), (1356622283,), (1356622286,), (1356622358,), (1356622365,), (1356622369,), (1356622452,), (1356622454,), (1356622456,), (1356622458,), (1356622459,), (1356622463,), (1356622504,), (1356622517,), (1356622523,), (1356622527,), (1356622638,), (1356622668,), (1356622674,), (1356622685,), (1356622699,), (1356622704,), (1356622783,), (1356622807,), (1356622814,), (1356622826,), (1356622960,), (1356622984,), (1356623054,), (1356623083,), (1356623110,), (1356623137,), (1356623287,), (1356623295,), (1356623308,), (1356623335,), (1356623602,), (1356623614,), (1356623618,), (1356623619,), (1356623620,), (1356623625,), (1356623771,), (1356623753,), (1356623757,), (1356623761,), (1356623765,), (1356623767,), (1356623801,), (1356623804,), (1356623806,), (1356624009,), (1356624012,), (1356624018,), (1356624025,), (1356624034,), (1356624037,), (1356624134,), (1356624135,), (1356624137,), (1356624139,), (1356624142,), (1356624208,), (1356624211,), (1356624225,), (1356624240,), (1356624244,), (1356624407,), (1356624413,), (1356624415,), (1356624417,), (1356624419,), (1356624421,), (1356624506,), (1356624533,), (1356624563,), (1356624806,), (1356624809,), (1356624812,), (1356624816,), (1356624819,), (1356624881,), (1356624884,), (1356624887,), (1356624890,), (1356625099,), (1356625116,), (1356625124,), (1356625263,), (1356625265,), (1356625267,), (1356625269,), (1356625313,), (1356625318,), (1356625320,), (1356625323,), (1356625330,), (1356625343,), (1356625441,), (1356625469,), (1356625473,), (1356625527,), (1356625530,), (1356625531,), (1356625534,), (1356625536,), (1356625542,), (1356625580,), (1356625586,), (1356625591,), (1356625602,), (1356625606,), (1356625730,), (1356625723,), (1356625724,), (1356625727,), (1356625781,), (1356625793,), (1356625798,), (1356625801,), (1356625804,), (1356625845,), (1356625847,), (1356625850,), (1356625856,), (1356625925,), (1356625927,), (1356625932,), (1356625937,), (1356626066,), (1356626099,), (1356626129,), (1356626160,), (1356626195,), (1356626223,), (1356626473,), (1356626477,), (1356626480,), (1356626483,), (1356626765,), (1356626773,), (1356626782,), (1356626790,), (1356626842,), (1356626845,), (1356626849,), (1356626854,), (1356626859,), (1356626864,), (1356626893,), (1356626896,), (1356626899,), (1356626950,), (1356626953,), (1356626959,), (1356626962,), (1356626967,), (1356626972,), (1356627044,), (1356627050,), (1356627065,), (1356627068,), (1356627073,), (1356627076,), (1356627137,), (1356627140,), (1356627147,), (1356627151,), (1356627238,), (1356627254,), (1356627257,), (1356627265,), (1356627286,), (1356627310,), (1356627470,), (1356627474,), (1356627477,), (1356627483,), (1356627491,), (1356627497,), (1356627570,), (1356627577,), (1356627579,), (1356627738,), (1356627623,), (1356627626,), (1356627651,), (1356627678,), (1356627709,), (1356627966,), (1356627968,), (1356627970,), (1356628011,), (1356628017,), (1356628022,), (1356628027,), (1356628028,), (1356628031,), (1356628194,), (1356628202,), (1356628204,), (1356628206,), (1356628209,), (1356628263,), (1356628271,), (1356628281,), (1356628287,), (1356628291,), (1356628408,), (1356628410,), (1356628411,), (1356628413,), (1356628416,), (1356628468,), (1356628472,), (1356628475,), (1356628479,), (1356628506,), (1356628628,), (1356628631,), (1356628633,), (1356628635,), (1356628638,), (1356628692,), (1356628697,), (1356628700,), (1356628703,), (1356628705,), (1356628708,), (1356628748,), (1356628752,), (1356628756,), (1356628759,), (1356628761,), (1356628789,), (1356628796,), (1356628798,), (1356628801,), (1356628804,), (1356628807,), (1356628831,), (1356628834,), (1356628837,), (1356628841,), (1356628845,), (1356628868,), (1356628870,), (1356628873,), (1356628882,), (1356628887,), (1356628941,), (1356628947,), (1356628953,), (1356628960,), (1356628967,), (1356628971,), (1356629011,), (1356632675,), (1356632720,), (1356632723,), (1356632726,), (1356632728,), (1356632732,), (1356632735,), (1356632768,), (1356632773,), (1356632777,), (1356632782,), (1356632849,), (1356632873,), (1356632878,), (1356632881,), (1356632883,), (1356632887,), (1356632890,), (1356633048,), (1356633051,), (1356633055,), (1356633058,), (1356633102,), (1356633104,), (1356633107,), (1356633110,), (1356633113,), (1356633142,), (1356633145,), (1356633147,), (1356633151,), (1356633154,), (1356633165,), (1356633203,), (1356633218,), (1356633229,), (1356633264,), (1356633267,), (1356633269,), (1356633270,), (1356633272,), (1356633274,), (1356633309,), (1356633311,), (1356633319,), (1356633323,), (1356633423,), (1356633432,), (1356633439,), (1356633449,), (1356633454,), (1356633477,), (1356633782,), (1356633783,), (1356633787,), (1356633792,), (1356633802,), (1356633803,), (1356633867,), (1356633869,), (1356633870,), (1356633872,), (1356633873,), (1356633876,), (1356633911,), (1356633913,), (1356633915,), (1356633917,), (1356633922,), (1356633977,), (1356633979,), (1356633981,), (1356633982,), (1356633985,), (1356633987,), (1356634032,), (1356634015,), (1356634019,), (1356634021,), (1356634024,), (1356634028,), (1356634118,), (1356634125,), (1356634129,), (1356634132,), (1356634136,), (1356634140,), (1356634195,), (1356634197,), (1356634200,), (1356634203,), (1356634206,), (1356634230,), (1356634232,), (1356634235,), (1356634238,), (1356634240,), (1356634242,), (1356634275,), (1356634277,), (1356634279,), (1356634281,), (1356634347,), (1356634357,), (1356634361,), (1356634366,), (1356634368,), (1356634370,), (1356634538,), (1356634563,), (1356634590,), (1356634616,), (1356634643,), (1356634965,), (1356634997,), (1356635024,), (1356635054,), (1356635080,), (1356635108,), (1356635343,), (1356635366,), (1356635395,), (1356635727,), (1356635733,), (1356635735,), (1356635737,), (1356635740,), (1356635742,), (1356635770,), (1356635772,), (1356635773,), (1356635774,), (1356635776,), (1356635790,), (1356635813,), (1356635814,), (1356635819,), (1356636174,), (1356636223,), (1356636274,), (1356636324,), (1356637736,), (1356638863,), (1356638892,), (1356638932,), (1356639715,), (1356639783,), (1356639784,), (1356639815,), (1356639818,), (1356639925,), (1356639931,), (1356639935,), (1356639939,), (1356639945,), (1356639977,), (1356639981,), (1356639985,), (1356640027,), (1356640030,), (1356640033,), (1356640035,), (1356640038,), (1356640042,), (1356640071,), (1356640075,), (1356640078,), (1356640082,), (1356640086,), (1356640089,), (1356640127,), (1356640129,), (1356640133,), (1356640136,), (1356640181,), (1356640186,), (1356640192,), (1356640196,), (1356640313,), (1356640323,), (1356640327,), (1356640332,), (1356640336,), (1356640453,), (1356640456,), (1356640461,), (1356640464,), (1356640500,), (1356640509,), (1356640512,), (1356640515,), (1356640520,), (1356640524,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22759893]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] map_info['map_portfolio_photo'] : {22759893: [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500, 1356640464, 1356640461, 1356640456, 1356640453, 1356640336, 1356640332, 1356640327, 1356640323, 1356640313, 1356640196, 1356640192, 1356640186, 1356640181, 1356640136, 1356640133, 1356640129, 1356640127, 1356640089, 1356640086, 1356640082, 1356640078, 1356640075, 1356640071, 1356640042, 1356640038, 1356640035, 1356640033, 1356640030, 1356640027, 1356639985, 1356639981, 1356639977, 1356639945, 1356639939, 1356639935, 1356639931, 1356639925, 1356639818, 1356639815, 1356639784, 1356639783, 1356639715, 1356638932, 1356638892, 1356638863]} final : True mtd_id 4302 list_pids : [1356640524, 1356640520, 1356640515, 1356640512, 1356640509, 1356640500] Looping around the photos to save general results len do output : 1 /22759893Didn'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, '2802101') ('4302', '22759893', '1356640524', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640520', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640515', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640512', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640509', None, None, None, None, None, '2802101') ('4302', None, None, None, None, None, None, None, '2802101') ('4302', '22759893', '1356640500', None, None, None, None, None, '2802101') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '22759893', 'None', None, None, None, None, '2802101'), ('4302', '22759893', '1356640524', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640520', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640515', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640512', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640509', None, None, None, None, None, '2802101'), ('4302', '22759893', '1356640500', None, None, None, None, None, '2802101')] time used for this insertion : 0.012211799621582031 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1005799770355225 time spend to save output : 0.012506961822509766 total time spend for step 5 : 2.1130869388580322 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 (2802101) 2.25user 2.54system 0:11.39elapsed 42%CPU (0avgtext+0avgdata 158980maxresident)k 22928inputs+11008outputs (178major+75229minor)pagefaults 0swaps