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 : 2244497 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 (4208501) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4208501) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337147 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4208501'] with mtr_portfolio_ids : ['29337147'] and first list_photo_ids : [] new path : /proc/2244497/ Name: python3 Umask: 0002 State: R (running) Tgid: 2244497 Ngid: 0 Pid: 2244497 PPid: 2244496 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2244497 NSpid: 2244497 NSpgid: 2243038 NSsid: 2243038 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105312 kB VmRSS: 105312 kB RssAnon: 66292 kB RssFile: 39020 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 41 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2244497', 'Ngid': '0', 'Pid': '2244497', 'PPid': '2244496', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2244497', 'NSpid': '2244497', 'NSpgid': '2243038', 'NSsid': '2243038', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105312 kB', 'VmRSS': '105312 kB', 'RssAnon': '66292 kB', 'RssFile': '39020 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '41', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '2244497', '1113364', '0', '1113364', '872092', '105312', b'', 'marlene', '4208501') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29337147) 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 (4208501 ) ) 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 (29337147) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398866475, 'portfolio_id': 29337147}, {'photo_id': 1398866444, 'portfolio_id': 29337147}, {'photo_id': 1398866443, 'portfolio_id': 29337147}, {'photo_id': 1398866434, 'portfolio_id': 29337147}, {'photo_id': 1398866426, 'portfolio_id': 29337147}, {'photo_id': 1398866423, 'portfolio_id': 29337147}, {'photo_id': 1398866416, 'portfolio_id': 29337147}, {'photo_id': 1398866414, 'portfolio_id': 29337147}, {'photo_id': 1398866412, 'portfolio_id': 29337147}, {'photo_id': 1398866410, 'portfolio_id': 29337147}, {'photo_id': 1398866406, 'portfolio_id': 29337147}, {'photo_id': 1398866402, 'portfolio_id': 29337147}, {'photo_id': 1398866393, 'portfolio_id': 29337147}, {'photo_id': 1398866389, 'portfolio_id': 29337147}, {'photo_id': 1398866387, 'portfolio_id': 29337147}, {'photo_id': 1398866373, 'portfolio_id': 29337147}, {'photo_id': 1398866369, 'portfolio_id': 29337147}, {'photo_id': 1398866366, 'portfolio_id': 29337147}, {'photo_id': 1398866363, 'portfolio_id': 29337147}, {'photo_id': 1398866362, 'portfolio_id': 29337147}, {'photo_id': 1398866360, 'portfolio_id': 29337147}, {'photo_id': 1398866354, 'portfolio_id': 29337147}, {'photo_id': 1398866353, 'portfolio_id': 29337147}, {'photo_id': 1398866348, 'portfolio_id': 29337147}, {'photo_id': 1398866311, 'portfolio_id': 29337147}, {'photo_id': 1398866302, 'portfolio_id': 29337147}, {'photo_id': 1398866297, 'portfolio_id': 29337147}, {'photo_id': 1398866296, 'portfolio_id': 29337147}, {'photo_id': 1398866294, 'portfolio_id': 29337147}, {'photo_id': 1398866292, 'portfolio_id': 29337147}, {'photo_id': 1398866274, 'portfolio_id': 29337147}, {'photo_id': 1398866273, 'portfolio_id': 29337147}, {'photo_id': 1398866272, 'portfolio_id': 29337147}, {'photo_id': 1398866271, 'portfolio_id': 29337147}, {'photo_id': 1398866262, 'portfolio_id': 29337147}, {'photo_id': 1398866261, 'portfolio_id': 29337147}, {'photo_id': 1398866228, 'portfolio_id': 29337147}, {'photo_id': 1398866215, 'portfolio_id': 29337147}, {'photo_id': 1398866203, 'portfolio_id': 29337147}, {'photo_id': 1398866202, 'portfolio_id': 29337147}, {'photo_id': 1398866201, 'portfolio_id': 29337147}, {'photo_id': 1398866200, 'portfolio_id': 29337147}, {'photo_id': 1398866198, 'portfolio_id': 29337147}, {'photo_id': 1398866197, 'portfolio_id': 29337147}, {'photo_id': 1398866194, 'portfolio_id': 29337147}, {'photo_id': 1398866146, 'portfolio_id': 29337147}, {'photo_id': 1398866126, 'portfolio_id': 29337147}, {'photo_id': 1398866120, 'portfolio_id': 29337147}, {'photo_id': 1398866113, 'portfolio_id': 29337147}, {'photo_id': 1398866112, 'portfolio_id': 29337147}, {'photo_id': 1398866110, 'portfolio_id': 29337147}, {'photo_id': 1398866108, 'portfolio_id': 29337147}, {'photo_id': 1398866105, 'portfolio_id': 29337147}, {'photo_id': 1398866101, 'portfolio_id': 29337147}, {'photo_id': 1398866067, 'portfolio_id': 29337147}, {'photo_id': 1398866065, 'portfolio_id': 29337147}, {'photo_id': 1398866063, 'portfolio_id': 29337147}, {'photo_id': 1398866061, 'portfolio_id': 29337147}, {'photo_id': 1398866004, 'portfolio_id': 29337147}, {'photo_id': 1398865993, 'portfolio_id': 29337147}, {'photo_id': 1398865979, 'portfolio_id': 29337147}, {'photo_id': 1398865977, 'portfolio_id': 29337147}, {'photo_id': 1398865975, 'portfolio_id': 29337147}, {'photo_id': 1398865973, 'portfolio_id': 29337147}, {'photo_id': 1398865899, 'portfolio_id': 29337147}, {'photo_id': 1398865893, 'portfolio_id': 29337147}, {'photo_id': 1398865867, 'portfolio_id': 29337147}, {'photo_id': 1398865832, 'portfolio_id': 29337147}, {'photo_id': 1398865765, 'portfolio_id': 29337147}, {'photo_id': 1398865763, 'portfolio_id': 29337147}, {'photo_id': 1398865759, 'portfolio_id': 29337147}, {'photo_id': 1398865755, 'portfolio_id': 29337147}, {'photo_id': 1398865754, 'portfolio_id': 29337147}] map_portfolio_id_photo_id: {29337147: [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366, 1398866363, 1398866362, 1398866360, 1398866354, 1398866353, 1398866348, 1398866311, 1398866302, 1398866297, 1398866296, 1398866294, 1398866292, 1398866274, 1398866273, 1398866272, 1398866271, 1398866262, 1398866261, 1398866228, 1398866215, 1398866203, 1398866202, 1398866201, 1398866200, 1398866198, 1398866197, 1398866194, 1398866146, 1398866126, 1398866120, 1398866113, 1398866112, 1398866110, 1398866108, 1398866105, 1398866101, 1398866067, 1398866065, 1398866063, 1398866061, 1398866004, 1398865993, 1398865979, 1398865977, 1398865975, 1398865973, 1398865899, 1398865893, 1398865867, 1398865832, 1398865765, 1398865763, 1398865759, 1398865755, 1398865754]} ##### 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.020226478576660156 #### 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 Thu Dec 11 11:28:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29337147) 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 : 29337147 get user id for portfolio 29337147 get sub ptf for main ptf 29337147, type 3726 and hashtags ['plastique', 'papier', 'mal_croppe', 'kraft', 'flou', 'Carton_brun', 'environnement', 'Carton_gris', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29337147 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','kraft','flou','Carton_brun','environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29337147 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','kraft','flou','Carton_brun','environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29337147, 'sub_port_id': 29337210, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975700, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'flou': {'main_port_id': 29337147, 'sub_port_id': 29337211, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975701, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'metal': {'main_port_id': 29337147, 'sub_port_id': 29337212, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975702, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'mal_croppe': {'main_port_id': 29337147, 'sub_port_id': 29337213, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975703, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'environnement': {'main_port_id': 29337147, 'sub_port_id': 29337214, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975704, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'papier': {'main_port_id': 29337147, 'sub_port_id': 29337215, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975705, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'autre_refus': {'main_port_id': 29337147, 'sub_port_id': 29337216, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975706, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'kraft': {'main_port_id': 29337147, 'sub_port_id': 29337217, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975707, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'cartonnette': {'main_port_id': 29337147, 'sub_port_id': 29337218, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975708, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29337147, 'sub_port_id': 29337219, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975709, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'Carton_brun': {'main_port_id': 29337147, 'sub_port_id': 29337220, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975710, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}, 'plastique': {'main_port_id': 29337147, 'sub_port_id': 29337221, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975711, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29337210 , 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=29337147 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 (29337210) result : ((1398866265,), (1398866277,), (1398866278,), (1398866279,), (1398866280,), (1398866344,), (1398866355,), (1398866375,), (1398866376,), (1398866377,), (1398866378,), (1398866482,), (1398866513,), (1398866514,), (1398866515,), (1398866516,), (1398866517,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337211 , 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=29337147 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 (29337211) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337212 , 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=29337147 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 (29337212) result : ((1398866352,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337213 , 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=29337147 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 (29337213) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337214 , 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=29337147 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 (29337214) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337215 , 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=29337147 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 (29337215) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337216 , 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=29337147 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 (29337216) result : ((1398866511,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337217 , 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=29337147 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 (29337217) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337218 , 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=29337147 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 (29337218) result : ((1398866282,), (1398866346,), (1398866347,), (1398866349,), (1398866350,), (1398866383,), (1398866435,), (1398866483,), (1398866520,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337219 , 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=29337147 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 (29337219) result : ((1398866275,), (1398866276,), (1398866343,), (1398866371,), (1398866372,), (1398866432,), (1398866433,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337220 , 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=29337147 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 (29337220) result : ((1398866284,), (1398866351,), (1398866357,), (1398866358,), (1398866384,), (1398866437,), (1398866438,), (1398866439,), (1398866440,), (1398866484,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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 29337221 , 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=29337147 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 (29337221) result : ((1398866285,), (1398866286,), (1398866287,), (1398866385,), (1398866386,), (1398866388,), (1398866485,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29337147) result : ((1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) 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 (1398866200) 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`=29337147 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','kraft','flou','Carton_brun','environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29337147 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','kraft','flou','Carton_brun','environnement','Carton_gris','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29337147, 'sub_port_id': 29337222, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975712, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'flou': {'main_port_id': 29337147, 'sub_port_id': 29337223, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975713, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'metal': {'main_port_id': 29337147, 'sub_port_id': 29337224, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975714, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'mal_croppe': {'main_port_id': 29337147, 'sub_port_id': 29337225, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975715, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'environnement': {'main_port_id': 29337147, 'sub_port_id': 29337226, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975716, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'papier': {'main_port_id': 29337147, 'sub_port_id': 29337227, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975717, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'autre_refus': {'main_port_id': 29337147, 'sub_port_id': 29337228, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975718, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'kraft': {'main_port_id': 29337147, 'sub_port_id': 29337229, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975719, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'cartonnette': {'main_port_id': 29337147, 'sub_port_id': 29337231, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975720, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 29337147, 'sub_port_id': 29337232, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975721, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'Carton_brun': {'main_port_id': 29337147, 'sub_port_id': 29337233, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975722, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 19), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}, 'plastique': {'main_port_id': 29337147, 'sub_port_id': 29337234, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19975723, 'last_updated_at': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 11, 11, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 11, 11, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29337234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29337221 lien utilise dans velours : https://marlene.fotonower.com/velours/29337222,29337223,29337224,29337225,29337226,29337227,29337228,29337229,29337231,29337232,29337233,29337234?tags=Carton_gris,flou,metal,mal_croppe,environnement,papier,autre_refus,kraft,cartonnette,Teint_Dans_La_Masse,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29337147]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] map_info['map_portfolio_photo'] : {29337147: [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366, 1398866363, 1398866362, 1398866360, 1398866354, 1398866353, 1398866348, 1398866311, 1398866302, 1398866297, 1398866296, 1398866294, 1398866292, 1398866274, 1398866273, 1398866272, 1398866271, 1398866262, 1398866261, 1398866228, 1398866215, 1398866203, 1398866202, 1398866201, 1398866200, 1398866198, 1398866197, 1398866194, 1398866146, 1398866126, 1398866120, 1398866113, 1398866112, 1398866110, 1398866108, 1398866105, 1398866101, 1398866067, 1398866065, 1398866063, 1398866061, 1398866004, 1398865993, 1398865979, 1398865977, 1398865975, 1398865973, 1398865899, 1398865893, 1398865867, 1398865832, 1398865765, 1398865763, 1398865759, 1398865755, 1398865754]} final : False mtd_id 4302 list_pids : [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] Looping around the photos to save general results len do output : 1 /29337147. 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, '4208501') ('4302', '29337147', '1398866475', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866444', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866443', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866434', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866426', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866423', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866416', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866414', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866412', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866410', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866406', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866402', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866393', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866389', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866387', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866373', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866369', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866366', None, None, None, None, None, '4208501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29337147', "{'Carton_gris': 29337210, 'flou': 29337211, 'metal': 29337212, 'mal_croppe': 29337213, 'environnement': 29337214, 'papier': 29337215, 'autre_refus': 29337216, 'kraft': 29337217, 'cartonnette': 29337218, 'Teint_Dans_La_Masse': 29337219, 'Carton_brun': 29337220, 'plastique': 29337221}", None, None, None, None, '4208501'), ('4302', '29337147', '1398866475', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866444', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866443', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866434', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866426', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866423', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866416', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866414', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866412', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866410', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866406', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866402', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866393', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866389', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866387', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866373', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866369', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866366', None, None, None, None, None, '4208501')] time used for this insertion : 0.018671274185180664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.582392692565918 time spend to save output : 0.019092559814453125 total time spend for step 1 : 0.6014852523803711 step2:final Thu Dec 11 11:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29337147) 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 29337147 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398865765,1398865763,1398865759,1398865755,1398865754,1398865899,1398865893,1398865867,1398865832,1398866004,1398865993,1398865979,1398865977,1398865975,1398865973,1398866067,1398866065,1398866063,1398866061,1398866113,1398866112,1398866110,1398866108,1398866105,1398866202,1398866101,1398866200,1398866197,1398866146,1398866475,1398866126,1398866120,1398866444,1398866228,1398866416,1398866215,1398866414,1398866203,1398866412,1398866311,1398866302,1398866201,1398866410,1398866297,1398866406,1398866198,1398866194,1398866274,1398866273,1398866272,1398866271,1398866262,1398866261,1398866402,1398866296,1398866393,1398866294,1398866292,1398866363,1398866362,1398866360,1398866354,1398866353,1398866348,1398866389,1398866387,1398866373,1398866369,1398866366,1398866443,1398866434,1398866426,1398866423); 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([29337147]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} new output for save of step final : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] map_info['map_portfolio_photo'] : {29337147: [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366, 1398866363, 1398866362, 1398866360, 1398866354, 1398866353, 1398866348, 1398866311, 1398866302, 1398866297, 1398866296, 1398866294, 1398866292, 1398866274, 1398866273, 1398866272, 1398866271, 1398866262, 1398866261, 1398866228, 1398866215, 1398866203, 1398866202, 1398866201, 1398866200, 1398866198, 1398866197, 1398866194, 1398866146, 1398866126, 1398866120, 1398866113, 1398866112, 1398866110, 1398866108, 1398866105, 1398866101, 1398866067, 1398866065, 1398866063, 1398866061, 1398866004, 1398865993, 1398865979, 1398865977, 1398865975, 1398865973, 1398865899, 1398865893, 1398865867, 1398865832, 1398865765, 1398865763, 1398865759, 1398865755, 1398865754]} final : False mtd_id 4302 list_pids : [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] Looping around the photos to save general results len do output : 18 /1398866475.Didn't retrieve data . /1398866444.Didn't retrieve data . /1398866443.Didn't retrieve data . /1398866434.Didn't retrieve data . /1398866426.Didn't retrieve data . /1398866423.Didn't retrieve data . /1398866416.Didn't retrieve data . /1398866414.Didn't retrieve data . /1398866412.Didn't retrieve data . /1398866410.Didn't retrieve data . /1398866406.Didn't retrieve data . /1398866402.Didn't retrieve data . /1398866393.Didn't retrieve data . /1398866389.Didn't retrieve data . /1398866387.Didn't retrieve data . /1398866373.Didn't retrieve data . /1398866369.Didn't retrieve data . /1398866366.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, '4208501') ('4302', '29337147', '1398866475', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866444', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866443', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866434', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866426', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866423', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866416', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866414', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866412', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866410', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866406', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866402', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866393', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866389', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866387', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866373', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866369', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866366', None, None, None, None, None, '4208501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '29337147', '1398866475', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866444', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866443', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866434', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866426', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866423', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866416', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866414', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866412', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866410', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866406', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866402', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866393', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866389', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866387', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866373', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866369', '0.03350537169702361', None, None, None, None, '4208501'), ('4302', '29337147', '1398866366', '0.03350537169702361', None, None, None, None, '4208501')] time used for this insertion : 0.0160064697265625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08102703094482422 time spend to save output : 0.016953468322753906 total time spend for step 2 : 0.09798049926757812 step3:velours_tree Thu Dec 11 11:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29337147: [{'Carton_gris': 29337210, 'flou': 29337211, 'metal': 29337212, 'mal_croppe': 29337213, 'environnement': 29337214, 'papier': 29337215, 'autre_refus': 29337216, 'kraft': 29337217, 'cartonnette': 29337218, 'Teint_Dans_La_Masse': 29337219, 'Carton_brun': 29337220, 'plastique': 29337221}]} input_args_next_step : {29337147: ()} output_args : {29337147: [{'Carton_gris': 29337210, 'flou': 29337211, 'metal': 29337212, 'mal_croppe': 29337213, 'environnement': 29337214, 'papier': 29337215, 'autre_refus': 29337216, 'kraft': 29337217, 'cartonnette': 29337218, 'Teint_Dans_La_Masse': 29337219, 'Carton_brun': 29337220, 'plastique': 29337221}]} args : 29337147 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 : ({'Carton_gris': 29337210, 'flou': 29337211, 'metal': 29337212, 'mal_croppe': 29337213, 'environnement': 29337214, 'papier': 29337215, 'autre_refus': 29337216, 'kraft': 29337217, 'cartonnette': 29337218, 'Teint_Dans_La_Masse': 29337219, 'Carton_brun': 29337220, 'plastique': 29337221},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29337147) 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([29337147]) 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.33284735679626465 time spend to save output : 8.106231689453125e-05 total time spend for step 3 : 0.3329284191131592 step4:send_mail_cod Thu Dec 11 11:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} input_args_next_step : {1398866475: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866475 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866444 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866443 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866434 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866426 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866423 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866416 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866414 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866412 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866410 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866406 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866402 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866393 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866389 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866387 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866373 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866369 depend.output_id : 0 input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ()} output_args : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',)} args : 1398866366 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 : {29337147: [{'Carton_gris': 29337210, 'flou': 29337211, 'metal': 29337212, 'mal_croppe': 29337213, 'environnement': 29337214, 'papier': 29337215, 'autre_refus': 29337216, 'kraft': 29337217, 'cartonnette': 29337218, 'Teint_Dans_La_Masse': 29337219, 'Carton_brun': 29337220, 'plastique': 29337221}]} input_args_next_step : {1398866475: ('0.03350537169702361',), 1398866444: ('0.03350537169702361',), 1398866443: ('0.03350537169702361',), 1398866434: ('0.03350537169702361',), 1398866426: ('0.03350537169702361',), 1398866423: ('0.03350537169702361',), 1398866416: ('0.03350537169702361',), 1398866414: ('0.03350537169702361',), 1398866412: ('0.03350537169702361',), 1398866410: ('0.03350537169702361',), 1398866406: ('0.03350537169702361',), 1398866402: ('0.03350537169702361',), 1398866393: ('0.03350537169702361',), 1398866389: ('0.03350537169702361',), 1398866387: ('0.03350537169702361',), 1398866373: ('0.03350537169702361',), 1398866369: ('0.03350537169702361',), 1398866366: ('0.03350537169702361',), 29337147: ()} output_args : {29337147: [{'Carton_gris': 29337210, 'flou': 29337211, 'metal': 29337212, 'mal_croppe': 29337213, 'environnement': 29337214, 'papier': 29337215, 'autre_refus': 29337216, 'kraft': 29337217, 'cartonnette': 29337218, 'Teint_Dans_La_Masse': 29337219, 'Carton_brun': 29337220, 'plastique': 29337221}]} args : 29337147 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 :19, first value : ('0.03350537169702361',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29337147) 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_view ph WHERE photo_id IN (1398866475,1398866444,1398866443,1398866434,1398866426,1398866423,1398866416,1398866414,1398866412,1398866410,1398866406,1398866402,1398866393,1398866389,1398866387,1398866373,1398866369,1398866366) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398866366 begin to download photo : 1398866389 begin to download photo : 1398866410 begin to download photo : 1398866423 begin to download photo : 1398866444 download finish for photo 1398866410 begin to download photo : 1398866412 download finish for photo 1398866366 begin to download photo : 1398866369 download finish for photo 1398866389 begin to download photo : 1398866393 download finish for photo 1398866444 begin to download photo : 1398866475 download finish for photo 1398866423 begin to download photo : 1398866426 download finish for photo 1398866412 begin to download photo : 1398866414 download finish for photo 1398866369 begin to download photo : 1398866373 download finish for photo 1398866393 begin to download photo : 1398866402 download finish for photo 1398866475 download finish for photo 1398866426 begin to download photo : 1398866434 download finish for photo 1398866414 begin to download photo : 1398866416 download finish for photo 1398866373 begin to download photo : 1398866387 download finish for photo 1398866402 begin to download photo : 1398866406 download finish for photo 1398866434 begin to download photo : 1398866443 download finish for photo 1398866416 download finish for photo 1398866406 download finish for photo 1398866443 download finish for photo 1398866387 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette293372111765448940/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P29337147_11-12-2025_11_29_00.pdf 29337211 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293372111765448940 29337212 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398866352: '1765448666_2074467_1398866108_5f4687273a087d1ae2c342547e0b0163_rle_crop_4066091233_0.png'} change filename to text .imagette293372121765448940/ imagette293372121765448940/1765448666_2074467_1398866108_5f4687273a087d1ae2c342547e0b0163_rle_crop_4066091233_0.png.png imagette293372131765448940/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/87710dcc6046fb5c1650d7dbc70f1903_75445407.png imagette293372121765448940 29337213 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293372131765448940 29337216 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398866511: '1765448905_2088466_1398866354_e1ee90a9aea4e61729e6f1057c2e5174_rle_crop_4066092439_0.png'} change filename to text .imagette293372161765448940/ imagette293372161765448940/1765448905_2088466_1398866354_e1ee90a9aea4e61729e6f1057c2e5174_rle_crop_4066092439_0.png.png imagette293372171765448940/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/e8aa111688c2c447fe2363688e65b487_84038300.png imagette293372161765448940 29337217 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293372171765448940 29337218 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398866282: '1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090785_0.png', 1398866346: '1765448666_2074467_1398866112_abd300e847003561425492f73f664b42_rle_crop_4066091207_0.png', 1398866347: '1765448666_2074467_1398866110_5866ec0bb8b9cc6bb30315b2b34c6440_rle_crop_4066091220_0.png', 1398866349: '1765448666_2074467_1398866108_5f4687273a087d1ae2c342547e0b0163_rle_crop_4066091234_0.png', 1398866350: '1765448666_2074467_1398866108_5f4687273a087d1ae2c342547e0b0163_rle_crop_4066091231_0.png', 1398866383: '1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090785_0.png', 1398866435: '1765448826_2083764_1398865755_c0d91b16eed31fa3a38adb86c6cb9387_rle_crop_4066092123_0.png', 1398866483: '1765448846_2084122_1398866004_9e0cbedff8364364541e9e4dfacdb1d1_rle_crop_4066092282_0.png', 1398866520: '1765448905_2088466_1398866348_ce20ff4f11c84ffc23d3cc3304959de3_rle_crop_4066092474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/442fbad2b7fae225aac14d5ba9925b4c_54629674.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/f8cb01a514e767c4632939c87f174a11_99036295.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/92f5abf847f16b050df7a3e57d0afb44_9290545.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/e61d1bc2a1c0c7aae10aa6a007577a4b_54594452.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/62113ff6b7f81af5bbd4e69fc6a74ac5_24139847.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/442fbad2b7fae225aac14d5ba9925b4c_2074759.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/334126c2e0682e8075cbef10e846df1b_77497453.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/572fc0f55ac5e08ea65cd748a1db0106_18012894.png change filename to text .imagette293372181765448940/ imagette293372181765448940/1765448826_2083764_1398865755_c0d91b16eed31fa3a38adb86c6cb9387_rle_crop_4066092123_0.png.png imagette293372181765448940/1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090785_0.png.png imagette293372181765448940/1765448666_2074467_1398866110_5866ec0bb8b9cc6bb30315b2b34c6440_rle_crop_4066091220_0.png.png imagette293372181765448940/1765448666_2074467_1398866108_5f4687273a087d1ae2c342547e0b0163_rle_crop_4066091234_0.png.png imagette293372181765448940/1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090785_0.png.png imagette293372181765448940/1765448666_2074467_1398866112_abd300e847003561425492f73f664b42_rle_crop_4066091207_0.png.png imagette293372181765448940/1765448846_2084122_1398866004_9e0cbedff8364364541e9e4dfacdb1d1_rle_crop_4066092282_0.png.png imagette293372181765448940/1765448666_2074467_1398866108_5f4687273a087d1ae2c342547e0b0163_rle_crop_4066091231_0.png.png imagette293372181765448940/1765448905_2088466_1398866348_ce20ff4f11c84ffc23d3cc3304959de3_rle_crop_4066092474_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/061db98948af9e32d14bd669cb52a4b7_48969825.png imagette293372181765448940 29337221 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398866285: '1765448606_2071080_1398865993_2b3c9f45c7761cfed686f196e166e50b_rle_crop_4066090842_0.png', 1398866286: '1765448606_2071080_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090855_0.png', 1398866287: '1765448606_2071080_1398865977_9bedab98a5cdd672988a52a605f1e71b_rle_crop_4066090864_0.png', 1398866385: '1765448727_2077129_1398865993_2b3c9f45c7761cfed686f196e166e50b_rle_crop_4066090842_0.png', 1398866386: '1765448727_2077129_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090855_0.png', 1398866388: '1765448727_2077129_1398865977_9bedab98a5cdd672988a52a605f1e71b_rle_crop_4066090864_0.png', 1398866485: '1765448846_2084122_1398866004_9e0cbedff8364364541e9e4dfacdb1d1_rle_crop_4066092286_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/cc5ca3ac27b7d8e04cc551cb5e5ec075_33203960.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/5693ad11546039822196729538b500ce_79024734.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fc5eb28d206213fd116f68a8e5e2d6d5_32487023.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/cc5ca3ac27b7d8e04cc551cb5e5ec075_25026776.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/5693ad11546039822196729538b500ce_80511050.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fc5eb28d206213fd116f68a8e5e2d6d5_17060853.png change filename to text .imagette293372211765448941/ imagette293372211765448941/1765448727_2077129_1398865977_9bedab98a5cdd672988a52a605f1e71b_rle_crop_4066090864_0.png.png imagette293372211765448941/1765448727_2077129_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090855_0.png.png imagette293372211765448941/1765448606_2071080_1398865993_2b3c9f45c7761cfed686f196e166e50b_rle_crop_4066090842_0.png.png imagette293372211765448941/1765448846_2084122_1398866004_9e0cbedff8364364541e9e4dfacdb1d1_rle_crop_4066092286_0.png.png imagette293372211765448941/1765448727_2077129_1398865993_2b3c9f45c7761cfed686f196e166e50b_rle_crop_4066090842_0.png.png imagette293372211765448941/1765448606_2071080_1398865977_9bedab98a5cdd672988a52a605f1e71b_rle_crop_4066090864_0.png.png imagette293372211765448941/1765448606_2071080_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090855_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/5883ccbbe9c65d77d6971f0e0c883ad1_59891422.png imagette293372211765448941 29337210 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398866376: '1765448727_2077129_1398865975_b14bbfd4362f4e3b3365bf92b1c84d55_rle_crop_4066090872_0.png', 1398866517: '1765448905_2088466_1398866348_ce20ff4f11c84ffc23d3cc3304959de3_rle_crop_4066092466_0.png', 1398866516: '1765448905_2088466_1398866348_ce20ff4f11c84ffc23d3cc3304959de3_rle_crop_4066092472_0.png', 1398866515: '1765448905_2088466_1398866353_b8cf59800e7ccf24a7fbeddd8d041dd0_rle_crop_4066092454_0.png', 1398866514: '1765448905_2088466_1398866354_e1ee90a9aea4e61729e6f1057c2e5174_rle_crop_4066092437_0.png', 1398866513: '1765448905_2088466_1398866354_e1ee90a9aea4e61729e6f1057c2e5174_rle_crop_4066092443_0.png', 1398866482: '1765448846_2084122_1398866004_9e0cbedff8364364541e9e4dfacdb1d1_rle_crop_4066092287_0.png', 1398866378: '1765448727_2077129_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090890_0.png', 1398866377: '1765448727_2077129_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090886_0.png', 1398866265: '1765448588_2068825_1398866061_4a1e6098c75f7c2401328f641fa74ef4_rle_crop_4066090559_0.png', 1398866375: '1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090780_0.png', 1398866355: '1765448706_2076681_1398866061_4a1e6098c75f7c2401328f641fa74ef4_rle_crop_4066090559_0.png', 1398866344: '1765448666_2074467_1398866105_b21cede8731492dbfc9acd0cb9341520_rle_crop_4066091282_0.png', 1398866280: '1765448606_2071080_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090890_0.png', 1398866279: '1765448606_2071080_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090886_0.png', 1398866278: '1765448606_2071080_1398865975_b14bbfd4362f4e3b3365bf92b1c84d55_rle_crop_4066090872_0.png', 1398866277: '1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/415467289eb0be39408d39352f76cf0a_35030683.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/c1dbe15b43b95757bfed9dd788af6bb0_16386752.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/f6c8af0b608b8653d99ffa45516b9f9c_2929773.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/075f227f63d0dd4453c4ba0b86518c82_56447126.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/e6b22d37525c5b78fae56646f735d8a9_51007829.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/7f7b766e71c3638b8201f05fc5432692_75556850.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/bd9ff3e9538d2c1a4848fb38648cca5b_75581771.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/f0129d3be86f1de19051e7c90d51df65_28102523.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/111a052a9adb26f2d9cbf287191088ac_30584517.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/021da1fc37da572961660fa6fc20fae4_97455760.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/1f5a87226a48f5018c637f49f9a57e3b_26696628.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/021da1fc37da572961660fa6fc20fae4_63580425.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/cf0f869ea1968c38f499a0f948603fee_31914502.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/f0129d3be86f1de19051e7c90d51df65_37060919.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/111a052a9adb26f2d9cbf287191088ac_6796453.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/415467289eb0be39408d39352f76cf0a_26204423.png change filename to text .imagette293372101765448942/ imagette293372101765448942/1765448606_2071080_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090890_0.png.png imagette293372101765448942/1765448905_2088466_1398866354_e1ee90a9aea4e61729e6f1057c2e5174_rle_crop_4066092443_0.png.png imagette293372101765448942/1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090780_0.png.png imagette293372101765448942/1765448727_2077129_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090886_0.png.png imagette293372101765448942/1765448666_2074467_1398866105_b21cede8731492dbfc9acd0cb9341520_rle_crop_4066091282_0.png.png imagette293372101765448942/1765448588_2068825_1398866061_4a1e6098c75f7c2401328f641fa74ef4_rle_crop_4066090559_0.png.png imagette293372101765448942/1765448905_2088466_1398866353_b8cf59800e7ccf24a7fbeddd8d041dd0_rle_crop_4066092454_0.png.png imagette293372101765448942/1765448727_2077129_1398865975_b14bbfd4362f4e3b3365bf92b1c84d55_rle_crop_4066090872_0.png.png imagette293372101765448942/1765448606_2071080_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090886_0.png.png imagette293372101765448942/1765448905_2088466_1398866348_ce20ff4f11c84ffc23d3cc3304959de3_rle_crop_4066092472_0.png.png imagette293372101765448942/1765448606_2071080_1398865975_b14bbfd4362f4e3b3365bf92b1c84d55_rle_crop_4066090872_0.png.png imagette293372101765448942/1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090780_0.png.png imagette293372101765448942/1765448706_2076681_1398866061_4a1e6098c75f7c2401328f641fa74ef4_rle_crop_4066090559_0.png.png imagette293372101765448942/1765448905_2088466_1398866354_e1ee90a9aea4e61729e6f1057c2e5174_rle_crop_4066092437_0.png.png imagette293372101765448942/1765448846_2084122_1398866004_9e0cbedff8364364541e9e4dfacdb1d1_rle_crop_4066092287_0.png.png imagette293372101765448942/1765448905_2088466_1398866348_ce20ff4f11c84ffc23d3cc3304959de3_rle_crop_4066092466_0.png.png imagette293372101765448942/1765448727_2077129_1398865973_7d0e6b334cdd3c092afdc11044c94469_rle_crop_4066090890_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/1f5a87226a48f5018c637f49f9a57e3b_43666366.png imagette293372101765448942 29337219 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398866275: '1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090781_0.png', 1398866276: '1765448606_2071080_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090852_0.png', 1398866343: '1765448666_2074467_1398866112_abd300e847003561425492f73f664b42_rle_crop_4066091213_0.png', 1398866371: '1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090781_0.png', 1398866372: '1765448727_2077129_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090852_0.png', 1398866432: '1765448826_2083764_1398865765_eef8a2e6073f9e9d3ff56464e6340881_rle_crop_4066092081_0.png', 1398866433: '1765448826_2083764_1398865763_1dcd43631d7a45641247b52112c3d20d_rle_crop_4066092094_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fd5131c62095907783b352ba65be70ca_54004537.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/3c48fba1d56459c4e786d140aa2c0315_2061281.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/b5f10d7263363eb55fa15412cf1a3f09_13268437.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fd5131c62095907783b352ba65be70ca_52158892.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/3c48fba1d56459c4e786d140aa2c0315_40263738.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/0ee0182841ed1afc2d9dbc350ec4b650_2123494.png change filename to text .imagette293372191765448943/ imagette293372191765448943/1765448826_2083764_1398865763_1dcd43631d7a45641247b52112c3d20d_rle_crop_4066092094_0.png.png imagette293372191765448943/1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090781_0.png.png imagette293372191765448943/1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090781_0.png.png imagette293372191765448943/1765448826_2083764_1398865765_eef8a2e6073f9e9d3ff56464e6340881_rle_crop_4066092081_0.png.png imagette293372191765448943/1765448727_2077129_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090852_0.png.png imagette293372191765448943/1765448666_2074467_1398866112_abd300e847003561425492f73f664b42_rle_crop_4066091213_0.png.png imagette293372191765448943/1765448606_2071080_1398865979_200d89e61133c1faef5916be902814c9_rle_crop_4066090852_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/fb95afa242e9430d93dfb6f935776754_89553225.png imagette293372191765448943 29337220 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398866284: '1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090779_0.png', 1398866351: '1765448666_2074467_1398866105_b21cede8731492dbfc9acd0cb9341520_rle_crop_4066091281_0.png', 1398866357: '1765448706_2076681_1398866113_3ee6a9d175930bd941673d24c249c958_rle_crop_4066091516_0.png', 1398866358: '1765448706_2076681_1398866113_3ee6a9d175930bd941673d24c249c958_rle_crop_4066091517_0.png', 1398866384: '1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090779_0.png', 1398866437: '1765448826_2083764_1398865765_eef8a2e6073f9e9d3ff56464e6340881_rle_crop_4066092083_0.png', 1398866438: '1765448826_2083764_1398865763_1dcd43631d7a45641247b52112c3d20d_rle_crop_4066092095_0.png', 1398866439: '1765448826_2083764_1398865759_d5286840e7d0227b9fc18954518305e6_rle_crop_4066092111_0.png', 1398866440: '1765448826_2083764_1398865754_bd29b996f163fcc527092983a6ba589d_rle_crop_4066092185_0.png', 1398866484: '1765448846_2084122_1398865832_0415a2bd6c325b934602402b27a9194f_rle_crop_4066092314_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/627cc2b069286e06fbcd4fe9948db742_19611148.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/4591e583a42650f0191743d94995e348_78961597.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/8ad4d11d16b8871329de620caecd877c_32960589.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/b7dc2b9d1388df39a1ad3c68d3f11403_77500770.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/627cc2b069286e06fbcd4fe9948db742_88316192.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/779a42336ff781a628d7d592ef4ee757_89284479.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/22151c882079c37754db40e733d6200a_84446970.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/0a46249748d31f3e56d5aa17de87b433_67931516.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/463a662985c7c3980ff702e4e5a674be_54042304.png change filename to text .imagette293372201765448943/ imagette293372201765448943/1765448727_2077129_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090779_0.png.png imagette293372201765448943/1765448606_2071080_1398866067_13977bfae8583d7208dc7c04a2957158_rle_crop_4066090779_0.png.png imagette293372201765448943/1765448826_2083764_1398865763_1dcd43631d7a45641247b52112c3d20d_rle_crop_4066092095_0.png.png imagette293372201765448943/1765448706_2076681_1398866113_3ee6a9d175930bd941673d24c249c958_rle_crop_4066091517_0.png.png imagette293372201765448943/1765448706_2076681_1398866113_3ee6a9d175930bd941673d24c249c958_rle_crop_4066091516_0.png.png imagette293372201765448943/1765448826_2083764_1398865754_bd29b996f163fcc527092983a6ba589d_rle_crop_4066092185_0.png.png imagette293372201765448943/1765448826_2083764_1398865759_d5286840e7d0227b9fc18954518305e6_rle_crop_4066092111_0.png.png imagette293372201765448943/1765448826_2083764_1398865765_eef8a2e6073f9e9d3ff56464e6340881_rle_crop_4066092083_0.png.png imagette293372201765448943/1765448846_2084122_1398865832_0415a2bd6c325b934602402b27a9194f_rle_crop_4066092314_0.png.png imagette293372201765448943/1765448666_2074467_1398866105_b21cede8731492dbfc9acd0cb9341520_rle_crop_4066091281_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/ee30d1c35a12342c9f9982f5347be57b_57971510.png imagette293372201765448943 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29337147 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29337222,29337223,29337224,29337225,29337226,29337227,29337228,29337229,29337231,29337232,29337233,29337234?tags=Carton_gris,flou,metal,mal_croppe,environnement,papier,autre_refus,kraft,cartonnette,Teint_Dans_La_Masse,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1398866475] : ('0.03350537169702361',) no score found for photo 1398866475 We are sending mail with results at report@fotonower.com args[1398866444] : ('0.03350537169702361',) no score found for photo 1398866444 We are sending mail with results at report@fotonower.com args[1398866443] : ('0.03350537169702361',) no score found for photo 1398866443 We are sending mail with results at report@fotonower.com args[1398866434] : ('0.03350537169702361',) no score found for photo 1398866434 We are sending mail with results at report@fotonower.com args[1398866426] : ('0.03350537169702361',) no score found for photo 1398866426 We are sending mail with results at report@fotonower.com args[1398866423] : ('0.03350537169702361',) no score found for photo 1398866423 We are sending mail with results at report@fotonower.com args[1398866416] : ('0.03350537169702361',) no score found for photo 1398866416 We are sending mail with results at report@fotonower.com args[1398866414] : ('0.03350537169702361',) no score found for photo 1398866414 We are sending mail with results at report@fotonower.com args[1398866412] : ('0.03350537169702361',) no score found for photo 1398866412 We are sending mail with results at report@fotonower.com args[1398866410] : ('0.03350537169702361',) no score found for photo 1398866410 We are sending mail with results at report@fotonower.com args[1398866406] : ('0.03350537169702361',) no score found for photo 1398866406 We are sending mail with results at report@fotonower.com args[1398866402] : ('0.03350537169702361',) no score found for photo 1398866402 We are sending mail with results at report@fotonower.com args[1398866393] : ('0.03350537169702361',) no score found for photo 1398866393 We are sending mail with results at report@fotonower.com args[1398866389] : ('0.03350537169702361',) no score found for photo 1398866389 We are sending mail with results at report@fotonower.com args[1398866387] : ('0.03350537169702361',) no score found for photo 1398866387 We are sending mail with results at report@fotonower.com args[1398866373] : ('0.03350537169702361',) no score found for photo 1398866373 We are sending mail with results at report@fotonower.com args[1398866369] : ('0.03350537169702361',) no score found for photo 1398866369 We are sending mail with results at report@fotonower.com args[1398866366] : ('0.03350537169702361',) no score found for photo 1398866366 We are sending mail with results at report@fotonower.com refus_total : 0.03350537169702361 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337147 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_P29337147_11-12-2025_11_29_00.pdf results_Auto_P29337147_11-12-2025_11_29_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29337147_11-12-2025_11_29_00.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','29337147','results_Auto_P29337147_11-12-2025_11_29_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29337147_11-12-2025_11_29_00.pdf','pdf','','0.26','0.03350537169702361') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29337147]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] map_info['map_portfolio_photo'] : {29337147: [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366, 1398866363, 1398866362, 1398866360, 1398866354, 1398866353, 1398866348, 1398866311, 1398866302, 1398866297, 1398866296, 1398866294, 1398866292, 1398866274, 1398866273, 1398866272, 1398866271, 1398866262, 1398866261, 1398866228, 1398866215, 1398866203, 1398866202, 1398866201, 1398866200, 1398866198, 1398866197, 1398866194, 1398866146, 1398866126, 1398866120, 1398866113, 1398866112, 1398866110, 1398866108, 1398866105, 1398866101, 1398866067, 1398866065, 1398866063, 1398866061, 1398866004, 1398865993, 1398865979, 1398865977, 1398865975, 1398865973, 1398865899, 1398865893, 1398865867, 1398865832, 1398865765, 1398865763, 1398865759, 1398865755, 1398865754]} final : False mtd_id 4302 list_pids : [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] 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, '4208501') ('4302', '29337147', '1398866475', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866444', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866443', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866434', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866426', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866423', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866416', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866414', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866412', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866410', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866406', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866402', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866393', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866389', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866387', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866373', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866369', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866366', None, None, None, None, None, '4208501') 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', '29337147', '1398866475', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866444', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866443', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866434', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866426', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866423', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866416', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866414', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866412', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866410', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866406', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866402', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866393', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866389', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866387', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866373', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866369', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866366', None, None, None, None, None, '4208501')] time used for this insertion : 0.01669144630432129 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.4534828662872314 time spend to save output : 0.01703333854675293 total time spend for step 4 : 6.470516204833984 step5:split_time_score Thu Dec 11 11:29:06 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 : ['29337147'] 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 : [('29337147',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29337147) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398866444: {'path': 'temp/1765448939_2244497_1398866444_c3c699b624f4634b7728fda3a19e4d9b.jpg', 'extension': 'jpg'}, 1398866475: {'path': 'temp/1765448939_2244497_1398866475_a9cb31913e873315384f93df5839a58a.jpg', 'extension': 'jpg'}, 1398866410: {'path': 'temp/1765448939_2244497_1398866410_29a5971dab98a466cc325dfbc0f208af.jpg', 'extension': 'jpg'}, 1398866412: {'path': 'temp/1765448939_2244497_1398866412_645c4b8307b11a24487a9370414d9f16.jpg', 'extension': 'jpg'}, 1398866414: {'path': 'temp/1765448939_2244497_1398866414_0478f3dbe0fea382dbeb3f8e7bfaca50.jpg', 'extension': 'jpg'}, 1398866416: {'path': 'temp/1765448939_2244497_1398866416_3e7d05bf5a454e789dd389a09858e1d2.jpg', 'extension': 'jpg'}, 1398866389: {'path': 'temp/1765448939_2244497_1398866389_f67726adadf9c81b6a9f1688eca30ee0.jpg', 'extension': 'jpg'}, 1398866393: {'path': 'temp/1765448939_2244497_1398866393_31988e047c2b62b74bbb73aaaaebabac.jpg', 'extension': 'jpg'}, 1398866402: {'path': 'temp/1765448939_2244497_1398866402_12dcfa1bf5b6f0f3f80fc99eaab1ddd9.jpg', 'extension': 'jpg'}, 1398866406: {'path': 'temp/1765448939_2244497_1398866406_13d8c5e6d1f8e5f26c5bf32935be8a0c.jpg', 'extension': 'jpg'}, 1398866423: {'path': 'temp/1765448939_2244497_1398866423_127646bf1d499a4d464458131307a689.jpg', 'extension': 'jpg'}, 1398866426: {'path': 'temp/1765448939_2244497_1398866426_f3d5cb2dbbbbcc053ef306c5fd5cc3f6.jpg', 'extension': 'jpg'}, 1398866434: {'path': 'temp/1765448939_2244497_1398866434_cce7740dde4287731bf8dea3be46bd18.jpg', 'extension': 'jpg'}, 1398866443: {'path': 'temp/1765448939_2244497_1398866443_4e94a1880cd5a09f63b63b580062c7b0.jpg', 'extension': 'jpg'}, 1398866366: {'path': 'temp/1765448939_2244497_1398866366_be1a8ab9f1d69d5e05cbcf981fa2f45f.jpg', 'extension': 'jpg'}, 1398866369: {'path': 'temp/1765448939_2244497_1398866369_b578231a26c4d8ad7dda4e5d1eeee842.jpg', 'extension': 'jpg'}, 1398866373: {'path': 'temp/1765448939_2244497_1398866373_80d704700372e0b0943a724355d93aa6.jpg', 'extension': 'jpg'}, 1398866387: {'path': 'temp/1765448939_2244497_1398866387_3ea57a2bd22906b6d0531095b3e88e9c.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 = 29337147; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29337147 group by h (('11', 73),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29337147 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 (29337147) 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 (29337147) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11122025 29337147 Nombre de photos uploadées : 73 / 23040 (0%) 11122025 29337147 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 11122025 29337147 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1398865765, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/eef8a2e6073f9e9d3ff56464e6340881.jpg', 'username': None, 'uploaded_at': 1765448197, 'text': 'image_11122025_11_15_04_010154m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1398865763, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/1dcd43631d7a45641247b52112c3d20d.jpg', 'username': None, 'uploaded_at': 1765448197, 'text': 'image_11122025_11_15_14_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1398865759, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/d5286840e7d0227b9fc18954518305e6.jpg', 'username': None, 'uploaded_at': 1765448197, 'text': 'image_11122025_11_15_25_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398865755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/11/c0d91b16eed31fa3a38adb86c6cb9387.jpg', 'username': None, 'uploaded_at': 1765448197, 'text': 'image_11122025_11_15_35_010135m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031845569610595703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29337147, '2025-12-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-11' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2719645,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25476527214050293 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= 2719645 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29321646, 'dashboard_result_id': 18250627, '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_P29321646_11-12-2025_06_01_14.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321661, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29322119, 'dashboard_result_id': 18250628, '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_P29322119_11-12-2025_06_01_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322134, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29322398, 'dashboard_result_id': 18250629, '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_P29322398_11-12-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322411, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29322629, 'dashboard_result_id': 18250630, '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_P29322629_11-12-2025_06_02_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322645, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29323264, 'dashboard_result_id': 18250631, '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_P29323264_11-12-2025_06_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323276, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29323423, 'dashboard_result_id': 18250632, '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_P29323423_11-12-2025_06_03_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323436, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29323841, 'dashboard_result_id': 18250633, '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_P29323841_11-12-2025_06_03_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323857, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29324186, 'dashboard_result_id': 18250634, '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_P29324186_11-12-2025_06_04_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29324198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324202, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29324585, 'dashboard_result_id': 18250635, '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_P29324585_11-12-2025_06_04_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29324592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324603, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29324983, 'dashboard_result_id': 18250636, '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_P29324983_11-12-2025_06_05_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29324991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324998, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29325878, 'dashboard_result_id': 18250637, '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_P29325878_11-12-2025_06_05_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29325879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29325880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29325881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29325882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29325883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29325884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29325885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29325886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29325887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29325888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29325889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29325890, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29326189, 'dashboard_result_id': 18250638, '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_P29326189_11-12-2025_05_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29326190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326201, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29326519, 'dashboard_result_id': 18250639, '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_P29326519_11-12-2025_06_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29326527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326532, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29326788, 'dashboard_result_id': 18250640, '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_P29326788_11-12-2025_07_06_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29326797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326807, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29327233, 'dashboard_result_id': 18250641, '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_P29327233_11-12-2025_07_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29327258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29327259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29327260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29327261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29327262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29327263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29327264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29327265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29327266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29327267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29327268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29327269, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29327700, 'dashboard_result_id': 18250642, '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_P29327700_11-12-2025_07_33_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29327716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29327717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29327718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29327719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29327720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29327721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29327722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29327723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29327724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29327725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29327726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29327727, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29328179, 'dashboard_result_id': 18250643, '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_P29328179_11-12-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29328181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29328182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29328183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29328184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29328185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29328186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29328187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29328188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29328189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29328190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29328191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29328192, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29328658, 'dashboard_result_id': 18250644, '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_P29328658_11-12-2025_08_06_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29328708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29328709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29328710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29328711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29328712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29328713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29328714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29328715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29328716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29328717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29328718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29328719, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29329187, 'dashboard_result_id': 18250645, '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_P29329187_11-12-2025_08_19_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29329188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29329189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29329190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29329191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29329192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29329193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29329194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29329195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29329196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29329197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29329198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29329199, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29329580, 'dashboard_result_id': 18250646, '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_P29329580_11-12-2025_08_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29329596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29329597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29329598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29329599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29329600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29329601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29329602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29329603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29329604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29329605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29329606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29329607, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29330124, 'dashboard_result_id': 18250647, '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_P29330124_11-12-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29330125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29330126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29330127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29330128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29330129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29330130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29330131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29330132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29330133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29330134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29330135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29330136, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29330599, 'dashboard_result_id': 18250648, '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_P29330599_11-12-2025_09_36_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29330646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29330647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29330648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29330649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29330650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29330651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29330652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29330653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29330654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29330655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29330656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29330657, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29332949, 'dashboard_result_id': 18250649, '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_P29332949_11-12-2025_09_49_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29332953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29332954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29332955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29332956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29332957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29332958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29332959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29332960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29332961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29332962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29332963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29332964, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29333472, 'dashboard_result_id': 18250650, '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_P29333472_11-12-2025_10_02_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29333476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29333477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29333478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29333479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29333480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29333481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29333482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29333483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29333484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29333485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29333486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29333487, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29334094, 'dashboard_result_id': 18250651, '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_P29334094_11-12-2025_10_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29334130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29334131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29334132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29334133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29334134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29334135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29334136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29334137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29334138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29334139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29334140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29334141, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29334922, 'dashboard_result_id': 18250652, '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_P29334922_11-12-2025_10_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29334926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29334927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29334928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29334929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29334930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29334931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29334932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29334933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29334934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29334935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29334936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29334937, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29335534, 'dashboard_result_id': 18250653, '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_P29335534_11-12-2025_10_49_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29335580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29335581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29335582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29335583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29335584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29335585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29335586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29335587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29335588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29335589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29335590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29335591, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29336151, 'dashboard_result_id': 18250654, '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_P29336151_11-12-2025_11_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29336155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29336156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29336157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29336158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29336159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29336160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29336161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29336162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29336163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29336164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29336165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29336166, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29336513, 'dashboard_result_id': 18250655, '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_P29336513_11-12-2025_11_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29336556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29336557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29336558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29336559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29336560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29336561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29336562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29336563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29336564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29336565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29336566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29336567, 'pht': 3726}}"}, {'dashboat_entry_day': 2719645, 'dashboard_run_id': 2729245, 'mtr_portfolio_id': 29337147, 'dashboard_result_id': 18250656, '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_P29337147_11-12-2025_11_24_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29337210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29337211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29337212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29337213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29337214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29337215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29337216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29337217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29337218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29337219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29337220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29337221, '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 = 29321646 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': 4206930, 'mtr_portfolio_id': 29321646, 'created_at': datetime.datetime(2025, 12, 11, 6, 1, 11), 'result': '0.07643875274593921', 'result_long': None, 'result_double': None}] Qualite : 0.07643875274593921 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29321646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29321646_11-12-2025_06_01_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29321646 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_P29321646_11-12-2025_06_01_14.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321661, 'pht': 3726}}" where mtr_portfolio_id = 29321646 and dashboard_run_id = 2729245 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`=29321646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250627, 0.07643875274593921, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29321646_11-12-2025_06_01_14.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29321650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29321653, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29321654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29321655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29321656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29321657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29321658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29321659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29321660, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29321661, '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 = 29322119 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': 4206931, 'mtr_portfolio_id': 29322119, 'created_at': datetime.datetime(2025, 12, 11, 6, 1, 30), 'result': '0.0483324519804703', 'result_long': None, 'result_double': None}] Qualite : 0.0483324519804703 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29322119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322119_11-12-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29322119 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_P29322119_11-12-2025_06_01_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322134, 'pht': 3726}}" where mtr_portfolio_id = 29322119 and dashboard_run_id = 2729245 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`=29322119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250628, 0.0483324519804703, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322119_11-12-2025_06_01_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322125, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322128, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322130, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322134, '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 = 29322398 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': 4206932, 'mtr_portfolio_id': 29322398, 'created_at': datetime.datetime(2025, 12, 11, 6, 2), 'result': '0.054570748405245555', 'result_long': None, 'result_double': None}] Qualite : 0.054570748405245555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29322398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322398_11-12-2025_06_02_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29322398 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_P29322398_11-12-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322411, 'pht': 3726}}" where mtr_portfolio_id = 29322398 and dashboard_run_id = 2729245 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`=29322398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250629, 0.054570748405245555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322398_11-12-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322404, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322411, '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 = 29322629 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': 4206933, 'mtr_portfolio_id': 29322629, 'created_at': datetime.datetime(2025, 12, 11, 6, 2, 31), 'result': '0.047590507341236356', 'result_long': None, 'result_double': None}] Qualite : 0.047590507341236356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29322629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322629_11-12-2025_06_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29322629 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_P29322629_11-12-2025_06_02_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322645, 'pht': 3726}}" where mtr_portfolio_id = 29322629 and dashboard_run_id = 2729245 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`=29322629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250630, 0.047590507341236356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29322629_11-12-2025_06_02_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29322634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29322635, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29322636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29322637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29322638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29322639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29322640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29322641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29322642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29322643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29322644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29322645, '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 = 29323264 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': 4206934, 'mtr_portfolio_id': 29323264, 'created_at': datetime.datetime(2025, 12, 11, 6, 3), 'result': '0.035789040329989294', 'result_long': None, 'result_double': None}] Qualite : 0.035789040329989294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29323264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29323264_11-12-2025_06_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29323264 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_P29323264_11-12-2025_06_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323276, 'pht': 3726}}" where mtr_portfolio_id = 29323264 and dashboard_run_id = 2729245 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`=29323264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250631, 0.035789040329989294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29323264_11-12-2025_06_03_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323276, '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 = 29323423 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': 4206935, 'mtr_portfolio_id': 29323423, 'created_at': datetime.datetime(2025, 12, 11, 6, 3, 31), 'result': '0.04968094607163006', 'result_long': None, 'result_double': None}] Qualite : 0.04968094607163006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29323423 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29323423_11-12-2025_06_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29323423 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_P29323423_11-12-2025_06_03_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323436, 'pht': 3726}}" where mtr_portfolio_id = 29323423 and dashboard_run_id = 2729245 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`=29323423 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250632, 0.04968094607163006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29323423_11-12-2025_06_03_34.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323433, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323436, '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 = 29323841 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': 4206936, 'mtr_portfolio_id': 29323841, 'created_at': datetime.datetime(2025, 12, 11, 6, 3, 30), 'result': '0.055741242462971276', 'result_long': None, 'result_double': None}] Qualite : 0.055741242462971276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29323841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29323841_11-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29323841 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_P29323841_11-12-2025_06_03_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323857, 'pht': 3726}}" where mtr_portfolio_id = 29323841 and dashboard_run_id = 2729245 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`=29323841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250633, 0.055741242462971276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29323841_11-12-2025_06_03_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29323846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29323847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29323848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29323849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29323850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29323851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29323852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29323853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29323854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29323855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29323856, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29323857, '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 = 29324186 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': 4206937, 'mtr_portfolio_id': 29324186, 'created_at': datetime.datetime(2025, 12, 11, 6, 3, 59), 'result': '0.05122785590253262', 'result_long': None, 'result_double': None}] Qualite : 0.05122785590253262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29324186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29324186_11-12-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29324186 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_P29324186_11-12-2025_06_04_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29324198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324202, 'pht': 3726}}" where mtr_portfolio_id = 29324186 and dashboard_run_id = 2729245 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`=29324186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250634, 0.05122785590253262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29324186_11-12-2025_06_04_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29324198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324199, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324202, '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 = 29324585 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': 4206938, 'mtr_portfolio_id': 29324585, 'created_at': datetime.datetime(2025, 12, 11, 6, 4, 30), 'result': '0.03889559196532047', 'result_long': None, 'result_double': None}] Qualite : 0.03889559196532047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29324585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29324585_11-12-2025_06_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29324585 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_P29324585_11-12-2025_06_04_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29324592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324603, 'pht': 3726}}" where mtr_portfolio_id = 29324585 and dashboard_run_id = 2729245 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`=29324585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250635, 0.03889559196532047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29324585_11-12-2025_06_04_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29324592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324595, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324601, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324603, '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 = 29324983 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': 4206939, 'mtr_portfolio_id': 29324983, 'created_at': datetime.datetime(2025, 12, 11, 6, 5, 2), 'result': '0.057243548299115314', 'result_long': None, 'result_double': None}] Qualite : 0.057243548299115314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29324983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29324983_11-12-2025_06_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29324983 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_P29324983_11-12-2025_06_05_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29324991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324998, 'pht': 3726}}" where mtr_portfolio_id = 29324983 and dashboard_run_id = 2729245 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`=29324983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250636, 0.057243548299115314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29324983_11-12-2025_06_05_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29324987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29324988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29324989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29324990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29324991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29324992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29324993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29324994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29324995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29324996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29324997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29324998, '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 = 29325878 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': 4206940, 'mtr_portfolio_id': 29325878, 'created_at': datetime.datetime(2025, 12, 11, 6, 5, 27), 'result': '0.04902700695993459', 'result_long': None, 'result_double': None}] Qualite : 0.04902700695993459 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29325878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29325878_11-12-2025_06_05_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29325878 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_P29325878_11-12-2025_06_05_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29325879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29325880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29325881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29325882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29325883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29325884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29325885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29325886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29325887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29325888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29325889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29325890, 'pht': 3726}}" where mtr_portfolio_id = 29325878 and dashboard_run_id = 2729245 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`=29325878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250637, 0.04902700695993459, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29325878_11-12-2025_06_05_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29325879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29325880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29325881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29325882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29325883, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29325884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29325885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29325886, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29325887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29325888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29325889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29325890, '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 = 29326189 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': 4207007, 'mtr_portfolio_id': 29326189, 'created_at': datetime.datetime(2025, 12, 11, 5, 49), 'result': '0.01692313619351556', 'result_long': None, 'result_double': None}] Qualite : 0.01692313619351556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29326189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29326189_11-12-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29326189 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_P29326189_11-12-2025_05_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29326190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326201, 'pht': 3726}}" where mtr_portfolio_id = 29326189 and dashboard_run_id = 2729245 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`=29326189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250638, 0.01692313619351556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29326189_11-12-2025_05_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29326190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326201, '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 = 29326519 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': 4207104, 'mtr_portfolio_id': 29326519, 'created_at': datetime.datetime(2025, 12, 11, 6, 48, 59), 'result': '0.07689047071372641', 'result_long': None, 'result_double': None}] Qualite : 0.07689047071372641 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29326519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29326519_11-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29326519 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_P29326519_11-12-2025_06_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29326527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326532, 'pht': 3726}}" where mtr_portfolio_id = 29326519 and dashboard_run_id = 2729245 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`=29326519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250639, 0.07689047071372641, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29326519_11-12-2025_06_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29326527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326528, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326532, '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 = 29326788 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': 4207145, 'mtr_portfolio_id': 29326788, 'created_at': datetime.datetime(2025, 12, 11, 7, 6, 58), 'result': '0.03691991062527825', 'result_long': None, 'result_double': None}] Qualite : 0.03691991062527825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29326788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29326788_11-12-2025_07_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29326788 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_P29326788_11-12-2025_07_06_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29326797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326807, 'pht': 3726}}" where mtr_portfolio_id = 29326788 and dashboard_run_id = 2729245 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`=29326788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250640, 0.03691991062527825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29326788_11-12-2025_07_06_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29326796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29326797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29326798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29326799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29326800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29326801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29326802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29326803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29326804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29326805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29326806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29326807, '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 = 29327233 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': 4207227, 'mtr_portfolio_id': 29327233, 'created_at': datetime.datetime(2025, 12, 11, 7, 17, 1), 'result': '0.07144291331422632', 'result_long': None, 'result_double': None}] Qualite : 0.07144291331422632 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29327233 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29327233_11-12-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29327233 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_P29327233_11-12-2025_07_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29327258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29327259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29327260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29327261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29327262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29327263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29327264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29327265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29327266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29327267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29327268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29327269, 'pht': 3726}}" where mtr_portfolio_id = 29327233 and dashboard_run_id = 2729245 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`=29327233 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250641, 0.07144291331422632, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29327233_11-12-2025_07_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29327258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29327259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29327260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29327261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29327262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29327263, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29327264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29327265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29327266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29327267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29327268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29327269, '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 = 29327700 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': 4207299, 'mtr_portfolio_id': 29327700, 'created_at': datetime.datetime(2025, 12, 11, 7, 33, 32), 'result': '0.03991518766437974', 'result_long': None, 'result_double': None}] Qualite : 0.03991518766437974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29327700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29327700_11-12-2025_07_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29327700 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_P29327700_11-12-2025_07_33_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29327716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29327717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29327718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29327719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29327720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29327721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29327722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29327723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29327724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29327725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29327726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29327727, 'pht': 3726}}" where mtr_portfolio_id = 29327700 and dashboard_run_id = 2729245 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`=29327700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250642, 0.03991518766437974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29327700_11-12-2025_07_33_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29327716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29327717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29327718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29327719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29327720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29327721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29327722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29327723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29327724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29327725, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29327726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29327727, '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 = 29328179 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': 4207374, 'mtr_portfolio_id': 29328179, 'created_at': datetime.datetime(2025, 12, 11, 7, 50, 58), 'result': '0.05505224882376853', 'result_long': None, 'result_double': None}] Qualite : 0.05505224882376853 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29328179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29328179_11-12-2025_07_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29328179 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_P29328179_11-12-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29328181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29328182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29328183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29328184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29328185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29328186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29328187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29328188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29328189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29328190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29328191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29328192, 'pht': 3726}}" where mtr_portfolio_id = 29328179 and dashboard_run_id = 2729245 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`=29328179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250643, 0.05505224882376853, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29328179_11-12-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29328181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29328182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29328183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29328184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29328185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29328186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29328187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29328188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29328189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29328190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29328191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29328192, '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 = 29328658 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': 4207462, 'mtr_portfolio_id': 29328658, 'created_at': datetime.datetime(2025, 12, 11, 8, 6, 8), 'result': '0.05416849957285995', 'result_long': None, 'result_double': None}] Qualite : 0.05416849957285995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29328658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29328658_11-12-2025_08_06_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29328658 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_P29328658_11-12-2025_08_06_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29328708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29328709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29328710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29328711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29328712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29328713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29328714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29328715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29328716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29328717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29328718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29328719, 'pht': 3726}}" where mtr_portfolio_id = 29328658 and dashboard_run_id = 2729245 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`=29328658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250644, 0.05416849957285995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29328658_11-12-2025_08_06_09.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29328708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29328709, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29328710, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29328711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29328712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29328713, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29328714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29328715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29328716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29328717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29328718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29328719, '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 = 29329187 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': 4207527, 'mtr_portfolio_id': 29329187, 'created_at': datetime.datetime(2025, 12, 11, 8, 19, 33), 'result': '0.0674321761245342', 'result_long': None, 'result_double': None}] Qualite : 0.0674321761245342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29329187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29329187_11-12-2025_08_19_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29329187 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_P29329187_11-12-2025_08_19_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29329188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29329189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29329190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29329191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29329192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29329193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29329194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29329195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29329196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29329197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29329198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29329199, 'pht': 3726}}" where mtr_portfolio_id = 29329187 and dashboard_run_id = 2729245 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`=29329187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250645, 0.0674321761245342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29329187_11-12-2025_08_19_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29329188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29329189, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29329190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29329191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29329192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29329193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29329194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29329195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29329196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29329197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29329198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29329199, '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 = 29329580 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': 4207598, 'mtr_portfolio_id': 29329580, 'created_at': datetime.datetime(2025, 12, 11, 8, 36, 30), 'result': '0.048113291083647196', 'result_long': None, 'result_double': None}] Qualite : 0.048113291083647196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29329580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29329580_11-12-2025_08_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29329580 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_P29329580_11-12-2025_08_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29329596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29329597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29329598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29329599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29329600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29329601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29329602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29329603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29329604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29329605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29329606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29329607, 'pht': 3726}}" where mtr_portfolio_id = 29329580 and dashboard_run_id = 2729245 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`=29329580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250646, 0.048113291083647196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29329580_11-12-2025_08_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29329596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29329597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29329598, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29329599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29329600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29329601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29329602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29329603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29329604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29329605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29329606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29329607, '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 = 29330124 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': 4207690, 'mtr_portfolio_id': 29330124, 'created_at': datetime.datetime(2025, 12, 11, 8, 48, 58), 'result': '0.040861560540344684', 'result_long': None, 'result_double': None}] Qualite : 0.040861560540344684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29330124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29330124_11-12-2025_08_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29330124 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_P29330124_11-12-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29330125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29330126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29330127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29330128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29330129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29330130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29330131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29330132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29330133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29330134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29330135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29330136, 'pht': 3726}}" where mtr_portfolio_id = 29330124 and dashboard_run_id = 2729245 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`=29330124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250647, 0.040861560540344684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29330124_11-12-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29330125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29330126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29330127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29330128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29330129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29330130, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29330131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29330132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29330133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29330134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29330135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29330136, '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 = 29330599 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': 4207752, 'mtr_portfolio_id': 29330599, 'created_at': datetime.datetime(2025, 12, 11, 9, 36, 58), 'result': '0.05702788636914127', 'result_long': None, 'result_double': None}] Qualite : 0.05702788636914127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29330599 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29330599_11-12-2025_09_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29330599 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_P29330599_11-12-2025_09_36_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29330646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29330647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29330648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29330649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29330650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29330651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29330652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29330653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29330654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29330655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29330656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29330657, 'pht': 3726}}" where mtr_portfolio_id = 29330599 and dashboard_run_id = 2729245 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`=29330599 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250648, 0.05702788636914127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29330599_11-12-2025_09_36_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29330646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29330647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29330648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29330649, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29330650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29330651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29330652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29330653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29330654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29330655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29330656, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29330657, '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 = 29332949 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': 4208020, 'mtr_portfolio_id': 29332949, 'created_at': datetime.datetime(2025, 12, 11, 9, 49, 32), 'result': '0.036349080518257394', 'result_long': None, 'result_double': None}] Qualite : 0.036349080518257394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29332949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29332949_11-12-2025_09_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29332949 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_P29332949_11-12-2025_09_49_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29332953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29332954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29332955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29332956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29332957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29332958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29332959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29332960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29332961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29332962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29332963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29332964, 'pht': 3726}}" where mtr_portfolio_id = 29332949 and dashboard_run_id = 2729245 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`=29332949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250649, 0.036349080518257394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29332949_11-12-2025_09_49_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29332953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29332954, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29332955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29332956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29332957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29332958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29332959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29332960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29332961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29332962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29332963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29332964, '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 = 29333472 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': 4208067, 'mtr_portfolio_id': 29333472, 'created_at': datetime.datetime(2025, 12, 11, 10, 2, 56), 'result': '0.06729033616482148', 'result_long': None, 'result_double': None}] Qualite : 0.06729033616482148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29333472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29333472_11-12-2025_10_02_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29333472 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_P29333472_11-12-2025_10_02_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29333476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29333477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29333478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29333479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29333480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29333481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29333482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29333483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29333484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29333485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29333486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29333487, 'pht': 3726}}" where mtr_portfolio_id = 29333472 and dashboard_run_id = 2729245 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`=29333472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250650, 0.06729033616482148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29333472_11-12-2025_10_02_56.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29333476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29333477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29333478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29333479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29333480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29333481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29333482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29333483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29333484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29333485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29333486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29333487, '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 = 29334094 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': 4208150, 'mtr_portfolio_id': 29334094, 'created_at': datetime.datetime(2025, 12, 11, 10, 17), 'result': '0.0476339074523277', 'result_long': None, 'result_double': None}] Qualite : 0.0476339074523277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29334094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29334094_11-12-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29334094 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_P29334094_11-12-2025_10_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29334130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29334131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29334132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29334133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29334134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29334135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29334136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29334137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29334138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29334139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29334140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29334141, 'pht': 3726}}" where mtr_portfolio_id = 29334094 and dashboard_run_id = 2729245 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`=29334094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250651, 0.0476339074523277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29334094_11-12-2025_10_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29334130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29334131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29334132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29334133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29334134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29334135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29334136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29334137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29334138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29334139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29334140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29334141, '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 = 29334922 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': 4208222, 'mtr_portfolio_id': 29334922, 'created_at': datetime.datetime(2025, 12, 11, 10, 32, 58), 'result': '0.04001239801127378', 'result_long': None, 'result_double': None}] Qualite : 0.04001239801127378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29334922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29334922_11-12-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29334922 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_P29334922_11-12-2025_10_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29334926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29334927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29334928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29334929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29334930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29334931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29334932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29334933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29334934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29334935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29334936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29334937, 'pht': 3726}}" where mtr_portfolio_id = 29334922 and dashboard_run_id = 2729245 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`=29334922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250652, 0.04001239801127378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29334922_11-12-2025_10_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29334926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29334927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29334928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29334929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29334930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29334931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29334932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29334933, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29334934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29334935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29334936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29334937, '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 = 29335534 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': 4208290, 'mtr_portfolio_id': 29335534, 'created_at': datetime.datetime(2025, 12, 11, 10, 49, 29), 'result': '0.030977210771616435', 'result_long': None, 'result_double': None}] Qualite : 0.030977210771616435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29335534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29335534_11-12-2025_10_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29335534 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_P29335534_11-12-2025_10_49_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29335580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29335581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29335582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29335583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29335584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29335585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29335586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29335587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29335588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29335589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29335590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29335591, 'pht': 3726}}" where mtr_portfolio_id = 29335534 and dashboard_run_id = 2729246 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`=29335534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250653, 0.030977210771616435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29335534_11-12-2025_10_49_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29335580, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29335581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29335582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29335583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29335584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29335585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29335586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29335587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29335588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29335589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29335590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29335591, '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 = 29336151 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': 4208356, 'mtr_portfolio_id': 29336151, 'created_at': datetime.datetime(2025, 12, 11, 11, 3), 'result': '0.04442305360638033', 'result_long': None, 'result_double': None}] Qualite : 0.04442305360638033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29336151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29336151_11-12-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29336151 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_P29336151_11-12-2025_11_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29336155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29336156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29336157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29336158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29336159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29336160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29336161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29336162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29336163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29336164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29336165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29336166, 'pht': 3726}}" where mtr_portfolio_id = 29336151 and dashboard_run_id = 2729246 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`=29336151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250654, 0.04442305360638033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29336151_11-12-2025_11_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29336155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29336156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29336157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29336158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29336159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29336160, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29336161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29336162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29336163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29336164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29336165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29336166, '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 = 29336513 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': 4208423, 'mtr_portfolio_id': 29336513, 'created_at': datetime.datetime(2025, 12, 11, 11, 19, 28), 'result': '0.04418102654982041', 'result_long': None, 'result_double': None}] Qualite : 0.04418102654982041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29336513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29336513_11-12-2025_11_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29336513 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_P29336513_11-12-2025_11_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29336556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29336557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29336558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29336559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29336560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29336561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29336562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29336563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29336564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29336565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29336566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29336567, 'pht': 3726}}" where mtr_portfolio_id = 29336513 and dashboard_run_id = 2729246 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`=29336513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250655, 0.04418102654982041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29336513_11-12-2025_11_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29336556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29336557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29336558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29336559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29336560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29336561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29336562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29336563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29336564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29336565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29336566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29336567, '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 = 29337147 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': 4208501, 'mtr_portfolio_id': 29337147, 'created_at': datetime.datetime(2025, 12, 11, 11, 28, 59), 'result': '0.03350537169702361', 'result_long': None, 'result_double': None}] Qualite : 0.03350537169702361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29337147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29337147_11-12-2025_11_29_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29337147 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_P29337147_11-12-2025_11_29_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29337210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29337211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29337212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29337213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29337214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29337215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29337216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29337217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29337218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29337219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29337220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29337221, 'pht': 3726}}" where mtr_portfolio_id = 29337147 and dashboard_run_id = 2729246 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`=29337147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18250656, 0.03350537169702361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29337147_11-12-2025_11_29_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29337210, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29337211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29337212, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29337213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29337214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29337215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29337216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29337217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29337218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29337219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29337220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29337221, '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 (29321646,29322119,29322398,29322629,29323264,29323423,29323841,29324186,29324585,29324983,29325878,29326189,29326519,29326788,29327233,29327700,29328179,29328658,29329187,29329580,29330124,29330599,29332949,29333472,29334094,29334922,29335534,29336151,29336513,29337147) result : ((1398797446,), (1398797448,), (1398797462,), (1398797465,), (1398797468,), (1398797471,), (1398797740,), (1398797838,), (1398797840,), (1398797842,), (1398797845,), (1398797847,), (1398798031,), (1398798106,), (1398798133,), (1398798136,), (1398798138,), (1398798150,), (1398798152,), (1398798154,), (1398798156,), (1398798159,), (1398798181,), (1398798184,), (1398798187,), (1398798190,), (1398798214,), (1398798216,), (1398798217,), (1398798218,), (1398798221,), (1398798234,), (1398798236,), (1398798238,), (1398798243,), (1398798250,), (1398798252,), (1398798258,), (1398798262,), (1398798263,), (1398798265,), (1398798304,), (1398798305,), (1398798306,), (1398798307,), (1398798310,), (1398798313,), (1398798322,), (1398798324,), (1398798326,), (1398798328,), (1398798355,), (1398798357,), (1398798359,), (1398798361,), (1398798364,), (1398798402,), (1398798403,), (1398798405,), (1398798408,), (1398798411,), (1398798412,), (1398798426,), (1398798429,), (1398798579,), (1398798580,), (1398798688,), (1398798684,), (1398798718,), (1398798719,), (1398798730,), (1398798732,), (1398798735,), (1398798737,), (1398798808,), (1398798815,), (1398798818,), (1398798820,), (1398799126,), (1398799147,), (1398799180,), (1398799183,), (1398799186,), (1398799199,), (1398799201,), (1398799203,), (1398799227,), (1398799228,), (1398799229,), (1398799255,), (1398799257,), (1398799260,), (1398799263,), (1398799290,), (1398799292,), (1398799294,), (1398799296,), (1398799508,), (1398799588,), (1398799591,), (1398799594,), (1398799617,), (1398799619,), (1398799621,), (1398799675,), (1398799689,), (1398799691,), (1398799693,), (1398799695,), (1398799725,), (1398799727,), (1398799729,), (1398799731,), (1398799734,), (1398799746,), (1398799748,), (1398799750,), (1398799754,), (1398799758,), (1398799778,), (1398799780,), (1398799782,), (1398799784,), (1398799787,), (1398799805,), (1398799807,), (1398799809,), (1398799811,), (1398799814,), (1398799816,), (1398799826,), (1398799828,), (1398799831,), (1398799834,), (1398799848,), (1398799849,), (1398799850,), (1398799852,), (1398799854,), (1398799856,), (1398799862,), (1398799865,), (1398799870,), (1398799879,), (1398799882,), (1398799887,), (1398799899,), (1398799901,), (1398799902,), (1398799913,), (1398799907,), (1398799908,), (1398799911,), (1398799915,), (1398799916,), (1398799917,), (1398799918,), (1398799921,), (1398799955,), (1398799957,), (1398799959,), (1398799961,), (1398799964,), (1398799986,), (1398799988,), (1398799990,), (1398799994,), (1398800030,), (1398800033,), (1398800036,), (1398800040,), (1398800044,), (1398800048,), (1398800050,), (1398800052,), (1398800054,), (1398800057,), (1398800086,), (1398800087,), (1398800088,), (1398800089,), (1398800092,), (1398800108,), (1398800111,), (1398800113,), (1398800116,), (1398800118,), (1398800119,), (1398800132,), (1398800134,), (1398800137,), (1398800141,), (1398800167,), (1398800171,), (1398800173,), (1398800176,), (1398800179,), (1398802635,), (1398803973,), (1398803988,), (1398803990,), (1398803992,), (1398803996,), (1398804015,), (1398804018,), (1398804021,), (1398804024,), (1398804039,), (1398804132,), (1398804134,), (1398804152,), (1398804155,), (1398804158,), (1398804161,), (1398804177,), (1398804178,), (1398804180,), (1398804181,), (1398804184,), (1398804185,), (1398804218,), (1398804204,), (1398804207,), (1398804210,), (1398804213,), (1398804216,), (1398804231,), (1398804233,), (1398804235,), (1398804239,), (1398804260,), (1398804265,), (1398804270,), (1398804272,), (1398804276,), (1398804277,), (1398804289,), (1398804290,), (1398804291,), (1398804292,), (1398804316,), (1398804318,), (1398804320,), (1398804334,), (1398804336,), (1398804338,), (1398804340,), (1398804363,), (1398804365,), (1398804367,), (1398804369,), (1398804372,), (1398804373,), (1398804385,), (1398804386,), (1398804387,), (1398804390,), (1398804393,), (1398804396,), (1398804408,), (1398804409,), (1398804410,), (1398804428,), (1398804430,), (1398804432,), (1398804436,), (1398804867,), (1398805815,), (1398805858,), (1398805898,), (1398805933,), (1398806303,), (1398806338,), (1398806369,), (1398806401,), (1398806743,), (1398806746,), (1398806748,), (1398806750,), (1398806752,), (1398806754,), (1398806936,), (1398806970,), (1398806977,), (1398806979,), (1398807001,), (1398807121,), (1398807155,), (1398807186,), (1398807220,), (1398807612,), (1398807647,), (1398807673,), (1398807676,), (1398807851,), (1398807909,), (1398808001,), (1398808087,), (1398808826,), (1398808827,), (1398808828,), (1398808829,), (1398808832,), (1398808844,), (1398808859,), (1398808949,), (1398809043,), (1398809508,), (1398809543,), (1398809577,), (1398809611,), (1398809645,), (1398809678,), (1398810038,), (1398810073,), (1398810107,), (1398810140,), (1398810177,), (1398810198,), (1398810203,), (1398810204,), (1398810206,), (1398810331,), (1398810366,), (1398810401,), (1398810439,), (1398810473,), (1398810507,), (1398810576,), (1398810577,), (1398810605,), (1398810606,), (1398810608,), (1398810610,), (1398810618,), (1398810639,), (1398810655,), (1398810660,), (1398810671,), (1398810672,), (1398810684,), (1398810687,), (1398810689,), (1398810677,), (1398810679,), (1398810681,), (1398810700,), (1398810702,), (1398810704,), (1398810706,), (1398810709,), (1398810711,), (1398810731,), (1398810750,), (1398810756,), (1398810769,), (1398810846,), (1398810853,), (1398810855,), (1398810857,), (1398810860,), (1398810872,), (1398810873,), (1398810874,), (1398810877,), (1398810880,), (1398810882,), (1398810888,), (1398810891,), (1398810896,), (1398810900,), (1398810904,), (1398810919,), (1398810921,), (1398810923,), (1398810926,), (1398810928,), (1398810929,), (1398810933,), (1398810934,), (1398810940,), (1398810941,), (1398810942,), (1398810943,), (1398810945,), (1398810946,), (1398810948,), (1398810949,), (1398810951,), (1398810952,), (1398810968,), (1398810970,), (1398810972,), (1398810975,), (1398810977,), (1398810989,), (1398810991,), (1398810993,), (1398810995,), (1398811021,), (1398811028,), (1398811032,), (1398811034,), (1398811037,), (1398811040,), (1398811052,), (1398811054,), (1398811056,), (1398811057,), (1398811058,), (1398811087,), (1398811088,), (1398811090,), (1398811091,), (1398811094,), (1398811121,), (1398811107,), (1398811109,), (1398811112,), (1398811115,), (1398811118,), (1398811126,), (1398811127,), (1398811128,), (1398811141,), (1398811143,), (1398811145,), (1398811148,), (1398811151,), (1398811153,), (1398811166,), (1398811182,), (1398811184,), (1398811186,), (1398811188,), (1398811203,), (1398811206,), (1398811207,), (1398811210,), (1398811232,), (1398811234,), (1398811236,), (1398811238,), (1398811322,), (1398811342,), (1398811344,), (1398811346,), (1398811348,), (1398811369,), (1398811370,), (1398811371,), (1398811387,), (1398811389,), (1398811393,), (1398811410,), (1398811411,), (1398811412,), (1398811431,), (1398811433,), (1398811436,), (1398811468,), (1398811464,), (1398811466,), (1398811483,), (1398811485,), (1398811487,), (1398811489,), (1398811493,), (1398811513,), (1398811516,), (1398811519,), (1398811522,), (1398811525,), (1398811528,), (1398811537,), (1398811540,), (1398811543,), (1398811547,), (1398811579,), (1398811581,), (1398811583,), (1398811585,), (1398811588,), (1398811590,), (1398811603,), (1398811605,), (1398811607,), (1398811609,), (1398811612,), (1398811616,), (1398811634,), (1398811635,), (1398811638,), (1398811641,), (1398811657,), (1398811658,), (1398811659,), (1398811662,), (1398811665,), (1398811668,), (1398811680,), (1398811684,), (1398811685,), (1398811690,), (1398811693,), (1398811696,), (1398811699,), (1398811702,), (1398811718,), (1398811720,), (1398811724,), (1398811727,), (1398811730,), (1398811733,), (1398811745,), (1398811790,), (1398821602,), (1398821998,), (1398822000,), (1398822018,), (1398822019,), (1398822034,), (1398822036,), (1398822037,), (1398822038,), (1398822041,), (1398822070,), (1398822075,), (1398822079,), (1398822083,), (1398822086,), (1398822088,), (1398822100,), (1398822120,), (1398822124,), (1398822128,), (1398822143,), (1398822145,), (1398822147,), (1398822148,), (1398822149,), (1398822150,), (1398822167,), (1398822168,), (1398822172,), (1398822174,), (1398822181,), (1398822185,), (1398822188,), (1398822190,), (1398822197,), (1398822208,), (1398822211,), (1398822213,), (1398822406,), (1398822404,), (1398822423,), (1398822426,), (1398822429,), (1398822432,), (1398822434,), (1398822436,), (1398822451,), (1398822452,), (1398822453,), (1398822456,), (1398822459,), (1398822462,), (1398822469,), (1398822470,), (1398822471,), (1398822474,), (1398822477,), (1398822479,), (1398822481,), (1398822495,), (1398822498,), (1398822522,), (1398822551,), (1398822575,), (1398822590,), (1398822593,), (1398822595,), (1398822631,), (1398822720,), (1398825256,), (1398825279,), (1398825281,), (1398825282,), (1398825284,), (1398825300,), (1398825302,), (1398825304,), (1398825306,), (1398825309,), (1398825312,), (1398825331,), (1398825332,), (1398825333,), (1398825334,), (1398825337,), (1398825352,), (1398825355,), (1398825397,), (1398825401,), (1398825402,), (1398825405,), (1398825408,), (1398825411,), (1398825421,), (1398825423,), (1398825425,), (1398825427,), (1398825430,), (1398825432,), (1398825442,), (1398825444,), (1398825446,), (1398825448,), (1398825465,), (1398825466,), (1398825467,), (1398825468,), (1398825471,), (1398825494,), (1398825496,), (1398825498,), (1398825500,), (1398825503,), (1398825517,), (1398825519,), (1398825520,), (1398825523,), (1398825526,), (1398825528,), (1398825544,), (1398825549,), (1398825552,), (1398825555,), (1398825559,), (1398825560,), (1398825563,), (1398825566,), (1398825569,), (1398825572,), (1398825589,), (1398825592,), (1398825595,), (1398825596,), (1398825599,), (1398825610,), (1398825620,), (1398825623,), (1398825625,), (1398825627,), (1398825642,), (1398825633,), (1398825635,), (1398825636,), (1398825639,), (1398825649,), (1398825652,), (1398825654,), (1398825656,), (1398825659,), (1398825700,), (1398825701,), (1398825703,), (1398825704,), (1398825720,), (1398825722,), (1398825724,), (1398825725,), (1398825729,), (1398825732,), (1398825761,), (1398825764,), (1398825766,), (1398825768,), (1398825771,), (1398825787,), (1398825790,), (1398825793,), (1398825820,), (1398825822,), (1398825824,), (1398825842,), (1398825845,), (1398825848,), (1398825850,), (1398825852,), (1398825855,), (1398825868,), (1398825871,), (1398825873,), (1398825876,), (1398825878,), (1398825881,), (1398825883,), (1398825885,), (1398825904,), (1398825905,), (1398825911,), (1398825912,), (1398825915,), (1398825919,), (1398825920,), (1398825923,), (1398825924,), (1398825926,), (1398825927,), (1398825928,), (1398825936,), (1398825939,), (1398825941,), (1398825943,), (1398825945,), (1398825946,), (1398825951,), (1398825954,), (1398825957,), (1398825964,), (1398825965,), (1398825966,), (1398825968,), (1398826000,), (1398826002,), (1398826004,), (1398826005,), (1398826017,), (1398826022,), (1398826030,), (1398826033,), (1398826036,), (1398826037,), (1398826078,), (1398826049,), (1398826539,), (1398826578,), (1398826620,), (1398826652,), (1398826795,), (1398826833,), (1398826852,), (1398826863,), (1398826868,), (1398826870,), (1398826949,), (1398826955,), (1398826961,), (1398826963,), (1398826973,), (1398826977,), (1398826980,), (1398826983,), (1398826986,), (1398826996,), (1398826999,), (1398827002,), (1398827005,), (1398827007,), (1398827009,), (1398827019,), (1398827021,), (1398827023,), (1398827025,), (1398827047,), (1398827050,), (1398827053,), (1398827055,), (1398827056,), (1398827070,), (1398827073,), (1398827074,), (1398827869,), (1398827872,), (1398827873,), (1398827874,), (1398827875,), (1398827876,), (1398828077,), (1398828167,), (1398828199,), (1398828208,), (1398828233,), (1398828234,), (1398828296,), (1398828298,), (1398828299,), (1398828319,), (1398828321,), (1398828323,), (1398828325,), (1398828327,), (1398828329,), (1398828342,), (1398828344,), (1398828360,), (1398828362,), (1398828364,), (1398828367,), (1398828370,), (1398828386,), (1398828388,), (1398828391,), (1398828394,), (1398828399,), (1398828401,), (1398828406,), (1398828423,), (1398828420,), (1398828440,), (1398828442,), (1398828469,), (1398828470,), (1398828492,), (1398828494,), (1398828525,), (1398828528,), (1398828531,), (1398828534,), (1398828538,), (1398828562,), (1398828565,), (1398828567,), (1398828569,), (1398828572,), (1398828592,), (1398828593,), (1398828605,), (1398828610,), (1398828627,), (1398828629,), (1398828631,), (1398828634,), (1398828637,), (1398828639,), (1398828651,), (1398828656,), (1398828658,), (1398828676,), (1398828677,), (1398828678,), (1398828680,), (1398828682,), (1398828684,), (1398828706,), (1398828709,), (1398828711,), (1398828714,), (1398828716,), (1398828718,), (1398828722,), (1398828723,), (1398828725,), (1398828727,), (1398828728,), (1398828730,), (1398828736,), (1398828738,), (1398828740,), (1398828742,), (1398828756,), (1398828757,), (1398828758,), (1398828759,), (1398828782,), (1398828783,), (1398828784,), (1398828785,), (1398828788,), (1398828810,), (1398828813,), (1398828815,), (1398828829,), (1398828839,), (1398828861,), (1398828864,), (1398828867,), (1398828869,), (1398828873,), (1398828889,), (1398828883,), (1398828885,), (1398828887,), (1398828902,), (1398828903,), (1398828904,), (1398828905,), (1398828908,), (1398828913,), (1398828923,), (1398828925,), (1398828927,), (1398828930,), (1398828933,), (1398828935,), (1398828938,), (1398828940,), (1398828942,), (1398828944,), (1398828947,), (1398828948,), (1398828951,), (1398828954,), (1398828957,), (1398828960,), (1398828971,), (1398828974,), (1398828977,), (1398828982,), (1398828985,), (1398828988,), (1398828995,), (1398829002,), (1398829007,), (1398829008,), (1398829013,), (1398829014,), (1398829017,), (1398829018,), (1398829020,), (1398829022,), (1398829026,), (1398829027,), (1398829031,), (1398829032,), (1398829051,), (1398829054,), (1398829056,), (1398829060,), (1398829064,), (1398829078,), (1398829080,), (1398829082,), (1398829084,), (1398829093,), (1398829117,), (1398829119,), (1398829121,), (1398829123,), (1398829126,), (1398829148,), (1398829155,), (1398829161,), (1398829177,), (1398829198,), (1398829199,), (1398829200,), (1398829201,), (1398829236,), (1398829249,), (1398829251,), (1398829253,), (1398829262,), (1398829305,), (1398829306,), (1398829308,), (1398829310,), (1398829312,), (1398829319,), (1398829327,), (1398829331,), (1398829336,), (1398829347,), (1398829352,), (1398829357,), (1398829360,), (1398829362,), (1398829364,), (1398829391,), (1398829393,), (1398829395,), (1398829396,), (1398829407,), (1398829408,), (1398829419,), (1398829420,), (1398829422,), (1398829423,), (1398829424,), (1398829425,), (1398829448,), (1398829449,), (1398829455,), (1398829457,), (1398829460,), (1398829438,), (1398829440,), (1398829442,), (1398829445,), (1398829467,), (1398829468,), (1398829469,), (1398829472,), (1398829486,), (1398829488,), (1398829490,), (1398829492,), (1398829495,), (1398829496,), (1398829511,), (1398829513,), (1398829515,), (1398829517,), (1398829549,), (1398829554,), (1398829561,), (1398829562,), (1398829564,), (1398829566,), (1398829592,), (1398829594,), (1398829595,), (1398829598,), (1398829601,), (1398829624,), (1398829627,), (1398829630,), (1398829632,), (1398829635,), (1398829645,), (1398829679,), (1398829680,), (1398829681,), (1398829684,), (1398829687,), (1398829690,), (1398829712,), (1398829713,), (1398829714,), (1398829715,), (1398829717,), (1398829721,), (1398829724,), (1398829727,), (1398829729,), (1398829731,), (1398829734,), (1398829746,), (1398829748,), (1398829749,), (1398829751,), (1398829758,), (1398829764,), (1398829774,), (1398829775,), (1398829776,), (1398829777,), (1398829784,), (1398829785,), (1398829787,), (1398829788,), (1398829790,), (1398829792,), (1398829793,), (1398829795,), (1398829797,), (1398829798,), (1398829799,), (1398829800,), (1398829816,), (1398829819,), (1398829823,), (1398829827,), (1398829846,), (1398829848,), (1398829850,), (1398829852,), (1398829861,), (1398829875,), (1398829928,), (1398829931,), (1398829934,), (1398829936,), (1398829938,), (1398829940,), (1398829970,), (1398829973,), (1398829976,), (1398829979,), (1398829982,), (1398829990,), (1398830002,), (1398830006,), (1398829964,), (1398829966,), (1398830013,), (1398830014,), (1398830015,), (1398830016,), (1398830020,), (1398830022,), (1398830032,), (1398830033,), (1398830034,), (1398830035,), (1398830038,), (1398830055,), (1398830060,), (1398830062,), (1398830064,), (1398830080,), (1398830081,), (1398830082,), (1398830083,), (1398830084,), (1398830107,), (1398830113,), (1398830116,), (1398830117,), (1398830135,), (1398830137,), (1398830140,), (1398830143,), (1398830146,), (1398830150,), (1398830175,), (1398830178,), (1398830180,), (1398830182,), (1398830185,), (1398830199,), (1398830209,), (1398830210,), (1398830213,), (1398830215,), (1398830217,), (1398830231,), (1398830232,), (1398830234,), (1398830236,), (1398830239,), (1398830247,), (1398830257,), (1398830264,), (1398830266,), (1398830269,), (1398830271,), (1398830297,), (1398830298,), (1398830299,), (1398830320,), (1398830322,), (1398830324,), (1398830328,), (1398830332,), (1398830335,), (1398830345,), (1398830346,), (1398830348,), (1398830350,), (1398830352,), (1398830354,), (1398830371,), (1398830373,), (1398830376,), (1398830381,), (1398830386,), (1398830390,), (1398830412,), (1398830406,), (1398830409,), (1398830425,), (1398830428,), (1398830430,), (1398830432,), (1398830434,), (1398830436,), (1398830448,), (1398830449,), (1398830450,), (1398830451,), (1398830453,), (1398830470,), (1398830479,), (1398830480,), (1398830481,), (1398830484,), (1398830485,), (1398830497,), (1398830499,), (1398830501,), (1398830503,), (1398830506,), (1398830526,), (1398830531,), (1398830533,), (1398830536,), (1398830539,), (1398830541,), (1398830553,), (1398830555,), (1398830557,), (1398830559,), (1398830562,), (1398830575,), (1398830577,), (1398830580,), (1398830581,), (1398830582,), (1398830590,), (1398830593,), (1398830600,), (1398830607,), (1398830628,), (1398830631,), (1398830634,), (1398830635,), (1398830638,), (1398830641,), (1398830657,), (1398830658,), (1398830659,), (1398830662,), (1398830665,), (1398830668,), (1398830684,), (1398830685,), (1398830688,), (1398830691,), (1398830693,), (1398830695,), (1398830704,), (1398830706,), (1398830710,), (1398830716,), (1398830717,), (1398830718,), (1398830724,), (1398830725,), (1398830727,), (1398830728,), (1398830729,), (1398830730,), (1398830733,), (1398830734,), (1398830735,), (1398830736,), (1398830737,), (1398830738,), (1398830748,), (1398830750,), (1398830752,), (1398830755,), (1398830758,), (1398830759,), (1398830767,), (1398830769,), (1398830773,), (1398830774,), (1398830775,), (1398830776,), (1398830801,), (1398830804,), (1398830808,), (1398830810,), (1398830813,), (1398830816,), (1398830832,), (1398830825,), (1398830828,), (1398830869,), (1398830878,), (1398830879,), (1398830880,), (1398830883,), (1398830897,), (1398830898,), (1398830900,), (1398830903,), (1398830906,), (1398830908,), (1398830918,), (1398830926,), (1398830931,), (1398830933,), (1398830937,), (1398830942,), (1398830954,), (1398830979,), (1398830981,), (1398830983,), (1398830985,), (1398830988,), (1398831014,), (1398831015,), (1398831016,), (1398831017,), (1398831038,), (1398831040,), (1398831042,), (1398831077,), (1398831084,), (1398831085,), (1398831086,), (1398831089,), (1398831090,), (1398831104,), (1398831106,), (1398831109,), (1398831112,), (1398831115,), (1398831141,), (1398831147,), (1398831162,), (1398831164,), (1398831166,), (1398831168,), (1398831211,), (1398831215,), (1398831216,), (1398831217,), (1398831235,), (1398831237,), (1398831240,), (1398831243,), (1398831245,), (1398831246,), (1398831256,), (1398831259,), (1398831260,), (1398831263,), (1398831266,), (1398831269,), (1398831272,), (1398831296,), (1398831298,), (1398831307,), (1398831308,), (1398831311,), (1398831313,), (1398831318,), (1398831321,), (1398831329,), (1398831326,), (1398831327,), (1398831328,), (1398831353,), (1398831354,), (1398831375,), (1398831376,), (1398831377,), (1398831378,), (1398831381,), (1398831409,), (1398831411,), (1398831432,), (1398831434,), (1398831435,), (1398831436,), (1398831437,), (1398831449,), (1398831450,), (1398831451,), (1398831452,), (1398831455,), (1398831527,), (1398831541,), (1398831543,), (1398831545,), (1398831548,), (1398831700,), (1398831702,), (1398831726,), (1398831736,), (1398831742,), (1398831790,), (1398831921,), (1398831943,), (1398831947,), (1398832140,), (1398832192,), (1398832211,), (1398832301,), (1398832312,), (1398832363,), (1398832366,), (1398832370,), (1398832401,), (1398832547,), (1398832549,), (1398832551,), (1398832569,), (1398832606,), (1398832641,), (1398832779,), (1398848572,), (1398848795,), (1398847455,), (1398848483,), (1398848547,), (1398848555,), (1398848567,), (1398848570,), (1398848705,), (1398848712,), (1398848729,), (1398848732,), (1398848762,), (1398848763,), (1398848788,), (1398848790,), (1398848792,), (1398848801,), (1398848802,), (1398848805,), (1398848969,), (1398848977,), (1398849009,), (1398849012,), (1398849015,), (1398849115,), (1398849130,), (1398849142,), (1398849144,), (1398849174,), (1398849199,), (1398849203,), (1398849206,), (1398849210,), (1398849249,), (1398849251,), (1398849253,), (1398849255,), (1398849257,), (1398849260,), (1398849279,), (1398849315,), (1398849353,), (1398849391,), (1398849676,), (1398849681,), (1398849683,), (1398849684,), (1398849686,), (1398849981,), (1398849983,), (1398849985,), (1398849987,), (1398849988,), (1398849990,), (1398849992,), (1398849997,), (1398850004,), (1398850035,), (1398850071,), (1398850145,), (1398850152,), (1398850235,), (1398850409,), (1398850412,), (1398850415,), (1398850419,), (1398850430,), (1398850442,), (1398850517,), (1398850519,), (1398850522,), (1398850631,), (1398850509,), (1398850512,), (1398850515,), (1398850669,), (1398850671,), (1398850673,), (1398850676,), (1398850680,), (1398850700,), (1398850706,), (1398850717,), (1398850721,), (1398850723,), (1398850725,), (1398850909,), (1398850939,), (1398850970,), (1398851001,), (1398851042,), (1398851343,), (1398851384,), (1398851419,), (1398851439,), (1398851449,), (1398851475,), (1398851643,), (1398851674,), (1398851678,), (1398851681,), (1398851718,), (1398851720,), (1398851722,), (1398851726,), (1398851730,), (1398852117,), (1398852119,), (1398852162,), (1398852165,), (1398852169,), (1398852172,), (1398852178,), (1398852184,), (1398852189,), (1398852190,), (1398852354,), (1398852356,), (1398852388,), (1398852390,), (1398852421,), (1398852427,), (1398852457,), (1398852463,), (1398852505,), (1398852516,), (1398852527,), (1398852528,), (1398852643,), (1398852648,), (1398852684,), (1398852717,), (1398852756,), (1398852790,), (1398852874,), (1398852928,), (1398852934,), (1398852955,), (1398852959,), (1398852961,), (1398852985,), (1398853064,), (1398853111,), (1398853127,), (1398853184,), (1398853186,), (1398853187,), (1398853189,), (1398853198,), (1398853205,), (1398853227,), (1398853228,), (1398853249,), (1398853253,), (1398853256,), (1398853270,), (1398853275,), (1398853330,), (1398853318,), (1398853322,), (1398853326,), (1398853821,), (1398853859,), (1398853894,), (1398853928,), (1398853964,), (1398854206,), (1398854236,), (1398854271,), (1398854307,), (1398854346,), (1398854409,), (1398854835,), (1398854866,), (1398854909,), (1398854940,), (1398854950,), (1398854952,), (1398854965,), (1398854967,), (1398854970,), (1398854973,), (1398854976,), (1398854986,), (1398855005,), (1398855009,), (1398855023,), (1398855034,), (1398855037,), (1398855040,), (1398855044,), (1398855046,), (1398855072,), (1398855073,), (1398855074,), (1398855075,), (1398855084,), (1398855087,), (1398855156,), (1398855255,), (1398855285,), (1398855296,), (1398855367,), (1398855447,), (1398855467,), (1398855549,), (1398855551,), (1398855555,), (1398855809,), (1398855849,), (1398855883,), (1398855918,), (1398855953,), (1398856321,), (1398856354,), (1398856389,), (1398856423,), (1398856559,), (1398856626,), (1398856698,), (1398856779,), (1398857098,), (1398857115,), (1398857134,), (1398857440,), (1398857442,), (1398857508,), (1398857511,), (1398857514,), (1398857515,), (1398857587,), (1398857691,), (1398857772,), (1398857795,), (1398857792,), (1398857974,), (1398857975,), (1398858196,), (1398858197,), (1398858226,), (1398858255,), (1398858267,), (1398858300,), (1398858302,), (1398858304,), (1398858321,), (1398858322,), (1398858323,), (1398858329,), (1398858332,), (1398858561,), (1398858589,), (1398858591,), (1398858610,), (1398858613,), (1398858749,), (1398858750,), (1398858751,), (1398858860,), (1398858865,), (1398858890,), (1398858901,), (1398858903,), (1398858906,), (1398858929,), (1398858931,), (1398858933,), (1398858935,), (1398858938,), (1398858950,), (1398858951,), (1398858952,), (1398858953,), (1398858982,), (1398858984,), (1398859340,), (1398859377,), (1398859431,), (1398859610,), (1398859612,), (1398859614,), (1398859649,), (1398859828,), (1398859830,), (1398859832,), (1398859835,), (1398859861,), (1398859850,), (1398859852,), (1398859854,), (1398859856,), (1398859859,), (1398860046,), (1398860061,), (1398860063,), (1398860078,), (1398860079,), (1398860080,), (1398860083,), (1398860086,), (1398860088,), (1398860105,), (1398860107,), (1398860110,), (1398860192,), (1398860233,), (1398860273,), (1398860307,), (1398860746,), (1398860759,), (1398860793,), (1398860830,), (1398860864,), (1398860883,), (1398860885,), (1398860887,), (1398860914,), (1398860948,), (1398860985,), (1398861008,), (1398861015,), (1398861020,), (1398861277,), (1398861320,), (1398861323,), (1398861355,), (1398861359,), (1398861366,), (1398861416,), (1398861418,), (1398861420,), (1398861422,), (1398861425,), (1398861443,), (1398861451,), (1398861452,), (1398861453,), (1398861456,), (1398861459,), (1398861489,), (1398861491,), (1398861493,), (1398861512,), (1398861515,), (1398861518,), (1398861522,), (1398861526,), (1398861551,), (1398861552,), (1398861553,), (1398861554,), (1398861557,), (1398861560,), (1398861584,), (1398861585,), (1398861587,), (1398861590,), (1398861593,), (1398861595,), (1398861603,), (1398861605,), (1398861607,), (1398861621,), (1398861622,), (1398861623,), (1398861626,), (1398861629,), (1398861632,), (1398861658,), (1398861660,), (1398861663,), (1398861666,), (1398861669,), (1398861671,), (1398861693,), (1398861694,), (1398861699,), (1398861702,), (1398861719,), (1398861708,), (1398861710,), (1398861712,), (1398861714,), (1398861716,), (1398861731,), (1398861733,), (1398861736,), (1398861738,), (1398861946,), (1398861980,), (1398862011,), (1398862042,), (1398862047,), (1398862049,), (1398862063,), (1398862065,), (1398862067,), (1398862069,), (1398862093,), (1398862094,), (1398862095,), (1398862096,), (1398862099,), (1398862112,), (1398862114,), (1398862116,), (1398862118,), (1398862122,), (1398862152,), (1398862154,), (1398862156,), (1398862173,), (1398862174,), (1398862175,), (1398862178,), (1398862181,), (1398862184,), (1398862192,), (1398862196,), (1398862204,), (1398862242,), (1398862246,), (1398862249,), (1398862253,), (1398862256,), (1398862287,), (1398862289,), (1398862291,), (1398862294,), (1398862296,), (1398862769,), (1398863574,), (1398863449,), (1398863515,), (1398864136,), (1398864192,), (1398864232,), (1398864320,), (1398864387,), (1398864454,), (1398864603,), (1398864636,), (1398864638,), (1398864642,), (1398864646,), (1398864680,), (1398864802,), (1398864834,), (1398864872,), (1398864905,), (1398864931,), (1398864968,), (1398864971,), (1398864979,), (1398865012,), (1398865027,), (1398865039,), (1398865173,), (1398865185,), (1398865190,), (1398865200,), (1398865202,), (1398865206,), (1398865246,), (1398865248,), (1398865251,), (1398865254,), (1398865263,), (1398865264,), (1398865266,), (1398865278,), (1398865282,), (1398865284,), (1398865290,), (1398865293,), (1398865296,), (1398865300,), (1398865322,), (1398865331,), (1398865344,), (1398865347,), (1398865351,), (1398865354,), (1398865366,), (1398865368,), (1398865370,), (1398865372,), (1398865375,), (1398865398,), (1398865399,), (1398865400,), (1398865402,), (1398865410,), (1398865419,), (1398865433,), (1398865435,), (1398865437,), (1398865439,), (1398865442,), (1398865470,), (1398865473,), (1398865476,), (1398865479,), (1398865482,), (1398865485,), (1398865549,), (1398865551,), (1398865552,), (1398865555,), (1398865558,), (1398865561,), (1398865576,), (1398865577,), (1398865578,), (1398865579,), (1398865612,), (1398865623,), (1398865626,), (1398865628,), (1398865629,), (1398865637,), (1398865678,), (1398865682,), (1398865687,), (1398865690,), (1398865697,), (1398865701,), (1398865737,), (1398865740,), (1398865743,), (1398865745,), (1398865747,), (1398865767,), (1398865754,), (1398865755,), (1398865759,), (1398865763,), (1398865765,), (1398865832,), (1398865867,), (1398865893,), (1398865899,), (1398865973,), (1398865975,), (1398865977,), (1398865979,), (1398865993,), (1398866004,), (1398866061,), (1398866063,), (1398866065,), (1398866067,), (1398866101,), (1398866105,), (1398866108,), (1398866110,), (1398866112,), (1398866113,), (1398866120,), (1398866126,), (1398866146,), (1398866194,), (1398866197,), (1398866198,), (1398866200,), (1398866201,), (1398866202,), (1398866203,), (1398866215,), (1398866228,), (1398866261,), (1398866262,), (1398866271,), (1398866272,), (1398866273,), (1398866274,), (1398866292,), (1398866294,), (1398866296,), (1398866297,), (1398866302,), (1398866311,), (1398866348,), (1398866353,), (1398866354,), (1398866360,), (1398866362,), (1398866363,), (1398866366,), (1398866369,), (1398866373,), (1398866387,), (1398866389,), (1398866393,), (1398866402,), (1398866406,), (1398866410,), (1398866412,), (1398866414,), (1398866416,), (1398866423,), (1398866426,), (1398866434,), (1398866443,), (1398866444,), (1398866475,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11122025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29337147]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] map_info['map_portfolio_photo'] : {29337147: [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366, 1398866363, 1398866362, 1398866360, 1398866354, 1398866353, 1398866348, 1398866311, 1398866302, 1398866297, 1398866296, 1398866294, 1398866292, 1398866274, 1398866273, 1398866272, 1398866271, 1398866262, 1398866261, 1398866228, 1398866215, 1398866203, 1398866202, 1398866201, 1398866200, 1398866198, 1398866197, 1398866194, 1398866146, 1398866126, 1398866120, 1398866113, 1398866112, 1398866110, 1398866108, 1398866105, 1398866101, 1398866067, 1398866065, 1398866063, 1398866061, 1398866004, 1398865993, 1398865979, 1398865977, 1398865975, 1398865973, 1398865899, 1398865893, 1398865867, 1398865832, 1398865765, 1398865763, 1398865759, 1398865755, 1398865754]} final : True mtd_id 4302 list_pids : [1398866475, 1398866444, 1398866443, 1398866434, 1398866426, 1398866423, 1398866416, 1398866414, 1398866412, 1398866410, 1398866406, 1398866402, 1398866393, 1398866389, 1398866387, 1398866373, 1398866369, 1398866366] Looping around the photos to save general results len do output : 1 /29337147Didn'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, '4208501') ('4302', '29337147', '1398866475', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866444', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866443', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866434', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866426', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866423', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866416', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866414', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866412', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866410', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866406', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866402', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866393', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866389', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866387', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866373', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866369', None, None, None, None, None, '4208501') ('4302', None, None, None, None, None, None, None, '4208501') ('4302', '29337147', '1398866366', None, None, None, None, None, '4208501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29337147', 'None', None, None, None, None, '4208501'), ('4302', '29337147', '1398866475', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866444', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866443', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866434', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866426', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866423', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866416', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866414', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866412', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866410', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866406', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866402', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866393', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866389', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866387', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866373', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866369', None, None, None, None, None, '4208501'), ('4302', '29337147', '1398866366', None, None, None, None, None, '4208501')] time used for this insertion : 0.01992011070251465 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4157168865203857 time spend to save output : 0.020188093185424805 total time spend for step 5 : 2.4359049797058105 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 (4208501) 2.69user 2.91system 0:12.84elapsed 43%CPU (0avgtext+0avgdata 167220maxresident)k 13200inputs+18224outputs (136major+79843minor)pagefaults 0swaps