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 : 2793993 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 (4002365) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4002365) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28200911 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4002365'] with mtr_portfolio_ids : ['28200911'] and first list_photo_ids : [] new path : /proc/2793993/ Name: python3 Umask: 0002 State: R (running) Tgid: 2793993 Ngid: 0 Pid: 2793993 PPid: 2793992 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2793993 NSpid: 2793993 NSpgid: 2792534 NSsid: 2792534 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99388 kB VmRSS: 99388 kB RssAnon: 59908 kB RssFile: 39480 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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': '2793993', 'Ngid': '0', 'Pid': '2793993', 'PPid': '2793992', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2793993', 'NSpid': '2793993', 'NSpgid': '2792534', 'NSsid': '2792534', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99388 kB', 'VmRSS': '99388 kB', 'RssAnon': '59908 kB', 'RssFile': '39480 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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', '2793993', '1106908', '0', '1106884', '865636', '99388', b'', 'marlene', '4002365') 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 (28200911) 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 (4002365 ) ) 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 (28200911) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392707095, 'portfolio_id': 28200911}, {'photo_id': 1392707031, 'portfolio_id': 28200911}, {'photo_id': 1392706979, 'portfolio_id': 28200911}, {'photo_id': 1392706923, 'portfolio_id': 28200911}, {'photo_id': 1392706448, 'portfolio_id': 28200911}, {'photo_id': 1392706419, 'portfolio_id': 28200911}, {'photo_id': 1392706418, 'portfolio_id': 28200911}, {'photo_id': 1392705942, 'portfolio_id': 28200911}, {'photo_id': 1392705939, 'portfolio_id': 28200911}, {'photo_id': 1392705936, 'portfolio_id': 28200911}, {'photo_id': 1392705935, 'portfolio_id': 28200911}, {'photo_id': 1392705934, 'portfolio_id': 28200911}, {'photo_id': 1392705933, 'portfolio_id': 28200911}, {'photo_id': 1392705874, 'portfolio_id': 28200911}, {'photo_id': 1392705870, 'portfolio_id': 28200911}, {'photo_id': 1392705865, 'portfolio_id': 28200911}, {'photo_id': 1392705863, 'portfolio_id': 28200911}, {'photo_id': 1392705861, 'portfolio_id': 28200911}, {'photo_id': 1392705859, 'portfolio_id': 28200911}, {'photo_id': 1392705856, 'portfolio_id': 28200911}, {'photo_id': 1392705851, 'portfolio_id': 28200911}, {'photo_id': 1392705848, 'portfolio_id': 28200911}, {'photo_id': 1392705812, 'portfolio_id': 28200911}, {'photo_id': 1392705776, 'portfolio_id': 28200911}, {'photo_id': 1392705745, 'portfolio_id': 28200911}, {'photo_id': 1392705739, 'portfolio_id': 28200911}, {'photo_id': 1392705738, 'portfolio_id': 28200911}, {'photo_id': 1392705736, 'portfolio_id': 28200911}, {'photo_id': 1392705734, 'portfolio_id': 28200911}, {'photo_id': 1392705728, 'portfolio_id': 28200911}, {'photo_id': 1392705709, 'portfolio_id': 28200911}, {'photo_id': 1392705704, 'portfolio_id': 28200911}, {'photo_id': 1392705702, 'portfolio_id': 28200911}, {'photo_id': 1392705699, 'portfolio_id': 28200911}, {'photo_id': 1392705692, 'portfolio_id': 28200911}, {'photo_id': 1392705689, 'portfolio_id': 28200911}, {'photo_id': 1392705419, 'portfolio_id': 28200911}, {'photo_id': 1392705406, 'portfolio_id': 28200911}, {'photo_id': 1392705369, 'portfolio_id': 28200911}, {'photo_id': 1392705319, 'portfolio_id': 28200911}, {'photo_id': 1392705249, 'portfolio_id': 28200911}, {'photo_id': 1392705184, 'portfolio_id': 28200911}, {'photo_id': 1392704945, 'portfolio_id': 28200911}, {'photo_id': 1392704938, 'portfolio_id': 28200911}, {'photo_id': 1392704935, 'portfolio_id': 28200911}, {'photo_id': 1392704562, 'portfolio_id': 28200911}, {'photo_id': 1392704523, 'portfolio_id': 28200911}, {'photo_id': 1392704488, 'portfolio_id': 28200911}, {'photo_id': 1392704454, 'portfolio_id': 28200911}, {'photo_id': 1392704417, 'portfolio_id': 28200911}, {'photo_id': 1392703934, 'portfolio_id': 28200911}, {'photo_id': 1392703887, 'portfolio_id': 28200911}, {'photo_id': 1392703838, 'portfolio_id': 28200911}, {'photo_id': 1392703805, 'portfolio_id': 28200911}, {'photo_id': 1392703745, 'portfolio_id': 28200911}, {'photo_id': 1392703448, 'portfolio_id': 28200911}, {'photo_id': 1392703431, 'portfolio_id': 28200911}, {'photo_id': 1392703395, 'portfolio_id': 28200911}, {'photo_id': 1392703260, 'portfolio_id': 28200911}, {'photo_id': 1392703258, 'portfolio_id': 28200911}, {'photo_id': 1392703256, 'portfolio_id': 28200911}, {'photo_id': 1392703254, 'portfolio_id': 28200911}, {'photo_id': 1392703244, 'portfolio_id': 28200911}, {'photo_id': 1392703241, 'portfolio_id': 28200911}, {'photo_id': 1392703226, 'portfolio_id': 28200911}, {'photo_id': 1392703193, 'portfolio_id': 28200911}, {'photo_id': 1392703159, 'portfolio_id': 28200911}, {'photo_id': 1392703113, 'portfolio_id': 28200911}, {'photo_id': 1392702972, 'portfolio_id': 28200911}, {'photo_id': 1392702239, 'portfolio_id': 28200911}, {'photo_id': 1392702236, 'portfolio_id': 28200911}, {'photo_id': 1392702234, 'portfolio_id': 28200911}, {'photo_id': 1392702232, 'portfolio_id': 28200911}] map_portfolio_id_photo_id: {28200911: [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933, 1392705874, 1392705870, 1392705865, 1392705863, 1392705861, 1392705859, 1392705856, 1392705851, 1392705848, 1392705812, 1392705776, 1392705745, 1392705739, 1392705738, 1392705736, 1392705734, 1392705728, 1392705709, 1392705704, 1392705702, 1392705699, 1392705692, 1392705689, 1392705419, 1392705406, 1392705369, 1392705319, 1392705249, 1392705184, 1392704945, 1392704938, 1392704935, 1392704562, 1392704523, 1392704488, 1392704454, 1392704417, 1392703934, 1392703887, 1392703838, 1392703805, 1392703745, 1392703448, 1392703431, 1392703395, 1392703260, 1392703258, 1392703256, 1392703254, 1392703244, 1392703241, 1392703226, 1392703193, 1392703159, 1392703113, 1392702972, 1392702239, 1392702236, 1392702234, 1392702232]} ##### 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.017280101776123047 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 5 10:14: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28200911) 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 : 28200911 get user id for portfolio 28200911 get sub ptf for main ptf 28200911, type 3726 and hashtags ['Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'flou', 'autre_refus', 'mal_croppe', 'Carton_gris', 'kraft', 'plastique', 'Carton_brun', 'metal', 'papier'] 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`=28200911 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','autre_refus','mal_croppe','Carton_gris','kraft','plastique','Carton_brun','metal','papier')) 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`=28200911 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','autre_refus','mal_croppe','Carton_gris','kraft','plastique','Carton_brun','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28200911, 'sub_port_id': 28200995, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075079, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'metal': {'main_port_id': 28200911, 'sub_port_id': 28200996, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075080, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28200911, 'sub_port_id': 28200997, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075081, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'flou': {'main_port_id': 28200911, 'sub_port_id': 28200998, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075082, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'Carton_gris': {'main_port_id': 28200911, 'sub_port_id': 28200999, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075083, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'papier': {'main_port_id': 28200911, 'sub_port_id': 28201000, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075084, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'environnement': {'main_port_id': 28200911, 'sub_port_id': 28201001, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075085, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'kraft': {'main_port_id': 28200911, 'sub_port_id': 28201002, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075086, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'cartonnette': {'main_port_id': 28200911, 'sub_port_id': 28201003, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075087, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'mal_croppe': {'main_port_id': 28200911, 'sub_port_id': 28201004, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075088, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'Carton_brun': {'main_port_id': 28200911, 'sub_port_id': 28201005, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075089, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}, 'plastique': {'main_port_id': 28200911, 'sub_port_id': 28201006, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075090, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28200995 , 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=28200911 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 (28200995) result : ((1392704193,), (1392705284,), (1392705708,), (1392705731,), (1392705881,), (1392706072,), (1392707068,), (1392707071,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28200996 , 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=28200911 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 (28200996) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28200997 , 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=28200911 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 (28200997) result : ((1392704179,), (1392704181,), (1392705268,), (1392705707,), (1392705729,), (1392705730,), (1392705878,), (1392705879,), (1392706056,), (1392707037,), (1392707040,), (1392707043,), (1392707046,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28200998 , 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=28200911 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 (28200998) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28200999 , 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=28200911 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 (28200999) result : ((1392704205,), (1392704207,), (1392705303,), (1392705306,), (1392705733,), (1392705882,), (1392705883,), (1392707087,), (1392707089,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28201000 , 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=28200911 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 (28201000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28201001 , 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=28200911 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 (28201001) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28201002 , 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=28200911 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 (28201002) result : ((1392705719,), (1392705720,), (1392705721,), (1392706199,), (1392706202,), (1392706206,), (1392707137,), (1392707139,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28201003 , 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=28200911 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 (28201003) result : ((1392704218,), (1392704220,), (1392705711,), (1392705712,), (1392705713,), (1392705714,), (1392705888,), (1392705889,), (1392705890,), (1392706111,), (1392706114,), (1392706117,), (1392706123,), (1392706128,), (1392706131,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28201004 , 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=28200911 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 (28201004) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28201005 , 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=28200911 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 (28201005) result : ((1392704228,), (1392705340,), (1392705342,), (1392705345,), (1392705347,), (1392705716,), (1392705717,), (1392705718,), (1392706159,), (1392706162,), (1392706165,), (1392706168,), (1392707101,), (1392707103,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28201006 , 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=28200911 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 (28201006) result : ((1392704237,), (1392705357,), (1392705892,), (1392707119,), (1392707121,), (1392707123,), (1392707125,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28200911) result : ((1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28200911 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','autre_refus','mal_croppe','Carton_gris','kraft','plastique','Carton_brun','metal','papier')) 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`=28200911 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','cartonnette','flou','autre_refus','mal_croppe','Carton_gris','kraft','plastique','Carton_brun','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28200911, 'sub_port_id': 28201008, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075091, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'metal': {'main_port_id': 28200911, 'sub_port_id': 28201009, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075092, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 28200911, 'sub_port_id': 28201010, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075093, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'flou': {'main_port_id': 28200911, 'sub_port_id': 28201011, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075094, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'Carton_gris': {'main_port_id': 28200911, 'sub_port_id': 28201012, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075095, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'papier': {'main_port_id': 28200911, 'sub_port_id': 28201013, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075096, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'environnement': {'main_port_id': 28200911, 'sub_port_id': 28201014, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075097, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'kraft': {'main_port_id': 28200911, 'sub_port_id': 28201015, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075098, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'cartonnette': {'main_port_id': 28200911, 'sub_port_id': 28201016, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075099, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'mal_croppe': {'main_port_id': 28200911, 'sub_port_id': 28201017, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075100, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'Carton_brun': {'main_port_id': 28200911, 'sub_port_id': 28201019, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075101, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}, 'plastique': {'main_port_id': 28200911, 'sub_port_id': 28201020, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19075102, 'last_updated_at': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 10, 12, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 10, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28200995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28200996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28200997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28200998 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28200999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28201000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28201001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28201002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28201003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28201004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28201005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28201020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28201006 lien utilise dans velours : https://marlene.fotonower.com/velours/28201008,28201009,28201010,28201011,28201012,28201013,28201014,28201015,28201016,28201017,28201019,28201020?tags=autre_refus,metal,Teint_Dans_La_Masse,flou,Carton_gris,papier,environnement,kraft,cartonnette,mal_croppe,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28200911]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] map_info['map_portfolio_photo'] : {28200911: [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933, 1392705874, 1392705870, 1392705865, 1392705863, 1392705861, 1392705859, 1392705856, 1392705851, 1392705848, 1392705812, 1392705776, 1392705745, 1392705739, 1392705738, 1392705736, 1392705734, 1392705728, 1392705709, 1392705704, 1392705702, 1392705699, 1392705692, 1392705689, 1392705419, 1392705406, 1392705369, 1392705319, 1392705249, 1392705184, 1392704945, 1392704938, 1392704935, 1392704562, 1392704523, 1392704488, 1392704454, 1392704417, 1392703934, 1392703887, 1392703838, 1392703805, 1392703745, 1392703448, 1392703431, 1392703395, 1392703260, 1392703258, 1392703256, 1392703254, 1392703244, 1392703241, 1392703226, 1392703193, 1392703159, 1392703113, 1392702972, 1392702239, 1392702236, 1392702234, 1392702232]} final : False mtd_id 4302 list_pids : [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] Looping around the photos to save general results len do output : 1 /28200911. 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, '4002365') ('4302', '28200911', '1392707095', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392707031', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706979', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706923', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706448', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706419', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706418', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705942', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705939', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705936', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705935', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705934', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705933', None, None, None, None, None, '4002365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '28200911', "{'autre_refus': 28200995, 'metal': 28200996, 'Teint_Dans_La_Masse': 28200997, 'flou': 28200998, 'Carton_gris': 28200999, 'papier': 28201000, 'environnement': 28201001, 'kraft': 28201002, 'cartonnette': 28201003, 'mal_croppe': 28201004, 'Carton_brun': 28201005, 'plastique': 28201006}", None, None, None, None, '4002365'), ('4302', '28200911', '1392707095', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392707031', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706979', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706923', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706448', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706419', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706418', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705942', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705939', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705936', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705935', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705934', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705933', None, None, None, None, None, '4002365')] time used for this insertion : 0.013592243194580078 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5736901760101318 time spend to save output : 0.01394963264465332 total time spend for step 1 : 1.5876398086547852 step2:final Wed Nov 5 10:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (28200911) 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 28200911 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392702239,1392702236,1392702234,1392702232,1392703260,1392703258,1392703256,1392703254,1392703244,1392703241,1392703226,1392703193,1392702972,1392703159,1392703113,1392703448,1392703431,1392703395,1392703934,1392703887,1392703838,1392703805,1392703745,1392704562,1392704523,1392704488,1392704454,1392704417,1392705739,1392704945,1392704938,1392705738,1392705736,1392705419,1392704935,1392705406,1392705734,1392705728,1392705369,1392705319,1392705709,1392705704,1392705249,1392705702,1392705184,1392705699,1392705692,1392705689,1392705856,1392705851,1392705848,1392705812,1392705776,1392705745,1392705874,1392705870,1392705865,1392705863,1392705861,1392705859,1392705942,1392705939,1392705936,1392705935,1392705934,1392705933,1392706448,1392706419,1392706418,1392707095,1392707031,1392706979,1392706923); 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([28200911]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} new output for save of step final : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] map_info['map_portfolio_photo'] : {28200911: [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933, 1392705874, 1392705870, 1392705865, 1392705863, 1392705861, 1392705859, 1392705856, 1392705851, 1392705848, 1392705812, 1392705776, 1392705745, 1392705739, 1392705738, 1392705736, 1392705734, 1392705728, 1392705709, 1392705704, 1392705702, 1392705699, 1392705692, 1392705689, 1392705419, 1392705406, 1392705369, 1392705319, 1392705249, 1392705184, 1392704945, 1392704938, 1392704935, 1392704562, 1392704523, 1392704488, 1392704454, 1392704417, 1392703934, 1392703887, 1392703838, 1392703805, 1392703745, 1392703448, 1392703431, 1392703395, 1392703260, 1392703258, 1392703256, 1392703254, 1392703244, 1392703241, 1392703226, 1392703193, 1392703159, 1392703113, 1392702972, 1392702239, 1392702236, 1392702234, 1392702232]} final : False mtd_id 4302 list_pids : [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] Looping around the photos to save general results len do output : 13 /1392707095.Didn't retrieve data . /1392707031.Didn't retrieve data . /1392706979.Didn't retrieve data . /1392706923.Didn't retrieve data . /1392706448.Didn't retrieve data . /1392706419.Didn't retrieve data . /1392706418.Didn't retrieve data . /1392705942.Didn't retrieve data . /1392705939.Didn't retrieve data . /1392705936.Didn't retrieve data . /1392705935.Didn't retrieve data . /1392705934.Didn't retrieve data . /1392705933.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, '4002365') ('4302', '28200911', '1392707095', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392707031', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706979', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706923', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706448', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706419', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706418', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705942', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705939', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705936', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705935', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705934', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705933', None, None, None, None, None, '4002365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '28200911', '1392707095', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392707031', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392706979', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392706923', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392706448', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392706419', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392706418', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392705942', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392705939', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392705936', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392705935', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392705934', '0.07240781709461838', None, None, None, None, '4002365'), ('4302', '28200911', '1392705933', '0.07240781709461838', None, None, None, None, '4002365')] time used for this insertion : 0.013637542724609375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06797003746032715 time spend to save output : 0.01416778564453125 total time spend for step 2 : 0.0821378231048584 step3:velours_tree Wed Nov 5 10:15:01 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 : {28200911: [{'autre_refus': 28200995, 'metal': 28200996, 'Teint_Dans_La_Masse': 28200997, 'flou': 28200998, 'Carton_gris': 28200999, 'papier': 28201000, 'environnement': 28201001, 'kraft': 28201002, 'cartonnette': 28201003, 'mal_croppe': 28201004, 'Carton_brun': 28201005, 'plastique': 28201006}]} input_args_next_step : {28200911: ()} output_args : {28200911: [{'autre_refus': 28200995, 'metal': 28200996, 'Teint_Dans_La_Masse': 28200997, 'flou': 28200998, 'Carton_gris': 28200999, 'papier': 28201000, 'environnement': 28201001, 'kraft': 28201002, 'cartonnette': 28201003, 'mal_croppe': 28201004, 'Carton_brun': 28201005, 'plastique': 28201006}]} args : 28200911 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 : ({'autre_refus': 28200995, 'metal': 28200996, 'Teint_Dans_La_Masse': 28200997, 'flou': 28200998, 'Carton_gris': 28200999, 'papier': 28201000, 'environnement': 28201001, 'kraft': 28201002, 'cartonnette': 28201003, 'mal_croppe': 28201004, 'Carton_brun': 28201005, 'plastique': 28201006},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28200911) 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([28200911]) 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.3395421504974365 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.33959293365478516 step4:send_mail_cod Wed Nov 5 10:15:01 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 : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} input_args_next_step : {1392707095: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392707095 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392707031 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392706979 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392706923 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392706448 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392706419 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392706418 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392705942 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392705939 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392705936 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392705935 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392705934 depend.output_id : 0 input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ()} output_args : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',)} args : 1392705933 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 : {28200911: [{'autre_refus': 28200995, 'metal': 28200996, 'Teint_Dans_La_Masse': 28200997, 'flou': 28200998, 'Carton_gris': 28200999, 'papier': 28201000, 'environnement': 28201001, 'kraft': 28201002, 'cartonnette': 28201003, 'mal_croppe': 28201004, 'Carton_brun': 28201005, 'plastique': 28201006}]} input_args_next_step : {1392707095: ('0.07240781709461838',), 1392707031: ('0.07240781709461838',), 1392706979: ('0.07240781709461838',), 1392706923: ('0.07240781709461838',), 1392706448: ('0.07240781709461838',), 1392706419: ('0.07240781709461838',), 1392706418: ('0.07240781709461838',), 1392705942: ('0.07240781709461838',), 1392705939: ('0.07240781709461838',), 1392705936: ('0.07240781709461838',), 1392705935: ('0.07240781709461838',), 1392705934: ('0.07240781709461838',), 1392705933: ('0.07240781709461838',), 28200911: ()} output_args : {28200911: [{'autre_refus': 28200995, 'metal': 28200996, 'Teint_Dans_La_Masse': 28200997, 'flou': 28200998, 'Carton_gris': 28200999, 'papier': 28201000, 'environnement': 28201001, 'kraft': 28201002, 'cartonnette': 28201003, 'mal_croppe': 28201004, 'Carton_brun': 28201005, 'plastique': 28201006}]} args : 28200911 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 :14, first value : ('0.07240781709461838',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28200911) 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 (1392707095,1392707031,1392706979,1392706923,1392706448,1392706419,1392706418,1392705942,1392705939,1392705936,1392705935,1392705934,1392705933) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392705933 begin to download photo : 1392705936 begin to download photo : 1392706418 begin to download photo : 1392706923 begin to download photo : 1392707095 download finish for photo 1392706418 begin to download photo : 1392706419 download finish for photo 1392705933 begin to download photo : 1392705934 download finish for photo 1392706923 begin to download photo : 1392706979 download finish for photo 1392705936 begin to download photo : 1392705939 download finish for photo 1392707095 download finish for photo 1392706979 begin to download photo : 1392707031 download finish for photo 1392706419 begin to download photo : 1392706448 download finish for photo 1392705939 begin to download photo : 1392705942 download finish for photo 1392705934 begin to download photo : 1392705935 download finish for photo 1392706448 download finish for photo 1392707031 download finish for photo 1392705942 download finish for photo 1392705935 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P28200911_05-11-2025_10_15_01.pdf 28200995 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=28200995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392704193: '1762333506_1436415_1392702232_65f840106ac4a1bd6e855b9cf3c32d71_rle_crop_4021544025_0.png', 1392705284: '1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548831_0.png', 1392705708: '1762333748_1446627_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549642_0.png', 1392705731: '1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549880_0.png', 1392705881: '1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555111_0.png', 1392706072: '1762333886_1452918_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549642_0.png', 1392707068: '1762334006_1460339_1392705728_221c0d8326e129ccefa7e338c401d71e_rle_crop_4021559632_0.png', 1392707071: '1762334006_1460339_1392705369_f4df0135c5bc99d3362ec04464b5859e_rle_crop_4021559711_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6dc5db0853df8fd49a1f6fbfd6f08783_4052138.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/31e18057cc81d2eb9b688d953a4b2cc1_14405513.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8d67844ad95e73585ff83b3e4096324a_38128322.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/56e327372fed188536d70e17e9fc2283_83735362.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/83a3cb98779f5ffecb3a538ffda2af76_26210502.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8d67844ad95e73585ff83b3e4096324a_79366258.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6efff2bac275f407a7decffe0943c4a6_50526351.png change filename to text .imagette282009951762334101/ imagette282009951762334101/1762333886_1452918_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549642_0.png.png imagette282009951762334101/1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548831_0.png.png imagette282009951762334101/1762334006_1460339_1392705369_f4df0135c5bc99d3362ec04464b5859e_rle_crop_4021559711_0.png.png imagette282009951762334101/1762333748_1446627_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549642_0.png.png imagette282009951762334101/1762334006_1460339_1392705728_221c0d8326e129ccefa7e338c401d71e_rle_crop_4021559632_0.png.png imagette282009951762334101/1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549880_0.png.png imagette282009951762334101/1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555111_0.png.png imagette282009951762334101/1762333506_1436415_1392702232_65f840106ac4a1bd6e855b9cf3c32d71_rle_crop_4021544025_0.png.png imagette282009961762334102/ imagette282009981762334102/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6efff2bac275f407a7decffe0943c4a6_73631249.png imagette282009951762334101 28200996 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=28200996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282009961762334102 28200998 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=28200998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282009981762334102 28201002 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=28201002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392705719: '1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549626_0.png', 1392705720: '1762333748_1446627_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549640_0.png', 1392705721: '1762333748_1446627_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549705_0.png', 1392706199: '1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549626_0.png', 1392706202: '1762333886_1452918_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549640_0.png', 1392706206: '1762333886_1452918_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549705_0.png', 1392707137: '1762334006_1460339_1392705709_43f375e5004ddd1123b9fb7575269d73_rle_crop_4021559647_0.png', 1392707139: '1762334006_1460339_1392705319_c58a7de5b91d98d498958fd6102efc60_rle_crop_4021559726_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a5f9edb9fbe87785aba79843ba6388c8_75756260.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4c5437c85c8ee4f8c86a00d59d10e295_95602867.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/cf3f7e8f7bdbee43626ff68f285ce5cf_26999787.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a5f9edb9fbe87785aba79843ba6388c8_27887818.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4c5437c85c8ee4f8c86a00d59d10e295_76503311.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/cf3f7e8f7bdbee43626ff68f285ce5cf_36825864.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/0c5991d3f245f41a09d1216cbb8e3abc_32818249.png change filename to text .imagette282010021762334102/ imagette282010021762334102/1762333748_1446627_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549640_0.png.png imagette282010021762334102/1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549626_0.png.png imagette282010021762334102/1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549626_0.png.png imagette282010021762334102/1762333748_1446627_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549705_0.png.png imagette282010021762334102/1762333886_1452918_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549705_0.png.png imagette282010021762334102/1762334006_1460339_1392705709_43f375e5004ddd1123b9fb7575269d73_rle_crop_4021559647_0.png.png imagette282010021762334102/1762334006_1460339_1392705319_c58a7de5b91d98d498958fd6102efc60_rle_crop_4021559726_0.png.png imagette282010021762334102/1762333886_1452918_1392704488_92e1741e8fbc5c31c1b668f926d21f47_rle_crop_4021549640_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/0c5991d3f245f41a09d1216cbb8e3abc_58272495.png imagette282010021762334102 28201003 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=28201003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392704218: '1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543922_0.png', 1392704220: '1762333506_1436415_1392702234_3f45c6265c743a5a8e6fa671d51e4d51_rle_crop_4021544010_0.png', 1392705711: '1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549630_0.png', 1392705712: '1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549730_0.png', 1392705713: '1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549727_0.png', 1392705714: '1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549725_0.png', 1392705888: '1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555101_0.png', 1392705889: '1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555097_0.png', 1392705890: '1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555109_0.png', 1392706111: '1762333886_1452918_1392704945_884ecbccb7f9cd5929918cb89cdcee11_rle_crop_4021556268_0.png', 1392706114: '1762333886_1452918_1392704945_884ecbccb7f9cd5929918cb89cdcee11_rle_crop_4021556269_0.png', 1392706117: '1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549630_0.png', 1392706123: '1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549730_0.png', 1392706128: '1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549727_0.png', 1392706131: '1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/bfb634daaeddbbf5d694e39c58a3cce4_24025428.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4135ef11268ce13810c00e4e947d17c4_83565462.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1787428a851cbcd8d9c566d1b529aa20_93601735.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4a5dd5cc698f04dda5bf324c9ade592a_35582176.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/0018f981a8e3e1a38acd3319a0b36304_16654181.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e5953198410765d48abc95f3768dd049_8800063.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e29c8512b94df1cb94a1b6216023d657_34026953.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/d148d33a7b5c4d188080bc1ab62f667d_78629282.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f7716c58e1500e4d12d1551a73efb5f1_5883499.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/942bde835336a23397fbef00fffe3b45_63793564.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/dc501c061695a2660b7aa727a9382a0f_2671862.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1787428a851cbcd8d9c566d1b529aa20_17492555.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4a5dd5cc698f04dda5bf324c9ade592a_7609335.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/0018f981a8e3e1a38acd3319a0b36304_47745152.png change filename to text .imagette282010031762334103/ imagette282010031762334103/1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549727_0.png.png imagette282010031762334103/1762333506_1436415_1392702234_3f45c6265c743a5a8e6fa671d51e4d51_rle_crop_4021544010_0.png.png imagette282010031762334103/1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549725_0.png.png imagette282010031762334103/1762333886_1452918_1392704945_884ecbccb7f9cd5929918cb89cdcee11_rle_crop_4021556269_0.png.png imagette282010031762334103/1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555101_0.png.png imagette282010031762334103/1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549730_0.png.png imagette282010031762334103/1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549630_0.png.png imagette282010031762334103/1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555097_0.png.png imagette282010031762334103/1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549725_0.png.png imagette282010031762334103/1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555109_0.png.png imagette282010031762334103/1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549730_0.png.png imagette282010031762334103/1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549727_0.png.png imagette282010031762334103/1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543922_0.png.png imagette282010031762334103/1762333886_1452918_1392704945_884ecbccb7f9cd5929918cb89cdcee11_rle_crop_4021556268_0.png.png imagette282010031762334103/1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549630_0.png.png imagette282010041762334104/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e5953198410765d48abc95f3768dd049_53469108.png imagette282010031762334103 28201004 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=28201004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282010041762334104 28201006 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=28201006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392704237: '1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543921_0.png', 1392705357: '1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548832_0.png', 1392705892: '1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555108_0.png', 1392707119: '1762334006_1460339_1392705728_221c0d8326e129ccefa7e338c401d71e_rle_crop_4021559634_0.png', 1392707121: '1762334006_1460339_1392705709_43f375e5004ddd1123b9fb7575269d73_rle_crop_4021559655_0.png', 1392707123: '1762334006_1460339_1392705369_f4df0135c5bc99d3362ec04464b5859e_rle_crop_4021559713_0.png', 1392707125: '1762334006_1460339_1392705319_c58a7de5b91d98d498958fd6102efc60_rle_crop_4021559734_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1e50bba5789d92091986d8c9cdae8baa_67752938.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/25aa9c5fa3b7ecfb4d81e4bb96b025ee_11147479.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/184f11d1a78a922eacadfe9051f4fe0f_67145518.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a49f351350ab7ab650fa69159fd72c0f_39169041.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/761b7c41317a7c75e2c3f911d783166e_43823119.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a49f351350ab7ab650fa69159fd72c0f_58952087.png change filename to text .imagette282010061762334104/ imagette282010061762334104/1762334006_1460339_1392705369_f4df0135c5bc99d3362ec04464b5859e_rle_crop_4021559713_0.png.png imagette282010061762334104/1762334006_1460339_1392705319_c58a7de5b91d98d498958fd6102efc60_rle_crop_4021559734_0.png.png imagette282010061762334104/1762334006_1460339_1392705709_43f375e5004ddd1123b9fb7575269d73_rle_crop_4021559655_0.png.png imagette282010061762334104/1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543921_0.png.png imagette282010061762334104/1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548832_0.png.png imagette282010061762334104/1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555108_0.png.png imagette282010061762334104/1762334006_1460339_1392705728_221c0d8326e129ccefa7e338c401d71e_rle_crop_4021559634_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/761b7c41317a7c75e2c3f911d783166e_17862271.png imagette282010061762334104 28200997 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=28200997 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392704179: '1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543926_0.png', 1392704181: '1762333506_1436415_1392702232_65f840106ac4a1bd6e855b9cf3c32d71_rle_crop_4021544023_0.png', 1392705268: '1762333645_1442633_1392703244_a2f5c54d61a7137d06a78adb7c0eeb0d_rle_crop_4021548844_0.png', 1392705707: '1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549634_0.png', 1392705729: '1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549876_0.png', 1392705730: '1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549881_0.png', 1392705878: '1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555100_0.png', 1392705879: '1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555113_0.png', 1392706056: '1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549634_0.png', 1392707037: '1762334006_1460339_1392705702_019180da3805488c30ac93a51589eb80_rle_crop_4021559685_0.png', 1392707040: '1762334006_1460339_1392705699_680232b59870ee0159b28822326ad213_rle_crop_4021559704_0.png', 1392707043: '1762334006_1460339_1392705699_680232b59870ee0159b28822326ad213_rle_crop_4021559700_0.png', 1392707046: '1762334006_1460339_1392705184_d84d5277cd6f99fa4977118152d83301_rle_crop_4021559764_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/695438fe2f884f4201e976ca1712eae7_94308565.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a9c83f845b18d63f6c7a7079e451a6b0_9722718.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/10a94f6fe957a99c77d2fd1774b43d07_24884758.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e39233352345fde8f57ec7f328af8846_31267867.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/a282c98c904b317e9354fcc333c95977_68361112.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/84e88465d89104dd895010f7df87f254_25806838.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/84230ea26cb298e2de643158aa65122a_30178298.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8ecef99d3613bd4a2f526e5ff1366ff6_43321136.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e39233352345fde8f57ec7f328af8846_28012518.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e99deeb71074906a3744eaea03add599_91650430.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/547bc8483c20235fee1128474b0a66e5_53902305.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/c36060db5e150773e6d7481e0682a717_73411646.png change filename to text .imagette282009971762334104/ imagette282009971762334104/1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549876_0.png.png imagette282009971762334104/1762333506_1436415_1392702232_65f840106ac4a1bd6e855b9cf3c32d71_rle_crop_4021544023_0.png.png imagette282009971762334104/1762333645_1442633_1392703244_a2f5c54d61a7137d06a78adb7c0eeb0d_rle_crop_4021548844_0.png.png imagette282009971762334104/1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549881_0.png.png imagette282009971762334104/1762334006_1460339_1392705699_680232b59870ee0159b28822326ad213_rle_crop_4021559700_0.png.png imagette282009971762334104/1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555100_0.png.png imagette282009971762334104/1762333866_1452106_1392704935_74a64ebf7ee12d0d22221af93bc58129_rle_crop_4021555113_0.png.png imagette282009971762334104/1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549634_0.png.png imagette282009971762334104/1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549634_0.png.png imagette282009971762334104/1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543926_0.png.png imagette282009971762334104/1762334006_1460339_1392705699_680232b59870ee0159b28822326ad213_rle_crop_4021559704_0.png.png imagette282009971762334104/1762334006_1460339_1392705184_d84d5277cd6f99fa4977118152d83301_rle_crop_4021559764_0.png.png imagette282009971762334104/1762334006_1460339_1392705702_019180da3805488c30ac93a51589eb80_rle_crop_4021559685_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e99deeb71074906a3744eaea03add599_44692060.png imagette282009971762334104 28200999 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=28200999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392704205: '1762333506_1436415_1392702236_47f151bdfe223b87b1717722fc976110_rle_crop_4021543936_0.png', 1392704207: '1762333506_1436415_1392702232_65f840106ac4a1bd6e855b9cf3c32d71_rle_crop_4021544018_0.png', 1392705303: '1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548833_0.png', 1392705306: '1762333645_1442633_1392703241_1eb1ccd09a0870acbd3c885c8f1b57a9_rle_crop_4021548861_0.png', 1392705733: '1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549871_0.png', 1392705882: '1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555093_0.png', 1392705883: '1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555096_0.png', 1392707087: '1762334006_1460339_1392705704_4f50f211adb9238794249085ccc9bcc6_rle_crop_4021559671_0.png', 1392707089: '1762334006_1460339_1392705249_d721d596335b4acd4a6f72c86cc3a34e_rle_crop_4021559750_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/fc733766b8ab87c35cb49cbe5a0b015c_28790946.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e343363451bbc2aa81c4147bb87b551b_52414026.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/82f44592e8e2108863f45ce075deccdb_99533877.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/3213f659ae55b6e4b07058e885a4cb2f_64497123.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/d8a35c84221772a1315cf822a3328c16_76112599.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/6b11a7634a16777ddc6b7a772b8beabb_71061491.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8d69d90f62da364c6221f22a695d415f_81073442.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/30fad45a3fd82ec412a07ddb2d9608aa_34931175.png change filename to text .imagette282009991762334105/ imagette282009991762334105/1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548833_0.png.png imagette282009991762334105/1762333506_1436415_1392702232_65f840106ac4a1bd6e855b9cf3c32d71_rle_crop_4021544018_0.png.png imagette282009991762334105/1762333766_1447102_1392703745_9c7763b181d467d7be98aab0df397d9b_rle_crop_4021549871_0.png.png imagette282009991762334105/1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555096_0.png.png imagette282009991762334105/1762333866_1452106_1392704938_c3b88e1c9ef13e15080472fcfc00cb4f_rle_crop_4021555093_0.png.png imagette282009991762334105/1762333645_1442633_1392703241_1eb1ccd09a0870acbd3c885c8f1b57a9_rle_crop_4021548861_0.png.png imagette282009991762334105/1762334006_1460339_1392705249_d721d596335b4acd4a6f72c86cc3a34e_rle_crop_4021559750_0.png.png imagette282009991762334105/1762333506_1436415_1392702236_47f151bdfe223b87b1717722fc976110_rle_crop_4021543936_0.png.png imagette282009991762334105/1762334006_1460339_1392705704_4f50f211adb9238794249085ccc9bcc6_rle_crop_4021559671_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/30fad45a3fd82ec412a07ddb2d9608aa_52626703.png imagette282009991762334105 28201005 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=28201005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392704228: '1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543923_0.png', 1392705340: '1762333645_1442633_1392703256_313bbfca9be18c3dab1144f778ecc464_rle_crop_4021548821_0.png', 1392705342: '1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548834_0.png', 1392705345: '1762333645_1442633_1392703244_a2f5c54d61a7137d06a78adb7c0eeb0d_rle_crop_4021548842_0.png', 1392705347: '1762333645_1442633_1392703244_a2f5c54d61a7137d06a78adb7c0eeb0d_rle_crop_4021548841_0.png', 1392705716: '1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549629_0.png', 1392705717: '1762333748_1446627_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549710_0.png', 1392705718: '1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549732_0.png', 1392706159: '1762333886_1452918_1392704945_884ecbccb7f9cd5929918cb89cdcee11_rle_crop_4021556273_0.png', 1392706162: '1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549629_0.png', 1392706165: '1762333886_1452918_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549710_0.png', 1392706168: '1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549732_0.png', 1392707101: '1762334006_1460339_1392705702_019180da3805488c30ac93a51589eb80_rle_crop_4021559684_0.png', 1392707103: '1762334006_1460339_1392705184_d84d5277cd6f99fa4977118152d83301_rle_crop_4021559763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/097e12470c08f18c18a0dc73ca08d8a6_15764701.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/402f3eded1500007b31c24431136d4f7_84617671.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/502294a7cde256540698b1a5cab1be23_71254865.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f5757e971e15447b07498edcec1d7af5_35139682.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/96d82e8106a5e479e9ccba291b2ec5cf_27947449.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1a82db837864bc7889740bcb649b20e8_57242768.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/39737ab343efc40c5baa9d6d79ed18d7_28664195.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f2708b58e8c2c8e2e1a0fd752028e1c3_34751198.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/eea9b48d98f387016ff30c1358f1eb37_40030945.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1a82db837864bc7889740bcb649b20e8_6330459.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/39737ab343efc40c5baa9d6d79ed18d7_55110403.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f2708b58e8c2c8e2e1a0fd752028e1c3_93190533.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/79fcfaf7eb012dce4b0d3788222a033d_83866102.png change filename to text .imagette282010051762334106/ imagette282010051762334106/1762333886_1452918_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549732_0.png.png imagette282010051762334106/1762333748_1446627_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549710_0.png.png imagette282010051762334106/1762333748_1446627_1392704417_5b6f16074baf24d15ecf5ce5ada5ceec_rle_crop_4021549732_0.png.png imagette282010051762334106/1762333886_1452918_1392704454_8e09e58b6a28e806f653cad9e069b85b_rle_crop_4021549710_0.png.png imagette282010051762334106/1762333645_1442633_1392703256_313bbfca9be18c3dab1144f778ecc464_rle_crop_4021548821_0.png.png imagette282010051762334106/1762333645_1442633_1392703244_a2f5c54d61a7137d06a78adb7c0eeb0d_rle_crop_4021548842_0.png.png imagette282010051762334106/1762333886_1452918_1392704945_884ecbccb7f9cd5929918cb89cdcee11_rle_crop_4021556273_0.png.png imagette282010051762334106/1762334006_1460339_1392705702_019180da3805488c30ac93a51589eb80_rle_crop_4021559684_0.png.png imagette282010051762334106/1762333506_1436415_1392702239_380bc1a572b815446377cedacd79ffd9_rle_crop_4021543923_0.png.png imagette282010051762334106/1762333645_1442633_1392703244_a2f5c54d61a7137d06a78adb7c0eeb0d_rle_crop_4021548841_0.png.png imagette282010051762334106/1762334006_1460339_1392705184_d84d5277cd6f99fa4977118152d83301_rle_crop_4021559763_0.png.png imagette282010051762334106/1762333886_1452918_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549629_0.png.png imagette282010051762334106/1762333645_1442633_1392703254_b0ec506170d58b01c8305304e1fd06a2_rle_crop_4021548834_0.png.png imagette282010051762334106/1762333748_1446627_1392704523_179fe895b36f25da221eba2b42177cae_rle_crop_4021549629_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/79fcfaf7eb012dce4b0d3788222a033d_49830326.png imagette282010051762334106 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28200911 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28201008,28201009,28201010,28201011,28201012,28201013,28201014,28201015,28201016,28201017,28201019,28201020?tags=autre_refus,metal,Teint_Dans_La_Masse,flou,Carton_gris,papier,environnement,kraft,cartonnette,mal_croppe,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1392707095] : ('0.07240781709461838',) no score found for photo 1392707095 We are sending mail with results at report@fotonower.com args[1392707031] : ('0.07240781709461838',) no score found for photo 1392707031 We are sending mail with results at report@fotonower.com args[1392706979] : ('0.07240781709461838',) no score found for photo 1392706979 We are sending mail with results at report@fotonower.com args[1392706923] : ('0.07240781709461838',) no score found for photo 1392706923 We are sending mail with results at report@fotonower.com args[1392706448] : ('0.07240781709461838',) no score found for photo 1392706448 We are sending mail with results at report@fotonower.com args[1392706419] : ('0.07240781709461838',) no score found for photo 1392706419 We are sending mail with results at report@fotonower.com args[1392706418] : ('0.07240781709461838',) no score found for photo 1392706418 We are sending mail with results at report@fotonower.com args[1392705942] : ('0.07240781709461838',) no score found for photo 1392705942 We are sending mail with results at report@fotonower.com args[1392705939] : ('0.07240781709461838',) no score found for photo 1392705939 We are sending mail with results at report@fotonower.com args[1392705936] : ('0.07240781709461838',) no score found for photo 1392705936 We are sending mail with results at report@fotonower.com args[1392705935] : ('0.07240781709461838',) no score found for photo 1392705935 We are sending mail with results at report@fotonower.com args[1392705934] : ('0.07240781709461838',) no score found for photo 1392705934 We are sending mail with results at report@fotonower.com args[1392705933] : ('0.07240781709461838',) no score found for photo 1392705933 We are sending mail with results at report@fotonower.com refus_total : 0.07240781709461838 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=28200911 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_P28200911_05-11-2025_10_15_01.pdf results_Auto_P28200911_05-11-2025_10_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28200911','results_Auto_P28200911_05-11-2025_10_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_15_01.pdf','pdf','','0.26','0.07240781709461838') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28200911]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] map_info['map_portfolio_photo'] : {28200911: [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933, 1392705874, 1392705870, 1392705865, 1392705863, 1392705861, 1392705859, 1392705856, 1392705851, 1392705848, 1392705812, 1392705776, 1392705745, 1392705739, 1392705738, 1392705736, 1392705734, 1392705728, 1392705709, 1392705704, 1392705702, 1392705699, 1392705692, 1392705689, 1392705419, 1392705406, 1392705369, 1392705319, 1392705249, 1392705184, 1392704945, 1392704938, 1392704935, 1392704562, 1392704523, 1392704488, 1392704454, 1392704417, 1392703934, 1392703887, 1392703838, 1392703805, 1392703745, 1392703448, 1392703431, 1392703395, 1392703260, 1392703258, 1392703256, 1392703254, 1392703244, 1392703241, 1392703226, 1392703193, 1392703159, 1392703113, 1392702972, 1392702239, 1392702236, 1392702234, 1392702232]} final : False mtd_id 4302 list_pids : [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] 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, '4002365') ('4302', '28200911', '1392707095', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392707031', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706979', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706923', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706448', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706419', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706418', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705942', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705939', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705936', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705935', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705934', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705933', None, None, None, None, None, '4002365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '28200911', '1392707095', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392707031', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706979', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706923', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706448', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706419', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706418', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705942', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705939', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705936', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705935', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705934', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705933', None, None, None, None, None, '4002365')] time used for this insertion : 0.014694452285766602 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.150217533111572 time spend to save output : 0.014934539794921875 total time spend for step 4 : 7.165152072906494 step5:split_time_score Wed Nov 5 10:15:08 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 : ['28200911'] 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 : [('28200911',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28200911) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392707095: {'path': 'temp/1762334101_2793993_1392707095_412bc45163804e9e46daf9102e86d170.jpg', 'extension': 'jpg'}, 1392706418: {'path': 'temp/1762334101_2793993_1392706418_4f9a158c00e9d7aece87de421999fc59.jpg', 'extension': 'jpg'}, 1392706419: {'path': 'temp/1762334101_2793993_1392706419_0e532d81e9fa304ff94a7c9e6a28f3b2.jpg', 'extension': 'jpg'}, 1392706448: {'path': 'temp/1762334101_2793993_1392706448_0be12ae72699855b914c43e61f88ae17.jpg', 'extension': 'jpg'}, 1392706923: {'path': 'temp/1762334101_2793993_1392706923_ee56ac205b98066be8045e8023e21c5f.jpg', 'extension': 'jpg'}, 1392706979: {'path': 'temp/1762334101_2793993_1392706979_88541a892e251d2ecdfa29f1e0d561a6.jpg', 'extension': 'jpg'}, 1392707031: {'path': 'temp/1762334101_2793993_1392707031_05999fb3b6a0303fea725ee07bd1ed25.jpg', 'extension': 'jpg'}, 1392705936: {'path': 'temp/1762334101_2793993_1392705936_fd6d1ed64c428975f579035afc63a1b8.jpg', 'extension': 'jpg'}, 1392705939: {'path': 'temp/1762334101_2793993_1392705939_833124c1418b8959159f102fbe163b77.jpg', 'extension': 'jpg'}, 1392705942: {'path': 'temp/1762334101_2793993_1392705942_fa6526a244dc0936e2301313d53aa3f9.jpg', 'extension': 'jpg'}, 1392705933: {'path': 'temp/1762334101_2793993_1392705933_aeed817a7f26edc86a32439c2d04ca5d.jpg', 'extension': 'jpg'}, 1392705934: {'path': 'temp/1762334101_2793993_1392705934_e2b185a2167e4243e8be98583266bbda.jpg', 'extension': 'jpg'}, 1392705935: {'path': 'temp/1762334101_2793993_1392705935_ab634c9bb2c34901e89523cdcc0a7b03.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 = 28200911; (('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 = 28200911 group by h (('10', 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=28200911 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 (28200911) 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 (28200911) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05112025 28200911 Nombre de photos uploadées : 73 / 23040 (0%) 05112025 28200911 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 05112025 28200911 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1392702239, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/380bc1a572b815446377cedacd79ffd9.jpg', 'username': None, 'uploaded_at': 1762333267, 'text': 'image_05112025_10_00_14_10194.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392702236, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/47f151bdfe223b87b1717722fc976110.jpg', 'username': None, 'uploaded_at': 1762333267, 'text': 'image_05112025_10_00_24_10138.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392702234, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/3f45c6265c743a5a8e6fa671d51e4d51.jpg', 'username': None, 'uploaded_at': 1762333267, 'text': 'image_05112025_10_00_34_10138.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392702232, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/65f840106ac4a1bd6e855b9cf3c32d71.jpg', 'username': None, 'uploaded_at': 1762333267, 'text': 'image_05112025_10_00_44_10140.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033903121948242188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28200911, '2025-11-05' ) 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-11-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2512508,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20948290824890137 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= 2512508 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28186038, 'dashboard_result_id': 16830499, '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_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28186394, 'dashboard_result_id': 16830500, '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_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28187294, 'dashboard_result_id': 16830501, '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_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28188183, 'dashboard_result_id': 16830502, '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_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28189317, 'dashboard_result_id': 16830503, '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_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28189664, 'dashboard_result_id': 16830504, '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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28189717, 'dashboard_result_id': 16830505, '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_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28190150, 'dashboard_result_id': 16830506, '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_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28190820, 'dashboard_result_id': 16830507, '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_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28191207, 'dashboard_result_id': 16830508, '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_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28191692, 'dashboard_result_id': 16830509, '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_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28192332, 'dashboard_result_id': 16830510, '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_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28193155, 'dashboard_result_id': 16830511, '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_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28193965, 'dashboard_result_id': 16830512, '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_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28194584, 'dashboard_result_id': 16830513, '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_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28195092, 'dashboard_result_id': 16830514, '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_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28195794, 'dashboard_result_id': 16830515, '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_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28196359, 'dashboard_result_id': 16830516, '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_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28197077, 'dashboard_result_id': 16830517, '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_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28199114, 'dashboard_result_id': 16830518, '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_P28199114_05-11-2025_09_27_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28199127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199129, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28199380, 'dashboard_result_id': 16830519, '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_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28200141, 'dashboard_result_id': 16830520, '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_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2523279, 'mtr_portfolio_id': 28200911, 'dashboard_result_id': 16830521, '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_P28200911_05-11-2025_10_11_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, '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 = 28186038 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': 4000969, 'mtr_portfolio_id': 28186038, 'created_at': datetime.datetime(2025, 11, 5, 6, 14, 30), 'result': '0.10490548635916874', 'result_long': None, 'result_double': None}] Qualite : 0.10490548635916874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186038 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_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}" where mtr_portfolio_id = 28186038 and dashboard_run_id = 2523279 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`=28186038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830499, 0.10490548635916874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, '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 = 28186394 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': 4000970, 'mtr_portfolio_id': 28186394, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 29), 'result': '0.05826149300923193', 'result_long': None, 'result_double': None}] Qualite : 0.05826149300923193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186394 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_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}" where mtr_portfolio_id = 28186394 and dashboard_run_id = 2523279 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`=28186394 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830500, 0.05826149300923193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, '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 = 28187294 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': 4000971, 'mtr_portfolio_id': 28187294, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 59), 'result': '0.0931771878060378', 'result_long': None, 'result_double': None}] Qualite : 0.0931771878060378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28187294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28187294 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_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}" where mtr_portfolio_id = 28187294 and dashboard_run_id = 2523279 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`=28187294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830501, 0.0931771878060378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, '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 = 28188183 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': 4000972, 'mtr_portfolio_id': 28188183, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 11), 'result': '0.05647843102246723', 'result_long': None, 'result_double': None}] Qualite : 0.05647843102246723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28188183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28188183 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_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}" where mtr_portfolio_id = 28188183 and dashboard_run_id = 2523279 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`=28188183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830502, 0.05647843102246723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, '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 = 28189317 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': 4000974, 'mtr_portfolio_id': 28189317, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 28), 'result': '0.05720052889085852', 'result_long': None, 'result_double': None}] Qualite : 0.05720052889085852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189317 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_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}" where mtr_portfolio_id = 28189317 and dashboard_run_id = 2523279 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`=28189317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830503, 0.05720052889085852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, '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 = 28189664 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28189664 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189664_05-11-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189664 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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}" where mtr_portfolio_id = 28189664 and dashboard_run_id = 2523279 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 = 28189717 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': 4001040, 'mtr_portfolio_id': 28189717, 'created_at': datetime.datetime(2025, 11, 5, 6, 3, 29), 'result': '0.054422044536203015', 'result_long': None, 'result_double': None}] Qualite : 0.054422044536203015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189717 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_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}" where mtr_portfolio_id = 28189717 and dashboard_run_id = 2523279 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`=28189717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830505, 0.054422044536203015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, '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 = 28190150 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': 4001101, 'mtr_portfolio_id': 28190150, 'created_at': datetime.datetime(2025, 11, 5, 6, 18, 59), 'result': '0.04157195791823398', 'result_long': None, 'result_double': None}] Qualite : 0.04157195791823398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190150 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_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}" where mtr_portfolio_id = 28190150 and dashboard_run_id = 2523279 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`=28190150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830506, 0.04157195791823398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, '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 = 28190820 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': 4001155, 'mtr_portfolio_id': 28190820, 'created_at': datetime.datetime(2025, 11, 5, 6, 33, 32), 'result': '0.04567810037376079', 'result_long': None, 'result_double': None}] Qualite : 0.04567810037376079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190820 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_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}" where mtr_portfolio_id = 28190820 and dashboard_run_id = 2523279 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`=28190820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830507, 0.04567810037376079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, '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 = 28191207 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': 4001208, 'mtr_portfolio_id': 28191207, 'created_at': datetime.datetime(2025, 11, 5, 6, 46, 58), 'result': '0.042140180101018006', 'result_long': None, 'result_double': None}] Qualite : 0.042140180101018006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191207 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_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}" where mtr_portfolio_id = 28191207 and dashboard_run_id = 2523279 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`=28191207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830508, 0.042140180101018006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, '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 = 28191692 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': 4001271, 'mtr_portfolio_id': 28191692, 'created_at': datetime.datetime(2025, 11, 5, 7, 3, 28), 'result': '0.040699860032621174', 'result_long': None, 'result_double': None}] Qualite : 0.040699860032621174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191692 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_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}" where mtr_portfolio_id = 28191692 and dashboard_run_id = 2523279 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`=28191692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830509, 0.040699860032621174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, '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 = 28192332 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': 4001368, 'mtr_portfolio_id': 28192332, 'created_at': datetime.datetime(2025, 11, 5, 7, 18, 33), 'result': '0.04510552243820985', 'result_long': None, 'result_double': None}] Qualite : 0.04510552243820985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28192332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28192332 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_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}" where mtr_portfolio_id = 28192332 and dashboard_run_id = 2523279 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`=28192332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830510, 0.04510552243820985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, '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 = 28193155 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': 4001469, 'mtr_portfolio_id': 28193155, 'created_at': datetime.datetime(2025, 11, 5, 7, 35, 30), 'result': '0.035344376976183166', 'result_long': None, 'result_double': None}] Qualite : 0.035344376976183166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193155 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_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}" where mtr_portfolio_id = 28193155 and dashboard_run_id = 2523279 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`=28193155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830511, 0.035344376976183166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, '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 = 28193965 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': 4001542, 'mtr_portfolio_id': 28193965, 'created_at': datetime.datetime(2025, 11, 5, 7, 51, 28), 'result': '0.03492442550408627', 'result_long': None, 'result_double': None}] Qualite : 0.03492442550408627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193965 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_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}" where mtr_portfolio_id = 28193965 and dashboard_run_id = 2523279 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`=28193965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830512, 0.03492442550408627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, '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 = 28194584 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': 4001615, 'mtr_portfolio_id': 28194584, 'created_at': datetime.datetime(2025, 11, 5, 8, 4, 31), 'result': '0.06689196525731245', 'result_long': None, 'result_double': None}] Qualite : 0.06689196525731245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28194584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28194584 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_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}" where mtr_portfolio_id = 28194584 and dashboard_run_id = 2523279 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`=28194584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830513, 0.06689196525731245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, '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 = 28195092 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': 4001698, 'mtr_portfolio_id': 28195092, 'created_at': datetime.datetime(2025, 11, 5, 8, 19, 59), 'result': '0.060181082762552726', 'result_long': None, 'result_double': None}] Qualite : 0.060181082762552726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195092 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_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}" where mtr_portfolio_id = 28195092 and dashboard_run_id = 2523279 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`=28195092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830514, 0.060181082762552726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, '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 = 28195794 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': 4001779, 'mtr_portfolio_id': 28195794, 'created_at': datetime.datetime(2025, 11, 5, 8, 32, 57), 'result': '0.06818243271873463', 'result_long': None, 'result_double': None}] Qualite : 0.06818243271873463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195794 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_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}" where mtr_portfolio_id = 28195794 and dashboard_run_id = 2523279 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`=28195794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830515, 0.06818243271873463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, '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 = 28196359 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': 4001848, 'mtr_portfolio_id': 28196359, 'created_at': datetime.datetime(2025, 11, 5, 8, 47), 'result': '0.04766140661514155', 'result_long': None, 'result_double': None}] Qualite : 0.04766140661514155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28196359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28196359 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_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}" where mtr_portfolio_id = 28196359 and dashboard_run_id = 2523279 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`=28196359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830516, 0.04766140661514155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, '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 = 28197077 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': 4001928, 'mtr_portfolio_id': 28197077, 'created_at': datetime.datetime(2025, 11, 5, 9, 33), 'result': '0.04900076404033409', 'result_long': None, 'result_double': None}] Qualite : 0.04900076404033409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28197077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28197077 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_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}" where mtr_portfolio_id = 28197077 and dashboard_run_id = 2523279 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`=28197077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830517, 0.04900076404033409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, '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 = 28199114 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28199114 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28199114 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28199114 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28199114 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28199114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199114_05-11-2025_09_27_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28199114 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_P28199114_05-11-2025_09_27_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199120, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28199127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199129, 'pht': 3726}}" where mtr_portfolio_id = 28199114 and dashboard_run_id = 2523281 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 = 28199380 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': 4002230, 'mtr_portfolio_id': 28199380, 'created_at': datetime.datetime(2025, 11, 5, 9, 46, 58), 'result': '0.06389193113328451', 'result_long': None, 'result_double': None}] Qualite : 0.06389193113328451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28199380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28199380 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_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}" where mtr_portfolio_id = 28199380 and dashboard_run_id = 2523281 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`=28199380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830519, 0.06389193113328451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, '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 = 28200141 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': 4002290, 'mtr_portfolio_id': 28200141, 'created_at': datetime.datetime(2025, 11, 5, 10, 2, 59), 'result': '0.047759217419174355', 'result_long': None, 'result_double': None}] Qualite : 0.047759217419174355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200141 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_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}" where mtr_portfolio_id = 28200141 and dashboard_run_id = 2523281 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`=28200141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830520, 0.047759217419174355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, '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 = 28200911 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': 4002365, 'mtr_portfolio_id': 28200911, 'created_at': datetime.datetime(2025, 11, 5, 10, 15), 'result': '0.07240781709461838', 'result_long': None, 'result_double': None}] Qualite : 0.07240781709461838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200911 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_P28200911_05-11-2025_10_15_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}" where mtr_portfolio_id = 28200911 and dashboard_run_id = 2523281 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`=28200911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16830521, 0.07240781709461838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_15_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, '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 (28186038,28186394,28187294,28188183,28189317,28189664,28189717,28190150,28190820,28191207,28191692,28192332,28193155,28193965,28194584,28195092,28195794,28196359,28197077,28199114,28199380,28200141,28200911) result : ((1392617853,), (1392617859,), (1392617861,), (1392618834,), (1392619427,), (1392619646,), (1392619652,), (1392619664,), (1392619771,), (1392619776,), (1392619794,), (1392622575,), (1392624099,), (1392624159,), (1392624315,), (1392624846,), (1392625280,), (1392625705,), (1392625734,), (1392626088,), (1392626189,), (1392626193,), (1392626304,), (1392633920,), (1392636440,), (1392637712,), (1392637787,), (1392638973,), (1392639353,), (1392639501,), (1392639504,), (1392639569,), (1392639809,), (1392646293,), (1392646343,), (1392646492,), (1392646587,), (1392646612,), (1392646668,), (1392646671,), (1392646674,), (1392646746,), (1392656752,), (1392656757,), (1392656803,), (1392656829,), (1392656831,), (1392656855,), (1392656858,), (1392656860,), (1392656957,), (1392656964,), (1392656970,), (1392656978,), (1392657044,), (1392657051,), (1392657054,), (1392657057,), (1392657073,), (1392657076,), (1392657079,), (1392657114,), (1392657116,), (1392657118,), (1392657121,), (1392657140,), (1392657143,), (1392657144,), (1392657145,), (1392657249,), (1392657251,), (1392657252,), (1392657255,), (1392657258,), (1392657262,), (1392657280,), (1392657284,), (1392657286,), (1392657288,), (1392657339,), (1392657343,), (1392657919,), (1392657614,), (1392657918,), (1392657958,), (1392657959,), (1392657963,), (1392657965,), (1392657967,), (1392657970,), (1392657999,), (1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,), (1392658456,), (1392658458,), (1392658460,), (1392658462,), (1392658466,), (1392658470,), (1392658483,), (1392658485,), (1392658486,), (1392658488,), (1392658624,), (1392658627,), (1392658630,), (1392658632,), (1392658634,), (1392658665,), (1392658671,), (1392659587,), (1392659409,), (1392659453,), (1392659501,), (1392659543,), (1392660113,), (1392660121,), (1392660123,), (1392660125,), (1392660128,), (1392660191,), (1392660226,), (1392660262,), (1392660294,), (1392660681,), (1392660718,), (1392660768,), (1392660799,), (1392660832,), (1392661208,), (1392661210,), (1392661213,), (1392661218,), (1392661224,), (1392661231,), (1392661441,), (1392661458,), (1392661503,), (1392661505,), (1392661656,), (1392661658,), (1392661659,), (1392661660,), (1392661662,), (1392661663,), (1392661701,), (1392661702,), (1392661703,), (1392661705,), (1392661721,), (1392661723,), (1392661725,), (1392661766,), (1392661772,), (1392661779,), (1392661789,), (1392661792,), (1392661795,), (1392661848,), (1392661851,), (1392661854,), (1392661855,), (1392661858,), (1392661922,), (1392661925,), (1392661926,), (1392661929,), (1392661933,), (1392661936,), (1392661949,), (1392661952,), (1392661954,), (1392661958,), (1392661962,), (1392662015,), (1392662002,), (1392662006,), (1392662010,), (1392662033,), (1392662035,), (1392662037,), (1392662139,), (1392662144,), (1392662176,), (1392662178,), (1392662255,), (1392662257,), (1392662258,), (1392662308,), (1392662313,), (1392662392,), (1392662403,), (1392662405,), (1392662408,), (1392662414,), (1392662416,), (1392662433,), (1392662437,), (1392662441,), (1392662445,), (1392662449,), (1392662451,), (1392662456,), (1392662457,), (1392662459,), (1392662468,), (1392662470,), (1392662472,), (1392662475,), (1392662482,), (1392662485,), (1392662510,), (1392662512,), (1392662513,), (1392662514,), (1392662515,), (1392662518,), (1392662537,), (1392662539,), (1392662541,), (1392662615,), (1392662618,), (1392662622,), (1392662627,), (1392662631,), (1392662633,), (1392662646,), (1392662648,), (1392662649,), (1392662650,), (1392662687,), (1392662689,), (1392662692,), (1392662694,), (1392662753,), (1392662756,), (1392662759,), (1392662771,), (1392662774,), (1392662749,), (1392662750,), (1392662751,), (1392662795,), (1392662798,), (1392662800,), (1392662802,), (1392662806,), (1392662878,), (1392662887,), (1392662889,), (1392662892,), (1392662895,), (1392662899,), (1392662908,), (1392662909,), (1392662910,), (1392662916,), (1392662919,), (1392662921,), (1392662943,), (1392662944,), (1392662945,), (1392662947,), (1392662980,), (1392662982,), (1392662984,), (1392662986,), (1392663012,), (1392663014,), (1392663016,), (1392663020,), (1392663032,), (1392663043,), (1392663097,), (1392663104,), (1392663112,), (1392663126,), (1392663131,), (1392663162,), (1392663165,), (1392663180,), (1392663186,), (1392663189,), (1392663222,), (1392663224,), (1392663225,), (1392663227,), (1392663229,), (1392663252,), (1392663254,), (1392663280,), (1392663282,), (1392663284,), (1392663287,), (1392663291,), (1392663360,), (1392663363,), (1392663366,), (1392663390,), (1392663395,), (1392663400,), (1392663444,), (1392663447,), (1392663450,), (1392663507,), (1392663498,), (1392663500,), (1392663502,), (1392663505,), (1392663539,), (1392663543,), (1392663545,), (1392663549,), (1392663618,), (1392663620,), (1392663622,), (1392663650,), (1392663653,), (1392663658,), (1392663664,), (1392663688,), (1392663691,), (1392663719,), (1392663721,), (1392663723,), (1392663725,), (1392663759,), (1392664014,), (1392664017,), (1392664134,), (1392664137,), (1392664228,), (1392664263,), (1392664297,), (1392664603,), (1392664567,), (1392665032,), (1392665063,), (1392665098,), (1392665129,), (1392665168,), (1392665462,), (1392665469,), (1392665475,), (1392665487,), (1392665522,), (1392665553,), (1392665690,), (1392665692,), (1392665714,), (1392665716,), (1392665719,), (1392665723,), (1392665761,), (1392665774,), (1392665776,), (1392665778,), (1392665780,), (1392666020,), (1392666052,), (1392666597,), (1392666636,), (1392666669,), (1392666701,), (1392667065,), (1392667078,), (1392667081,), (1392667084,), (1392667111,), (1392667113,), (1392667124,), (1392667154,), (1392667187,), (1392667234,), (1392667564,), (1392667586,), (1392667605,), (1392667607,), (1392667618,), (1392667655,), (1392667794,), (1392667796,), (1392667805,), (1392667946,), (1392667950,), (1392667954,), (1392667957,), (1392667961,), (1392668003,), (1392668026,), (1392668057,), (1392668067,), (1392668070,), (1392668228,), (1392668245,), (1392668249,), (1392668252,), (1392668287,), (1392668284,), (1392668285,), (1392668286,), (1392668338,), (1392668342,), (1392668345,), (1392668350,), (1392668815,), (1392668951,), (1392669167,), (1392669168,), (1392669245,), (1392669248,), (1392669250,), (1392669253,), (1392669291,), (1392669294,), (1392669331,), (1392669335,), (1392669337,), (1392669347,), (1392669364,), (1392669626,), (1392669660,), (1392669661,), (1392669694,), (1392669704,), (1392669715,), (1392669719,), (1392669723,), (1392669925,), (1392669928,), (1392669930,), (1392669933,), (1392669946,), (1392669952,), (1392669851,), (1392669904,), (1392670012,), (1392670183,), (1392670186,), (1392670277,), (1392670423,), (1392670556,), (1392670560,), (1392670677,), (1392670680,), (1392670796,), (1392670797,), (1392670800,), (1392670831,), (1392670834,), (1392670843,), (1392671004,), (1392671035,), (1392671039,), (1392671041,), (1392671066,), (1392671068,), (1392671070,), (1392671080,), (1392671600,), (1392671602,), (1392671667,), (1392671748,), (1392671751,), (1392671978,), (1392671992,), (1392672165,), (1392672166,), (1392672168,), (1392672170,), (1392672196,), (1392672199,), (1392672202,), (1392672205,), (1392672210,), (1392672214,), (1392672236,), (1392672238,), (1392672241,), (1392672278,), (1392672280,), (1392672284,), (1392672287,), (1392672291,), (1392672334,), (1392672337,), (1392672372,), (1392672406,), (1392672443,), (1392672623,), (1392672681,), (1392672695,), (1392672704,), (1392672741,), (1392672743,), (1392672746,), (1392672777,), (1392672779,), (1392672781,), (1392672784,), (1392672814,), (1392672818,), (1392672822,), (1392673003,), (1392673008,), (1392673012,), (1392673167,), (1392673171,), (1392673302,), (1392673321,), (1392673323,), (1392673326,), (1392673329,), (1392673284,), (1392673292,), (1392673299,), (1392673348,), (1392673351,), (1392673353,), (1392673360,), (1392673367,), (1392673369,), (1392673482,), (1392673496,), (1392673500,), (1392673503,), (1392673538,), (1392673541,), (1392673544,), (1392673547,), (1392673552,), (1392673557,), (1392673581,), (1392673584,), (1392673586,), (1392673588,), (1392673591,), (1392673890,), (1392673922,), (1392673961,), (1392673999,), (1392674422,), (1392674455,), (1392674473,), (1392674478,), (1392674481,), (1392674490,), (1392674857,), (1392674893,), (1392674962,), (1392675034,), (1392675113,), (1392675180,), (1392675506,), (1392675510,), (1392675533,), (1392676427,), (1392676431,), (1392676446,), (1392676458,), (1392676593,), (1392676596,), (1392676605,), (1392676611,), (1392676692,), (1392676697,), (1392676702,), (1392676708,), (1392676762,), (1392676750,), (1392676757,), (1392676759,), (1392676896,), (1392676902,), (1392676909,), (1392676918,), (1392676924,), (1392676927,), (1392676955,), (1392676956,), (1392676957,), (1392676958,), (1392676961,), (1392676964,), (1392677009,), (1392677014,), (1392677036,), (1392677139,), (1392677180,), (1392677222,), (1392677255,), (1392677290,), (1392677420,), (1392677428,), (1392677429,), (1392677433,), (1392677706,), (1392677709,), (1392677712,), (1392677716,), (1392677721,), (1392677726,), (1392677763,), (1392677767,), (1392677770,), (1392677773,), (1392677778,), (1392677784,), (1392677801,), (1392677804,), (1392677806,), (1392678162,), (1392678163,), (1392678164,), (1392678167,), (1392678213,), (1392678219,), (1392678221,), (1392678223,), (1392678227,), (1392678299,), (1392678301,), (1392678302,), (1392678304,), (1392678335,), (1392678336,), (1392678337,), (1392678344,), (1392678488,), (1392678491,), (1392678494,), (1392678496,), (1392678498,), (1392678501,), (1392678555,), (1392678557,), (1392678571,), (1392678573,), (1392678576,), (1392678584,), (1392678588,), (1392678547,), (1392678549,), (1392678550,), (1392678552,), (1392678609,), (1392678624,), (1392678636,), (1392678640,), (1392678642,), (1392678652,), (1392678683,), (1392678685,), (1392678687,), (1392678690,), (1392678729,), (1392678732,), (1392678735,), (1392678736,), (1392678738,), (1392678776,), (1392678779,), (1392678781,), (1392678783,), (1392678786,), (1392678788,), (1392678812,), (1392678824,), (1392678839,), (1392678850,), (1392678858,), (1392678973,), (1392678977,), (1392679001,), (1392679013,), (1392679015,), (1392679106,), (1392679125,), (1392679176,), (1392679213,), (1392679271,), (1392679308,), (1392679527,), (1392679530,), (1392679533,), (1392679611,), (1392679614,), (1392679618,), (1392679621,), (1392679625,), (1392679629,), (1392679727,), (1392679744,), (1392679755,), (1392679769,), (1392679797,), (1392679806,), (1392679811,), (1392679814,), (1392679899,), (1392679903,), (1392679920,), (1392679931,), (1392679954,), (1392680114,), (1392680146,), (1392680202,), (1392680252,), (1392680256,), (1392680363,), (1392680402,), (1392680422,), (1392680559,), (1392680546,), (1392680552,), (1392680556,), (1392680623,), (1392680627,), (1392680628,), (1392680630,), (1392680633,), (1392680817,), (1392680856,), (1392680891,), (1392681042,), (1392681044,), (1392681047,), (1392681049,), (1392681054,), (1392681058,), (1392681174,), (1392681196,), (1392681198,), (1392681201,), (1392681204,), (1392681236,), (1392681237,), (1392681239,), (1392681241,), (1392681247,), (1392681251,), (1392681307,), (1392681328,), (1392681332,), (1392681504,), (1392681543,), (1392681591,), (1392681621,), (1392681655,), (1392681691,), (1392681814,), (1392681828,), (1392681836,), (1392681843,), (1392681861,), (1392682003,), (1392682010,), (1392682012,), (1392682016,), (1392682052,), (1392682056,), (1392682059,), (1392682061,), (1392682065,), (1392682086,), (1392682187,), (1392682190,), (1392682192,), (1392682374,), (1392682408,), (1392682437,), (1392682458,), (1392682491,), (1392682525,), (1392682827,), (1392682884,), (1392682934,), (1392682980,), (1392683014,), (1392683047,), (1392683234,), (1392683337,), (1392683407,), (1392683462,), (1392683962,), (1392683994,), (1392684020,), (1392684055,), (1392693860,), (1392688402,), (1392690457,), (1392694241,), (1392694269,), (1392694419,), (1392694421,), (1392694423,), (1392694433,), (1392694438,), (1392694774,), (1392694795,), (1392694837,), (1392695017,), (1392695043,), (1392695066,), (1392695980,), (1392696059,), (1392696121,), (1392696170,), (1392696205,), (1392696397,), (1392696398,), (1392696399,), (1392696403,), (1392696405,), (1392696408,), (1392696552,), (1392696594,), (1392696645,), (1392696704,), (1392696928,), (1392696934,), (1392696970,), (1392697009,), (1392697066,), (1392697223,), (1392697226,), (1392697229,), (1392697238,), (1392697788,), (1392697790,), (1392697791,), (1392697793,), (1392697796,), (1392697902,), (1392697904,), (1392697933,), (1392697943,), (1392697947,), (1392698005,), (1392698008,), (1392698019,), (1392698075,), (1392698077,), (1392698079,), (1392698081,), (1392698100,), (1392698108,), (1392698126,), (1392698128,), (1392698129,), (1392698137,), (1392698142,), (1392698161,), (1392698386,), (1392698389,), (1392698391,), (1392698807,), (1392698768,), (1392698789,), (1392698932,), (1392698934,), (1392698937,), (1392698998,), (1392699146,), (1392699188,), (1392699680,), (1392699681,), (1392699683,), (1392699911,), (1392699942,), (1392699982,), (1392700015,), (1392700048,), (1392700087,), (1392700719,), (1392700753,), (1392701025,), (1392701087,), (1392701125,), (1392701158,), (1392701387,), (1392701422,), (1392701441,), (1392701872,), (1392701886,), (1392701983,), (1392701986,), (1392701988,), (1392701991,), (1392701994,), (1392701997,), (1392702073,), (1392702078,), (1392702081,), (1392702243,), (1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05112025': {'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([28200911]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] map_info['map_portfolio_photo'] : {28200911: [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933, 1392705874, 1392705870, 1392705865, 1392705863, 1392705861, 1392705859, 1392705856, 1392705851, 1392705848, 1392705812, 1392705776, 1392705745, 1392705739, 1392705738, 1392705736, 1392705734, 1392705728, 1392705709, 1392705704, 1392705702, 1392705699, 1392705692, 1392705689, 1392705419, 1392705406, 1392705369, 1392705319, 1392705249, 1392705184, 1392704945, 1392704938, 1392704935, 1392704562, 1392704523, 1392704488, 1392704454, 1392704417, 1392703934, 1392703887, 1392703838, 1392703805, 1392703745, 1392703448, 1392703431, 1392703395, 1392703260, 1392703258, 1392703256, 1392703254, 1392703244, 1392703241, 1392703226, 1392703193, 1392703159, 1392703113, 1392702972, 1392702239, 1392702236, 1392702234, 1392702232]} final : True mtd_id 4302 list_pids : [1392707095, 1392707031, 1392706979, 1392706923, 1392706448, 1392706419, 1392706418, 1392705942, 1392705939, 1392705936, 1392705935, 1392705934, 1392705933] Looping around the photos to save general results len do output : 1 /28200911Didn'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, '4002365') ('4302', '28200911', '1392707095', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392707031', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706979', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706923', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706448', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706419', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392706418', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705942', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705939', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705936', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705935', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705934', None, None, None, None, None, '4002365') ('4302', None, None, None, None, None, None, None, '4002365') ('4302', '28200911', '1392705933', None, None, None, None, None, '4002365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '28200911', 'None', None, None, None, None, '4002365'), ('4302', '28200911', '1392707095', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392707031', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706979', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706923', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706448', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706419', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392706418', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705942', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705939', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705936', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705935', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705934', None, None, None, None, None, '4002365'), ('4302', '28200911', '1392705933', None, None, None, None, None, '4002365')] time used for this insertion : 0.013543367385864258 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5564825534820557 time spend to save output : 0.013805150985717773 total time spend for step 5 : 1.5702877044677734 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 (4002365) 2.19user 2.11system 0:14.63elapsed 29%CPU (0avgtext+0avgdata 161028maxresident)k 32inputs+16576outputs (0major+77428minor)pagefaults 0swaps