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 : 4065434 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 (2811234) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2811234) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817892 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2811234'] with mtr_portfolio_ids : ['22817892'] and first list_photo_ids : [] new path : /proc/4065434/ Name: python3 Umask: 0002 State: R (running) Tgid: 4065434 Ngid: 0 Pid: 4065434 PPid: 4065433 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4065434 NSpid: 4065434 NSpgid: 4063083 NSsid: 4063083 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98512 kB VmRSS: 98512 kB RssAnon: 60200 kB RssFile: 38312 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4065434', 'Ngid': '0', 'Pid': '4065434', 'PPid': '4065433', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4065434', 'NSpid': '4065434', 'NSpgid': '4063083', 'NSsid': '4063083', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98512 kB', 'VmRSS': '98512 kB', 'RssAnon': '60200 kB', 'RssFile': '38312 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '4065434', '1107228', '0', '1107228', '865976', '98512', b'', 'marlene', '2811234') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22817892) 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 (2811234 ) ) 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 (22817892) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357152225, 'portfolio_id': 22817892}, {'photo_id': 1357152221, 'portfolio_id': 22817892}, {'photo_id': 1357152218, 'portfolio_id': 22817892}, {'photo_id': 1357152181, 'portfolio_id': 22817892}, {'photo_id': 1357152175, 'portfolio_id': 22817892}, {'photo_id': 1357152169, 'portfolio_id': 22817892}, {'photo_id': 1357152165, 'portfolio_id': 22817892}, {'photo_id': 1357152146, 'portfolio_id': 22817892}, {'photo_id': 1357152114, 'portfolio_id': 22817892}, {'photo_id': 1357152007, 'portfolio_id': 22817892}, {'photo_id': 1357151999, 'portfolio_id': 22817892}, {'photo_id': 1357151996, 'portfolio_id': 22817892}, {'photo_id': 1357151993, 'portfolio_id': 22817892}, {'photo_id': 1357151990, 'portfolio_id': 22817892}, {'photo_id': 1357151938, 'portfolio_id': 22817892}, {'photo_id': 1357151935, 'portfolio_id': 22817892}, {'photo_id': 1357151933, 'portfolio_id': 22817892}, {'photo_id': 1357151894, 'portfolio_id': 22817892}, {'photo_id': 1357151891, 'portfolio_id': 22817892}, {'photo_id': 1357151887, 'portfolio_id': 22817892}, {'photo_id': 1357151883, 'portfolio_id': 22817892}, {'photo_id': 1357151880, 'portfolio_id': 22817892}, {'photo_id': 1357151853, 'portfolio_id': 22817892}, {'photo_id': 1357151848, 'portfolio_id': 22817892}, {'photo_id': 1357151845, 'portfolio_id': 22817892}, {'photo_id': 1357151842, 'portfolio_id': 22817892}, {'photo_id': 1357151839, 'portfolio_id': 22817892}, {'photo_id': 1357151814, 'portfolio_id': 22817892}, {'photo_id': 1357151810, 'portfolio_id': 22817892}, {'photo_id': 1357151806, 'portfolio_id': 22817892}, {'photo_id': 1357151804, 'portfolio_id': 22817892}, {'photo_id': 1357151769, 'portfolio_id': 22817892}, {'photo_id': 1357151600, 'portfolio_id': 22817892}, {'photo_id': 1357151596, 'portfolio_id': 22817892}, {'photo_id': 1357151592, 'portfolio_id': 22817892}, {'photo_id': 1357151588, 'portfolio_id': 22817892}, {'photo_id': 1357151583, 'portfolio_id': 22817892}, {'photo_id': 1357151358, 'portfolio_id': 22817892}, {'photo_id': 1357151332, 'portfolio_id': 22817892}, {'photo_id': 1357151300, 'portfolio_id': 22817892}, {'photo_id': 1357151275, 'portfolio_id': 22817892}, {'photo_id': 1357151243, 'portfolio_id': 22817892}, {'photo_id': 1357150867, 'portfolio_id': 22817892}, {'photo_id': 1357150864, 'portfolio_id': 22817892}, {'photo_id': 1357150859, 'portfolio_id': 22817892}, {'photo_id': 1357150768, 'portfolio_id': 22817892}, {'photo_id': 1357150756, 'portfolio_id': 22817892}, {'photo_id': 1357150753, 'portfolio_id': 22817892}, {'photo_id': 1357150750, 'portfolio_id': 22817892}, {'photo_id': 1357150719, 'portfolio_id': 22817892}, {'photo_id': 1357150716, 'portfolio_id': 22817892}, {'photo_id': 1357150712, 'portfolio_id': 22817892}, {'photo_id': 1357150707, 'portfolio_id': 22817892}, {'photo_id': 1357150653, 'portfolio_id': 22817892}, {'photo_id': 1357150651, 'portfolio_id': 22817892}, {'photo_id': 1357150647, 'portfolio_id': 22817892}, {'photo_id': 1357150640, 'portfolio_id': 22817892}] map_portfolio_id_photo_id: {22817892: [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114, 1357152007, 1357151999, 1357151996, 1357151993, 1357151990, 1357151938, 1357151935, 1357151933, 1357151894, 1357151891, 1357151887, 1357151883, 1357151880, 1357151853, 1357151848, 1357151845, 1357151842, 1357151839, 1357151814, 1357151810, 1357151806, 1357151804, 1357151769, 1357151600, 1357151596, 1357151592, 1357151588, 1357151583, 1357151358, 1357151332, 1357151300, 1357151275, 1357151243, 1357150867, 1357150864, 1357150859, 1357150768, 1357150756, 1357150753, 1357150750, 1357150719, 1357150716, 1357150712, 1357150707, 1357150653, 1357150651, 1357150647, 1357150640]} ##### 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.018370389938354492 #### 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 Fri May 9 10:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22817892) 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 : 22817892 get user id for portfolio 22817892 get sub ptf for main ptf 22817892, type 3726 and hashtags ['flou', 'Carton_brun', 'cartonnette', 'papier', 'Carton_gris', 'mal_croppe', 'kraft', 'environnement', 'plastique', 'Teint_Dans_La_Masse', 'autre_refus', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22817892 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','cartonnette','papier','Carton_gris','mal_croppe','kraft','environnement','plastique','Teint_Dans_La_Masse','autre_refus','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22817892 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','cartonnette','papier','Carton_gris','mal_croppe','kraft','environnement','plastique','Teint_Dans_La_Masse','autre_refus','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22817892, 'sub_port_id': 22817896, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221800, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'cartonnette': {'main_port_id': 22817892, 'sub_port_id': 22817897, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221801, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22817892, 'sub_port_id': 22817898, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221802, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'kraft': {'main_port_id': 22817892, 'sub_port_id': 22817899, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221803, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'metal': {'main_port_id': 22817892, 'sub_port_id': 22817900, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221804, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'environnement': {'main_port_id': 22817892, 'sub_port_id': 22817901, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221805, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'papier': {'main_port_id': 22817892, 'sub_port_id': 22817902, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221806, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'autre_refus': {'main_port_id': 22817892, 'sub_port_id': 22817903, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221807, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'plastique': {'main_port_id': 22817892, 'sub_port_id': 22817904, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221808, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'Carton_gris': {'main_port_id': 22817892, 'sub_port_id': 22817905, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221809, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'mal_croppe': {'main_port_id': 22817892, 'sub_port_id': 22817906, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221810, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}, 'Carton_brun': {'main_port_id': 22817892, 'sub_port_id': 22817907, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221811, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817896 , 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=22817892 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 (22817896) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817897 , 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=22817892 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 (22817897) result : ((1357150827,), (1357151825,), (1357151826,), (1357151827,), (1357151901,), (1357151981,), (1357151982,), (1357151983,), (1357152069,), (1357152392,), (1357152393,), (1357152394,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817898 , 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=22817892 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 (22817898) result : ((1357150819,), (1357150820,), (1357150821,), (1357150822,), (1357151100,), (1357151101,), (1357151102,), (1357151103,), (1357151104,), (1357151105,), (1357151821,), (1357151822,), (1357152058,), (1357152059,), (1357152385,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817899 , 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=22817892 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 (22817899) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817900 , 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=22817892 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 (22817900) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817901 , 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=22817892 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 (22817901) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817902 , 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=22817892 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 (22817902) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817903 , 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=22817892 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 (22817903) result : ((1357151979,), (1357152061,), (1357152062,), (1357152201,), (1357152202,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817904 , 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=22817892 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 (22817904) result : ((1357151905,), (1357151906,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817905 , 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=22817892 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 (22817905) result : ((1357150823,), (1357150824,), (1357150825,), (1357151114,), (1357151115,), (1357151823,), (1357151824,), (1357152064,), (1357152065,), (1357152066,), (1357152067,), (1357152068,), (1357152203,), (1357152388,), (1357152425,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817906 , 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=22817892 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 (22817906) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22817907 , 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=22817892 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 (22817907) result : ((1357150828,), (1357150829,), (1357150830,), (1357151122,), (1357151830,), (1357151903,), (1357151904,), (1357152070,), (1357152204,), (1357152205,), (1357152395,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22817892) result : ((1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) 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 (1357151300,1357151600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22817892 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','cartonnette','papier','Carton_gris','mal_croppe','kraft','environnement','plastique','Teint_Dans_La_Masse','autre_refus','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22817892 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','cartonnette','papier','Carton_gris','mal_croppe','kraft','environnement','plastique','Teint_Dans_La_Masse','autre_refus','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22817892, 'sub_port_id': 22817932, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221836, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'cartonnette': {'main_port_id': 22817892, 'sub_port_id': 22817933, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221837, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22817892, 'sub_port_id': 22817934, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221838, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'kraft': {'main_port_id': 22817892, 'sub_port_id': 22817935, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221839, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'metal': {'main_port_id': 22817892, 'sub_port_id': 22817936, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221840, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'environnement': {'main_port_id': 22817892, 'sub_port_id': 22817937, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221841, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'papier': {'main_port_id': 22817892, 'sub_port_id': 22817938, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221842, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'autre_refus': {'main_port_id': 22817892, 'sub_port_id': 22817939, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221843, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'plastique': {'main_port_id': 22817892, 'sub_port_id': 22817940, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221844, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'Carton_gris': {'main_port_id': 22817892, 'sub_port_id': 22817941, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221845, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'mal_croppe': {'main_port_id': 22817892, 'sub_port_id': 22817942, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221846, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}, 'Carton_brun': {'main_port_id': 22817892, 'sub_port_id': 22817943, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15221847, 'last_updated_at': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 10, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 10, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817932,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817896 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817933,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817897 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817898 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817935,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817899 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817936,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817900 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817937,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817901 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817902 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22817943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22817907 lien utilise dans velours : https://www.fotonower.com/velours/22817932,22817933,22817934,22817935,22817936,22817937,22817938,22817939,22817940,22817941,22817942,22817943?tags=flou,cartonnette,Teint_Dans_La_Masse,kraft,metal,environnement,papier,autre_refus,plastique,Carton_gris,mal_croppe,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22817892]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] map_info['map_portfolio_photo'] : {22817892: [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114, 1357152007, 1357151999, 1357151996, 1357151993, 1357151990, 1357151938, 1357151935, 1357151933, 1357151894, 1357151891, 1357151887, 1357151883, 1357151880, 1357151853, 1357151848, 1357151845, 1357151842, 1357151839, 1357151814, 1357151810, 1357151806, 1357151804, 1357151769, 1357151600, 1357151596, 1357151592, 1357151588, 1357151583, 1357151358, 1357151332, 1357151300, 1357151275, 1357151243, 1357150867, 1357150864, 1357150859, 1357150768, 1357150756, 1357150753, 1357150750, 1357150719, 1357150716, 1357150712, 1357150707, 1357150653, 1357150651, 1357150647, 1357150640]} final : False mtd_id 4302 list_pids : [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] Looping around the photos to save general results len do output : 1 /22817892. 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, '2811234') ('4302', '22817892', '1357152225', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152221', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152218', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152181', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152175', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152169', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152165', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152146', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152114', None, None, None, None, None, '2811234') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22817892', "{'flou': 22817896, 'cartonnette': 22817897, 'Teint_Dans_La_Masse': 22817898, 'kraft': 22817899, 'metal': 22817900, 'environnement': 22817901, 'papier': 22817902, 'autre_refus': 22817903, 'plastique': 22817904, 'Carton_gris': 22817905, 'mal_croppe': 22817906, 'Carton_brun': 22817907}", None, None, None, None, '2811234'), ('4302', '22817892', '1357152225', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152221', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152218', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152181', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152175', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152169', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152165', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152146', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152114', None, None, None, None, None, '2811234')] time used for this insertion : 0.0164949893951416 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5207383632659912 time spend to save output : 0.017309904098510742 total time spend for step 1 : 0.538048267364502 step2:final Fri May 9 10:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22817892) 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 22817892 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357150653,1357150651,1357150647,1357150640,1357150719,1357150716,1357150712,1357150707,1357150768,1357150756,1357150753,1357150750,1357150867,1357150864,1357150859,1357151358,1357151332,1357151300,1357151275,1357151243,1357151600,1357151596,1357151592,1357151588,1357151583,1357151814,1357151810,1357151806,1357151804,1357151853,1357151769,1357151848,1357151845,1357151842,1357151839,1357151894,1357151891,1357151887,1357151883,1357151880,1357151938,1357151935,1357151933,1357152007,1357151999,1357151996,1357151993,1357151990,1357152181,1357152175,1357152169,1357152165,1357152146,1357152114,1357152225,1357152221,1357152218); 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([22817892]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} new output for save of step final : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] map_info['map_portfolio_photo'] : {22817892: [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114, 1357152007, 1357151999, 1357151996, 1357151993, 1357151990, 1357151938, 1357151935, 1357151933, 1357151894, 1357151891, 1357151887, 1357151883, 1357151880, 1357151853, 1357151848, 1357151845, 1357151842, 1357151839, 1357151814, 1357151810, 1357151806, 1357151804, 1357151769, 1357151600, 1357151596, 1357151592, 1357151588, 1357151583, 1357151358, 1357151332, 1357151300, 1357151275, 1357151243, 1357150867, 1357150864, 1357150859, 1357150768, 1357150756, 1357150753, 1357150750, 1357150719, 1357150716, 1357150712, 1357150707, 1357150653, 1357150651, 1357150647, 1357150640]} final : False mtd_id 4302 list_pids : [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] Looping around the photos to save general results len do output : 9 /1357152225.Didn't retrieve data . /1357152221.Didn't retrieve data . /1357152218.Didn't retrieve data . /1357152181.Didn't retrieve data . /1357152175.Didn't retrieve data . /1357152169.Didn't retrieve data . /1357152165.Didn't retrieve data . /1357152146.Didn't retrieve data . /1357152114.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, '2811234') ('4302', '22817892', '1357152225', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152221', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152218', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152181', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152175', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152169', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152165', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152146', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152114', None, None, None, None, None, '2811234') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22817892', '1357152225', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152221', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152218', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152181', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152175', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152169', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152165', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152146', '0.05457314063771673', None, None, None, None, '2811234'), ('4302', '22817892', '1357152114', '0.05457314063771673', None, None, None, None, '2811234')] time used for this insertion : 0.014698266983032227 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08255171775817871 time spend to save output : 0.015214681625366211 total time spend for step 2 : 0.09776639938354492 step3:velours_tree Fri May 9 10:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22817892: [{'flou': 22817896, 'cartonnette': 22817897, 'Teint_Dans_La_Masse': 22817898, 'kraft': 22817899, 'metal': 22817900, 'environnement': 22817901, 'papier': 22817902, 'autre_refus': 22817903, 'plastique': 22817904, 'Carton_gris': 22817905, 'mal_croppe': 22817906, 'Carton_brun': 22817907}]} input_args_next_step : {22817892: ()} output_args : {22817892: [{'flou': 22817896, 'cartonnette': 22817897, 'Teint_Dans_La_Masse': 22817898, 'kraft': 22817899, 'metal': 22817900, 'environnement': 22817901, 'papier': 22817902, 'autre_refus': 22817903, 'plastique': 22817904, 'Carton_gris': 22817905, 'mal_croppe': 22817906, 'Carton_brun': 22817907}]} args : 22817892 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 : ({'flou': 22817896, 'cartonnette': 22817897, 'Teint_Dans_La_Masse': 22817898, 'kraft': 22817899, 'metal': 22817900, 'environnement': 22817901, 'papier': 22817902, 'autre_refus': 22817903, 'plastique': 22817904, 'Carton_gris': 22817905, 'mal_croppe': 22817906, 'Carton_brun': 22817907},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22817892) 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([22817892]) 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.2844865322113037 time spend to save output : 6.389617919921875e-05 total time spend for step 3 : 0.28455042839050293 step4:send_mail_cod Fri May 9 10:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} input_args_next_step : {1357152225: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152225 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152221 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152218 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152181 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152175 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152169 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152165 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152146 depend.output_id : 0 input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ()} output_args : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',)} args : 1357152114 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 : {22817892: [{'flou': 22817896, 'cartonnette': 22817897, 'Teint_Dans_La_Masse': 22817898, 'kraft': 22817899, 'metal': 22817900, 'environnement': 22817901, 'papier': 22817902, 'autre_refus': 22817903, 'plastique': 22817904, 'Carton_gris': 22817905, 'mal_croppe': 22817906, 'Carton_brun': 22817907}]} input_args_next_step : {1357152225: ('0.05457314063771673',), 1357152221: ('0.05457314063771673',), 1357152218: ('0.05457314063771673',), 1357152181: ('0.05457314063771673',), 1357152175: ('0.05457314063771673',), 1357152169: ('0.05457314063771673',), 1357152165: ('0.05457314063771673',), 1357152146: ('0.05457314063771673',), 1357152114: ('0.05457314063771673',), 22817892: ()} output_args : {22817892: [{'flou': 22817896, 'cartonnette': 22817897, 'Teint_Dans_La_Masse': 22817898, 'kraft': 22817899, 'metal': 22817900, 'environnement': 22817901, 'papier': 22817902, 'autre_refus': 22817903, 'plastique': 22817904, 'Carton_gris': 22817905, 'mal_croppe': 22817906, 'Carton_brun': 22817907}]} args : 22817892 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 :10, first value : ('0.05457314063771673',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22817892) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1357152225,1357152221,1357152218,1357152181,1357152175,1357152169,1357152165,1357152146,1357152114) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357152114 begin to download photo : 1357152165 begin to download photo : 1357152175 begin to download photo : 1357152218 begin to download photo : 1357152225 download finish for photo 1357152225 download finish for photo 1357152218 begin to download photo : 1357152221 download finish for photo 1357152175 begin to download photo : 1357152181 download finish for photo 1357152114 begin to download photo : 1357152146 download finish for photo 1357152165 begin to download photo : 1357152169 download finish for photo 1357152221 download finish for photo 1357152181 download finish for photo 1357152146 download finish for photo 1357152169 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette228178961746778497/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22817892_09-05-2025_10_14_57.pdf 22817896 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817896 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228178961746778497 22817897 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817897 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357150827: '1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098168_0.png', 1357151825: '1746778031_4092937_1357151300_afa0cf7bb25bf8a9f1793286877be8a1_rle_crop_3791101107_0.png', 1357151826: '1746778031_4092937_1357151243_dd4f86f29a0eb3975065d67f02ba6eb2_rle_crop_3791101132_0.png', 1357151827: '1746778031_4092937_1357151243_dd4f86f29a0eb3975065d67f02ba6eb2_rle_crop_3791101134_0.png', 1357151901: '1746778141_4094112_1357151804_7bc9e0d985c23d16d30708a7088aaee9_rle_crop_3791103273_0.png', 1357151981: '1746778213_4095108_1357151814_bfe1031c04bdc682ed7593b245155f5a_rle_crop_3791103820_0.png', 1357151982: '1746778213_4095108_1357151814_bfe1031c04bdc682ed7593b245155f5a_rle_crop_3791103818_0.png', 1357151983: '1746778213_4095108_1357151814_bfe1031c04bdc682ed7593b245155f5a_rle_crop_3791103816_0.png', 1357152069: '1746778286_3008286_1357151891_226400b8c778b6714c7ff305876cdb20_rle_crop_3791105698_0.png', 1357152392: '1746778392_4097265_1357151999_8b977199de26d33e3e1e459db5eb78f5_rle_crop_3791106208_0.png', 1357152393: '1746778392_4097265_1357151996_a9e2363847ca471275f0dafe31f2fb5d_rle_crop_3791106226_0.png', 1357152394: '1746778392_4097265_1357151990_57281fbf0d70734b5b2e9c452fee81f5_rle_crop_3791106253_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/dcedf6f6ba48e78781c9a272a591361b_11969968.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f820255da92c055cb198834f5e70b3b9_94427033.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/0458efc8854d03cf9db2eea66aed413a_19799441.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/09927257ec235d75dc8a4255249a66dc_26555751.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/21e276a36925b686b1c90db9c24498e3_98644240.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/75ca44bacf06be82cbd4b9bafd4ea00c_79936006.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8fc33da95affcecef6216f0ca1fda125_22226901.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/37f3af059b13a68afee0c251187c16c5_57551997.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d89fbc0f62c402458c92822f9afecaff_74259991.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/981b5c1356d72cb68cb323f235257c0d_40737204.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/486f221926746ade895e3fd50f09006d_8664738.png change filename to text .imagette228178971746778497/ imagette228178971746778497/1746778031_4092937_1357151300_afa0cf7bb25bf8a9f1793286877be8a1_rle_crop_3791101107_0.png.png imagette228178971746778497/1746778031_4092937_1357151243_dd4f86f29a0eb3975065d67f02ba6eb2_rle_crop_3791101134_0.png.png imagette228178971746778497/1746778213_4095108_1357151814_bfe1031c04bdc682ed7593b245155f5a_rle_crop_3791103820_0.png.png imagette228178971746778497/1746778031_4092937_1357151243_dd4f86f29a0eb3975065d67f02ba6eb2_rle_crop_3791101132_0.png.png imagette228178971746778497/1746778141_4094112_1357151804_7bc9e0d985c23d16d30708a7088aaee9_rle_crop_3791103273_0.png.png imagette228178971746778497/1746778286_3008286_1357151891_226400b8c778b6714c7ff305876cdb20_rle_crop_3791105698_0.png.png imagette228178971746778497/1746778392_4097265_1357151990_57281fbf0d70734b5b2e9c452fee81f5_rle_crop_3791106253_0.png.png imagette228178971746778497/1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098168_0.png.png imagette228178971746778497/1746778213_4095108_1357151814_bfe1031c04bdc682ed7593b245155f5a_rle_crop_3791103818_0.png.png imagette228178971746778497/1746778392_4097265_1357151996_a9e2363847ca471275f0dafe31f2fb5d_rle_crop_3791106226_0.png.png imagette228178971746778497/1746778392_4097265_1357151999_8b977199de26d33e3e1e459db5eb78f5_rle_crop_3791106208_0.png.png imagette228178971746778497/1746778213_4095108_1357151814_bfe1031c04bdc682ed7593b245155f5a_rle_crop_3791103816_0.png.png imagette228178991746778498/ imagette228179001746778498/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c0bd5bfce716ba98f92fbc6dd3aa8349_45760830.png imagette228178971746778497 22817899 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817899 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228178991746778498 22817900 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817900 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228179001746778498 22817903 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817903 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357151979: '1746778213_4095108_1357151596_ace57c695348664f0a8f31d7a659a49e_rle_crop_3791103840_0.png', 1357152061: '1746778286_3008286_1357151891_226400b8c778b6714c7ff305876cdb20_rle_crop_3791105691_0.png', 1357152062: '1746778286_3008286_1357151883_3a847dc0b6233cb1a9ebbfdbebf63351_rle_crop_3791105718_0.png', 1357152201: '1746778334_4096555_1357151894_4c64a8153edd2b6ac860626b307e1ccc_rle_crop_3791106037_0.png', 1357152202: '1746778334_4096555_1357151894_4c64a8153edd2b6ac860626b307e1ccc_rle_crop_3791106034_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4b6ebf4d8d8b7bf94420eb2201718166_57501847.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7924fc2308c4eea2177031117eedcc4c_70263940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/50eaf9d0c3ffcb7f701b135d3ad96ce2_83370894.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/18306adbb1aae5360ffdb9969b986e1e_34737641.png change filename to text .imagette228179031746778498/ imagette228179031746778498/1746778286_3008286_1357151891_226400b8c778b6714c7ff305876cdb20_rle_crop_3791105691_0.png.png imagette228179031746778498/1746778213_4095108_1357151596_ace57c695348664f0a8f31d7a659a49e_rle_crop_3791103840_0.png.png imagette228179031746778498/1746778286_3008286_1357151883_3a847dc0b6233cb1a9ebbfdbebf63351_rle_crop_3791105718_0.png.png imagette228179031746778498/1746778334_4096555_1357151894_4c64a8153edd2b6ac860626b307e1ccc_rle_crop_3791106037_0.png.png imagette228179031746778498/1746778334_4096555_1357151894_4c64a8153edd2b6ac860626b307e1ccc_rle_crop_3791106034_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/abd7e878d50c3d1895ef5c844f7f7161_80760113.png imagette228179031746778498 22817904 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357151905: '1746778141_4094112_1357151806_7166c9f89374319be1c36ae19559bbe8_rle_crop_3791103262_0.png', 1357151906: '1746778141_4094112_1357151804_7bc9e0d985c23d16d30708a7088aaee9_rle_crop_3791103283_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5b574028bdf104f87710423c251e6495_31867130.png change filename to text .imagette228179041746778498/ imagette228179041746778498/1746778141_4094112_1357151806_7166c9f89374319be1c36ae19559bbe8_rle_crop_3791103262_0.png.png imagette228179041746778498/1746778141_4094112_1357151804_7bc9e0d985c23d16d30708a7088aaee9_rle_crop_3791103283_0.png.png imagette228179061746778498/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1405a180821d17da32a75cacec85359d_24613680.png imagette228179041746778498 22817906 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228179061746778498 22817898 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817898 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357150819: '1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098175_0.png', 1357150820: '1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098172_0.png', 1357150821: '1746777793_4090013_1357150712_1e3e6d280e7d1240aae28030caac51ed_rle_crop_3791098190_0.png', 1357150822: '1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098198_0.png', 1357151100: '1746777851_4090720_1357150719_37a6cb1d2b78b8331d20bddf57bed678_rle_crop_3791098976_0.png', 1357151101: '1746777851_4090720_1357150653_25295a5369f598272c01da3118164d8b_rle_crop_3791098985_0.png', 1357151102: '1746777851_4090720_1357150651_b4c3149b4b8fc40c037f366095e65d26_rle_crop_3791098999_0.png', 1357151103: '1746777851_4090720_1357150647_c4488281895cc7de439aef7dcbb5981f_rle_crop_3791099011_0.png', 1357151104: '1746777851_4090720_1357150647_c4488281895cc7de439aef7dcbb5981f_rle_crop_3791099018_0.png', 1357151105: '1746777851_4090720_1357150640_d6540b6fa6b4f37f5389d686f13bad55_rle_crop_3791099028_0.png', 1357151821: '1746778031_4092937_1357151332_d61ad10d0912f43947a2868b84d322a1_rle_crop_3791101102_0.png', 1357151822: '1746778031_4092937_1357151275_dd81a6f76fb28d80393fc843a67ab2e6_rle_crop_3791101120_0.png', 1357152058: '1746778286_3008286_1357151887_240d89315b80b0fa0ad696915eaff75b_rle_crop_3791105709_0.png', 1357152059: '1746778286_3008286_1357151883_3a847dc0b6233cb1a9ebbfdbebf63351_rle_crop_3791105724_0.png', 1357152385: '1746778392_4097265_1357151996_a9e2363847ca471275f0dafe31f2fb5d_rle_crop_3791106225_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/599167f9222224715b1932567fb56cf3_12679846.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3db2dde03774072f8891c0aeb731acc1_14764146.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/826f3a33e72c2b0352f002c5f9e86e11_38072654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6e2f8dc9f35f580d96aadeb7256f3baa_85061787.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/47a27151af4d3da9c98fec155bcbaa81_69934572.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/20081d3990fb7c5c36b0cba86da387ab_94091513.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/259cd75991fc5b97dabc6d01a83bb8d3_28153880.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5e7a3a98224460b2babb7b4ec1376ef1_88927535.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b57dca90936a0ba507af567ff21bb874_79537905.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a5dc4f0996346788571c6911874e9e0f_7639031.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/514a14789330d891ded4833188a290a0_61990526.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d8a4572fa196ce5a82253cd5a868a7f5_26179190.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/372b148c71c5586ed77d581629e8cfcd_31208948.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/3430d0912c07a1c6a0b12166a3f77b67_37201565.png change filename to text .imagette228178981746778498/ imagette228178981746778498/1746778392_4097265_1357151996_a9e2363847ca471275f0dafe31f2fb5d_rle_crop_3791106225_0.png.png imagette228178981746778498/1746777851_4090720_1357150647_c4488281895cc7de439aef7dcbb5981f_rle_crop_3791099011_0.png.png imagette228178981746778498/1746777793_4090013_1357150712_1e3e6d280e7d1240aae28030caac51ed_rle_crop_3791098190_0.png.png imagette228178981746778498/1746777851_4090720_1357150653_25295a5369f598272c01da3118164d8b_rle_crop_3791098985_0.png.png imagette228178981746778498/1746777851_4090720_1357150719_37a6cb1d2b78b8331d20bddf57bed678_rle_crop_3791098976_0.png.png imagette228178981746778498/1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098172_0.png.png imagette228178981746778498/1746777851_4090720_1357150647_c4488281895cc7de439aef7dcbb5981f_rle_crop_3791099018_0.png.png imagette228178981746778498/1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098175_0.png.png imagette228178981746778498/1746778031_4092937_1357151275_dd81a6f76fb28d80393fc843a67ab2e6_rle_crop_3791101120_0.png.png imagette228178981746778498/1746778286_3008286_1357151887_240d89315b80b0fa0ad696915eaff75b_rle_crop_3791105709_0.png.png imagette228178981746778498/1746777851_4090720_1357150640_d6540b6fa6b4f37f5389d686f13bad55_rle_crop_3791099028_0.png.png imagette228178981746778498/1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098198_0.png.png imagette228178981746778498/1746777851_4090720_1357150651_b4c3149b4b8fc40c037f366095e65d26_rle_crop_3791098999_0.png.png imagette228178981746778498/1746778286_3008286_1357151883_3a847dc0b6233cb1a9ebbfdbebf63351_rle_crop_3791105724_0.png.png imagette228178981746778498/1746778031_4092937_1357151332_d61ad10d0912f43947a2868b84d322a1_rle_crop_3791101102_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c21424184c96568ef8b04028b7d1d816_56346237.png imagette228178981746778498 22817905 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357150823: '1746777793_4090013_1357150712_1e3e6d280e7d1240aae28030caac51ed_rle_crop_3791098187_0.png', 1357150824: '1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098192_0.png', 1357150825: '1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098193_0.png', 1357151114: '1746777851_4090720_1357150651_b4c3149b4b8fc40c037f366095e65d26_rle_crop_3791098997_0.png', 1357151115: '1746777851_4090720_1357150640_d6540b6fa6b4f37f5389d686f13bad55_rle_crop_3791099025_0.png', 1357151823: '1746778031_4092937_1357151300_afa0cf7bb25bf8a9f1793286877be8a1_rle_crop_3791101111_0.png', 1357151824: '1746778031_4092937_1357151275_dd81a6f76fb28d80393fc843a67ab2e6_rle_crop_3791101116_0.png', 1357152064: '1746778286_3008286_1357151938_e9535105dac572815faa20303c430404_rle_crop_3791105677_0.png', 1357152065: '1746778286_3008286_1357151887_240d89315b80b0fa0ad696915eaff75b_rle_crop_3791105707_0.png', 1357152066: '1746778286_3008286_1357151883_3a847dc0b6233cb1a9ebbfdbebf63351_rle_crop_3791105717_0.png', 1357152067: '1746778286_3008286_1357151880_717b8dbc236e5272c2b669c981e94c79_rle_crop_3791105900_0.png', 1357152068: '1746778286_3008286_1357151880_717b8dbc236e5272c2b669c981e94c79_rle_crop_3791105902_0.png', 1357152203: '1746778334_4096555_1357151848_7df4950860592334fe8085034cecef65_rle_crop_3791106053_0.png', 1357152388: '1746778392_4097265_1357151996_a9e2363847ca471275f0dafe31f2fb5d_rle_crop_3791106227_0.png', 1357152425: '1746778450_4097897_1357152007_b6da97cf1c49a7bbb5813f0200844dd8_rle_crop_3791106323_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/80e63e60c0b198f01de7fdc34e2d1bc3_57586477.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b0a0af1727ab5445c07c041cda7f946f_87788853.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/182638c0cc242c28e2ccf53a0e2a7d90_93634800.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e06346296be84fb66b88a6eb45aee561_94511141.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6c6b747c6b46062cfcfe95ec9ba17b0a_80254674.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f9d9dbee348a6cb3f454e37edb106320_51165190.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a417d051ba98116e9b0ff20e89987cdf_47287132.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/45bf61159d72a447914df45556d9df77_3997334.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1dc98ca1c4a31431859f2dfde617e3c3_48387677.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/9d8be933166bce1b896ef33762fdfb4e_46223550.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a3e31586e63e1b9d1d92077da3b88629_26687580.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1965753a2f17b3fd5c1f38a5adb2e702_82897021.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c2040bf31f657ea27a0d5f8f75c52814_24729461.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d3f3f2316b95c3a4a19757f3abbcf4db_72279686.png change filename to text .imagette228179051746778499/ imagette228179051746778499/1746778286_3008286_1357151887_240d89315b80b0fa0ad696915eaff75b_rle_crop_3791105707_0.png.png imagette228179051746778499/1746778392_4097265_1357151996_a9e2363847ca471275f0dafe31f2fb5d_rle_crop_3791106227_0.png.png imagette228179051746778499/1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098192_0.png.png imagette228179051746778499/1746778334_4096555_1357151848_7df4950860592334fe8085034cecef65_rle_crop_3791106053_0.png.png imagette228179051746778499/1746778286_3008286_1357151938_e9535105dac572815faa20303c430404_rle_crop_3791105677_0.png.png imagette228179051746778499/1746778286_3008286_1357151880_717b8dbc236e5272c2b669c981e94c79_rle_crop_3791105902_0.png.png imagette228179051746778499/1746778031_4092937_1357151300_afa0cf7bb25bf8a9f1793286877be8a1_rle_crop_3791101111_0.png.png imagette228179051746778499/1746778450_4097897_1357152007_b6da97cf1c49a7bbb5813f0200844dd8_rle_crop_3791106323_0.png.png imagette228179051746778499/1746778031_4092937_1357151275_dd81a6f76fb28d80393fc843a67ab2e6_rle_crop_3791101116_0.png.png imagette228179051746778499/1746778286_3008286_1357151883_3a847dc0b6233cb1a9ebbfdbebf63351_rle_crop_3791105717_0.png.png imagette228179051746778499/1746777851_4090720_1357150651_b4c3149b4b8fc40c037f366095e65d26_rle_crop_3791098997_0.png.png imagette228179051746778499/1746777851_4090720_1357150640_d6540b6fa6b4f37f5389d686f13bad55_rle_crop_3791099025_0.png.png imagette228179051746778499/1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098193_0.png.png imagette228179051746778499/1746777793_4090013_1357150712_1e3e6d280e7d1240aae28030caac51ed_rle_crop_3791098187_0.png.png imagette228179051746778499/1746778286_3008286_1357151880_717b8dbc236e5272c2b669c981e94c79_rle_crop_3791105900_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/686cf039d21e82bf7c3c5711ce1425a7_13971315.png imagette228179051746778499 22817907 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357150828: '1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098169_0.png', 1357150829: '1746777793_4090013_1357150712_1e3e6d280e7d1240aae28030caac51ed_rle_crop_3791098186_0.png', 1357150830: '1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098197_0.png', 1357151122: '1746777851_4090720_1357150647_c4488281895cc7de439aef7dcbb5981f_rle_crop_3791099012_0.png', 1357151830: '1746778031_4092937_1357151243_dd4f86f29a0eb3975065d67f02ba6eb2_rle_crop_3791101133_0.png', 1357151903: '1746778141_4094112_1357151810_71b39c60d99c18d8343f078f4b1bba27_rle_crop_3791103252_0.png', 1357151904: '1746778141_4094112_1357151804_7bc9e0d985c23d16d30708a7088aaee9_rle_crop_3791103274_0.png', 1357152070: '1746778286_3008286_1357151938_e9535105dac572815faa20303c430404_rle_crop_3791105680_0.png', 1357152204: '1746778334_4096555_1357151842_7dac140da1f5b2867c4cb82480603734_rle_crop_3791106077_0.png', 1357152205: '1746778334_4096555_1357151839_f4d376cf16d4ddd89217dbbd357826a8_rle_crop_3791106085_0.png', 1357152395: '1746778392_4097265_1357151990_57281fbf0d70734b5b2e9c452fee81f5_rle_crop_3791106258_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5be9b3254521022ae08cd61964e219fe_73788415.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d050c4bea500a5a4294777c289016704_64276614.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c436188e7a67734c7d8d0338f653df3a_87568939.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/113eea6b2c796553e1e32209f3119cc5_63570565.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1b3cb3f8ddea3fe3d1141ca85bea7d01_64448105.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f1c799acb0734caaef05647b8e12dd82_77622310.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/402ca85b03a01b00d2fd85229e21dd72_13042118.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7a039ecdc0a6a04787cac838206f8dfe_96843386.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/0b21ac6efc571795501aa2a39e0ed4d4_7410518.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b9b08c13e0a91ad23307b82cdd3c9713_99277245.png change filename to text .imagette228179071746778500/ imagette228179071746778500/1746777851_4090720_1357150647_c4488281895cc7de439aef7dcbb5981f_rle_crop_3791099012_0.png.png imagette228179071746778500/1746778141_4094112_1357151804_7bc9e0d985c23d16d30708a7088aaee9_rle_crop_3791103274_0.png.png imagette228179071746778500/1746777793_4090013_1357150707_e75c042a961e7a8a14e5548d9b4a5064_rle_crop_3791098197_0.png.png imagette228179071746778500/1746778334_4096555_1357151839_f4d376cf16d4ddd89217dbbd357826a8_rle_crop_3791106085_0.png.png imagette228179071746778500/1746778286_3008286_1357151938_e9535105dac572815faa20303c430404_rle_crop_3791105680_0.png.png imagette228179071746778500/1746778392_4097265_1357151990_57281fbf0d70734b5b2e9c452fee81f5_rle_crop_3791106258_0.png.png imagette228179071746778500/1746778141_4094112_1357151810_71b39c60d99c18d8343f078f4b1bba27_rle_crop_3791103252_0.png.png imagette228179071746778500/1746777793_4090013_1357150716_b4760e03a999aa36f99bb252cb5ab6cc_rle_crop_3791098169_0.png.png imagette228179071746778500/1746777793_4090013_1357150712_1e3e6d280e7d1240aae28030caac51ed_rle_crop_3791098186_0.png.png imagette228179071746778500/1746778031_4092937_1357151243_dd4f86f29a0eb3975065d67f02ba6eb2_rle_crop_3791101133_0.png.png imagette228179071746778500/1746778334_4096555_1357151842_7dac140da1f5b2867c4cb82480603734_rle_crop_3791106077_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/7d515621fc64e50e83d1d188676ce6f9_36582117.png imagette228179071746778500 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22817892 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22817932,22817933,22817934,22817935,22817936,22817937,22817938,22817939,22817940,22817941,22817942,22817943?tags=flou,cartonnette,Teint_Dans_La_Masse,kraft,metal,environnement,papier,autre_refus,plastique,Carton_gris,mal_croppe,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1357152225] : ('0.05457314063771673',) no score found for photo 1357152225 We are sending mail with results at report@fotonower.com args[1357152221] : ('0.05457314063771673',) no score found for photo 1357152221 We are sending mail with results at report@fotonower.com args[1357152218] : ('0.05457314063771673',) no score found for photo 1357152218 We are sending mail with results at report@fotonower.com args[1357152181] : ('0.05457314063771673',) no score found for photo 1357152181 We are sending mail with results at report@fotonower.com args[1357152175] : ('0.05457314063771673',) no score found for photo 1357152175 We are sending mail with results at report@fotonower.com args[1357152169] : ('0.05457314063771673',) no score found for photo 1357152169 We are sending mail with results at report@fotonower.com args[1357152165] : ('0.05457314063771673',) no score found for photo 1357152165 We are sending mail with results at report@fotonower.com args[1357152146] : ('0.05457314063771673',) no score found for photo 1357152146 We are sending mail with results at report@fotonower.com args[1357152114] : ('0.05457314063771673',) no score found for photo 1357152114 We are sending mail with results at report@fotonower.com refus_total : 0.05457314063771673 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817892 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_P22817892_09-05-2025_10_14_57.pdf results_Auto_P22817892_09-05-2025_10_14_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817892_09-05-2025_10_14_57.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','22817892','results_Auto_P22817892_09-05-2025_10_14_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817892_09-05-2025_10_14_57.pdf','pdf','','0.27','0.05457314063771673') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22817892]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] map_info['map_portfolio_photo'] : {22817892: [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114, 1357152007, 1357151999, 1357151996, 1357151993, 1357151990, 1357151938, 1357151935, 1357151933, 1357151894, 1357151891, 1357151887, 1357151883, 1357151880, 1357151853, 1357151848, 1357151845, 1357151842, 1357151839, 1357151814, 1357151810, 1357151806, 1357151804, 1357151769, 1357151600, 1357151596, 1357151592, 1357151588, 1357151583, 1357151358, 1357151332, 1357151300, 1357151275, 1357151243, 1357150867, 1357150864, 1357150859, 1357150768, 1357150756, 1357150753, 1357150750, 1357150719, 1357150716, 1357150712, 1357150707, 1357150653, 1357150651, 1357150647, 1357150640]} final : False mtd_id 4302 list_pids : [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] 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, '2811234') ('4302', '22817892', '1357152225', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152221', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152218', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152181', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152175', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152169', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152165', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152146', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152114', None, None, None, None, None, '2811234') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22817892', '1357152225', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152221', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152218', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152181', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152175', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152169', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152165', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152146', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152114', None, None, None, None, None, '2811234')] time used for this insertion : 0.014709711074829102 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.000869512557983 time spend to save output : 0.014944791793823242 total time spend for step 4 : 5.015814304351807 step5:split_time_score Fri May 9 10:15:02 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 : ['22817892'] 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 : [('22817892',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22817892) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357152225: {'path': 'temp/1746778497_4065434_1357152225_5706bb1c0528f2482fb5b14820d62637.jpg', 'extension': 'jpg'}, 1357152218: {'path': 'temp/1746778497_4065434_1357152218_1462198db16e4da35053788bd67a5eb9.jpg', 'extension': 'jpg'}, 1357152221: {'path': 'temp/1746778497_4065434_1357152221_b7dc821e92293c96afa2d4b93a61914a.jpg', 'extension': 'jpg'}, 1357152175: {'path': 'temp/1746778497_4065434_1357152175_d8b061ed605de15425defd458b6988ea.jpg', 'extension': 'jpg'}, 1357152181: {'path': 'temp/1746778497_4065434_1357152181_129acb0977c55732d2541f06d0621eb0.jpg', 'extension': 'jpg'}, 1357152114: {'path': 'temp/1746778497_4065434_1357152114_4a39c41a3356e7a38f0830b3f468dc9c.jpg', 'extension': 'jpg'}, 1357152146: {'path': 'temp/1746778497_4065434_1357152146_e67bff08ee1658ab2d76499005dba029.jpg', 'extension': 'jpg'}, 1357152165: {'path': 'temp/1746778497_4065434_1357152165_ecc311e4148f6166f8e6ca090f13310f.jpg', 'extension': 'jpg'}, 1357152169: {'path': 'temp/1746778497_4065434_1357152169_ed041c97775b8001ccb084ae4304b14f.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 = 22817892; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22817892 group by h (('10', 57),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22817892 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 (22817892) 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 (22817892) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09052025 22817892 Nombre de photos uploadées : 57 / 23040 (0%) 09052025 22817892 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 09052025 22817892 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1357150653, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/25295a5369f598272c01da3118164d8b.jpg', 'username': None, 'uploaded_at': 1746777667, 'text': 'image_09052025_10_00_14_010196m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357150651, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b4c3149b4b8fc40c037f366095e65d26.jpg', 'username': None, 'uploaded_at': 1746777667, 'text': 'image_09052025_10_00_25_010141m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1357150647, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c4488281895cc7de439aef7dcbb5981f.jpg', 'username': None, 'uploaded_at': 1746777667, 'text': 'image_09052025_10_00_35_010145m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357150640, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d6540b6fa6b4f37f5389d686f13bad55.jpg', 'username': None, 'uploaded_at': 1746777667, 'text': 'image_09052025_10_00_45_010138m0.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.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002683401107788086 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22817892, '2025-05-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1789478,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026626110076904297 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= 1789478 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22808280, 'dashboard_result_id': 10433423, '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_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22808548, 'dashboard_result_id': 10433424, '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_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22808912, 'dashboard_result_id': 10433425, '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_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22809471, 'dashboard_result_id': 10433426, '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_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22809829, 'dashboard_result_id': 10433427, '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_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22810325, 'dashboard_result_id': 10433428, '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_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22810785, 'dashboard_result_id': 10433429, '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_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22811272, 'dashboard_result_id': 10433430, '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_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22811687, 'dashboard_result_id': 10433431, '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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22812382, 'dashboard_result_id': 10433432, '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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22812747, 'dashboard_result_id': 10433433, '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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22813158, 'dashboard_result_id': 10433434, '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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22813765, 'dashboard_result_id': 10433435, '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_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22814401, 'dashboard_result_id': 10433436, '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_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22814870, 'dashboard_result_id': 10433437, '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_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22815465, 'dashboard_result_id': 10433438, '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_P22815465_09-05-2025_09_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22816802, 'dashboard_result_id': 10433439, '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_P22816802_09-05-2025_09_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816814, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22816849, 'dashboard_result_id': 10433440, '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_P22816849_09-05-2025_09_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816888, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22817262, 'dashboard_result_id': 10433441, '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_P22817262_09-05-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22817274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817281, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1798227, 'mtr_portfolio_id': 22817892, 'dashboard_result_id': 10433442, '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_P22817892_09-05-2025_10_12_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22817896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817907, '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 = 22808280 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': 2810138, 'mtr_portfolio_id': 22808280, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 30), 'result': '0.06913327302407037', 'result_long': None, 'result_double': None}] Qualite : 0.06913327302407037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808280 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_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, 'pht': 3726}}" where mtr_portfolio_id = 22808280 and dashboard_run_id = 1798227 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`=22808280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433423, 0.06913327302407037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808280_09-05-2025_05_35_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808364, '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 = 22808548 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': 2810139, 'mtr_portfolio_id': 22808548, 'created_at': datetime.datetime(2025, 5, 9, 5, 35, 58), 'result': '0.03951571250957044', 'result_long': None, 'result_double': None}] Qualite : 0.03951571250957044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808548 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_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, 'pht': 3726}}" where mtr_portfolio_id = 22808548 and dashboard_run_id = 1798227 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`=22808548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433424, 0.03951571250957044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808548_09-05-2025_05_35_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808552, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808560, '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 = 22808912 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': 2810132, 'mtr_portfolio_id': 22808912, 'created_at': datetime.datetime(2025, 5, 9, 5, 50, 57), 'result': '0.03307885640778427', 'result_long': None, 'result_double': None}] Qualite : 0.03307885640778427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22808912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22808912 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_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, 'pht': 3726}}" where mtr_portfolio_id = 22808912 and dashboard_run_id = 1798227 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`=22808912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433425, 0.03307885640778427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22808912_09-05-2025_05_50_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22808937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22808938, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22808939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22808940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22808941, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22808942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22808943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22808944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22808945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22808946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22808947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22808948, '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 = 22809471 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': 2810189, 'mtr_portfolio_id': 22809471, 'created_at': datetime.datetime(2025, 5, 9, 6, 2, 59), 'result': '0.04790586201526422', 'result_long': None, 'result_double': None}] Qualite : 0.04790586201526422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809471 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_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, 'pht': 3726}}" where mtr_portfolio_id = 22809471 and dashboard_run_id = 1798227 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`=22809471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433426, 0.04790586201526422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809471_09-05-2025_06_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809509, '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 = 22809829 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': 2810234, 'mtr_portfolio_id': 22809829, 'created_at': datetime.datetime(2025, 5, 9, 6, 18, 59), 'result': '0.056862605077740415', 'result_long': None, 'result_double': None}] Qualite : 0.056862605077740415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22809829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22809829 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_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, 'pht': 3726}}" where mtr_portfolio_id = 22809829 and dashboard_run_id = 1798227 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`=22809829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433427, 0.056862605077740415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22809829_09-05-2025_06_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22809859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22809860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22809861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22809862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22809863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22809864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22809865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22809866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22809867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22809868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22809869, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22809870, '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 = 22810325 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': 2810278, 'mtr_portfolio_id': 22810325, 'created_at': datetime.datetime(2025, 5, 9, 6, 32, 57), 'result': '0.05784554719434019', 'result_long': None, 'result_double': None}] Qualite : 0.05784554719434019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810325 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_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, 'pht': 3726}}" where mtr_portfolio_id = 22810325 and dashboard_run_id = 1798227 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`=22810325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433428, 0.05784554719434019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810325_09-05-2025_06_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810343, '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 = 22810785 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': 2810321, 'mtr_portfolio_id': 22810785, 'created_at': datetime.datetime(2025, 5, 9, 6, 48, 59), 'result': '0.04238890891936698', 'result_long': None, 'result_double': None}] Qualite : 0.04238890891936698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22810785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22810785 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_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, 'pht': 3726}}" where mtr_portfolio_id = 22810785 and dashboard_run_id = 1798227 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`=22810785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433429, 0.04238890891936698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22810785_09-05-2025_06_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22810813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22810814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22810815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22810816, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22810817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22810818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22810819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22810820, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22810821, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22810822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22810823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22810824, '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 = 22811272 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': 2810366, 'mtr_portfolio_id': 22811272, 'created_at': datetime.datetime(2025, 5, 9, 7, 2, 58), 'result': '0.03954195196305571', 'result_long': None, 'result_double': None}] Qualite : 0.03954195196305571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811272 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_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, 'pht': 3726}}" where mtr_portfolio_id = 22811272 and dashboard_run_id = 1798227 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`=22811272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433430, 0.03954195196305571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811272_09-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811275, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22811276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811284, '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 = 22811687 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': 2810419, 'mtr_portfolio_id': 22811687, 'created_at': datetime.datetime(2025, 5, 9, 7, 21, 1), 'result': '0.040710775610379564', 'result_long': None, 'result_double': None}] Qualite : 0.040710775610379564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811687 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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}" where mtr_portfolio_id = 22811687 and dashboard_run_id = 1798227 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`=22811687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433431, 0.040710775610379564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, '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 = 22812382 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': 2810497, 'mtr_portfolio_id': 22812382, 'created_at': datetime.datetime(2025, 5, 9, 7, 33), 'result': '0.03290544309501728', 'result_long': None, 'result_double': None}] Qualite : 0.03290544309501728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812382 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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}" where mtr_portfolio_id = 22812382 and dashboard_run_id = 1798227 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`=22812382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433432, 0.03290544309501728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, '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 = 22812747 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': 2810539, 'mtr_portfolio_id': 22812747, 'created_at': datetime.datetime(2025, 5, 9, 7, 46, 59), 'result': '0.04560334557780507', 'result_long': None, 'result_double': None}] Qualite : 0.04560334557780507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812747 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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}" where mtr_portfolio_id = 22812747 and dashboard_run_id = 1798227 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`=22812747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433433, 0.04560334557780507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, '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 = 22813158 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': 2810590, 'mtr_portfolio_id': 22813158, 'created_at': datetime.datetime(2025, 5, 9, 8, 2, 58), 'result': '0.06227089715816248', 'result_long': None, 'result_double': None}] Qualite : 0.06227089715816248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813158 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_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}" where mtr_portfolio_id = 22813158 and dashboard_run_id = 1798227 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`=22813158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433434, 0.06227089715816248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, '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 = 22813765 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': 2810664, 'mtr_portfolio_id': 22813765, 'created_at': datetime.datetime(2025, 5, 9, 8, 16, 59), 'result': '0.06385383787588404', 'result_long': None, 'result_double': None}] Qualite : 0.06385383787588404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813765 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_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, 'pht': 3726}}" where mtr_portfolio_id = 22813765 and dashboard_run_id = 1798227 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`=22813765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433435, 0.06385383787588404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813765_09-05-2025_08_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22813772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22813775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813779, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813783, '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 = 22814401 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': 2810727, 'mtr_portfolio_id': 22814401, 'created_at': datetime.datetime(2025, 5, 9, 8, 33, 1), 'result': '0.05223752094263289', 'result_long': None, 'result_double': None}] Qualite : 0.05223752094263289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814401 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814401 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_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, 'pht': 3726}}" where mtr_portfolio_id = 22814401 and dashboard_run_id = 1798227 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`=22814401 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433436, 0.05223752094263289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814401_09-05-2025_08_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22814429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814438, '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 = 22814870 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': 2810791, 'mtr_portfolio_id': 22814870, 'created_at': datetime.datetime(2025, 5, 9, 8, 49), 'result': '0.029737422408573598', 'result_long': None, 'result_double': None}] Qualite : 0.029737422408573598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22814870 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22814870 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_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, 'pht': 3726}}" where mtr_portfolio_id = 22814870 and dashboard_run_id = 1798227 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`=22814870 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433437, 0.029737422408573598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22814870_09-05-2025_08_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22814878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22814879, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22814880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22814881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22814882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22814883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22814884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22814885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22814886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22814887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22814888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22814889, '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 = 22815465 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': 2810899, 'mtr_portfolio_id': 22815465, 'created_at': datetime.datetime(2025, 5, 9, 9, 33, 31), 'result': '0.03761594021463628', 'result_long': None, 'result_double': None}] Qualite : 0.03761594021463628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22815465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22815465 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_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, 'pht': 3726}}" where mtr_portfolio_id = 22815465 and dashboard_run_id = 1798227 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`=22815465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433438, 0.03761594021463628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22815465_09-05-2025_09_33_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22815547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22815548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22815549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22815550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22815551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22815552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22815553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22815554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22815555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22815556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22815557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22815558, '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 = 22816802 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 = 22816802 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 = 22816802 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22816802 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 = 22816802 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 = 22816802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22816802_09-05-2025_09_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22816802 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_P22816802_09-05-2025_09_30_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816809, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816814, 'pht': 3726}}" where mtr_portfolio_id = 22816802 and dashboard_run_id = 1798228 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 = 22816849 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': 2811083, 'mtr_portfolio_id': 22816849, 'created_at': datetime.datetime(2025, 5, 9, 9, 47, 29), 'result': '0.03837428329008687', 'result_long': None, 'result_double': None}] Qualite : 0.03837428329008687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22816849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22816849_09-05-2025_09_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22816849 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_P22816849_09-05-2025_09_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816888, 'pht': 3726}}" where mtr_portfolio_id = 22816849 and dashboard_run_id = 1798228 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`=22816849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433440, 0.03837428329008687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22816849_09-05-2025_09_47_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22816877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22816878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22816879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22816880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22816881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22816882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22816883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22816884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22816885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22816886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22816887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22816888, '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 = 22817262 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': 2811143, 'mtr_portfolio_id': 22817262, 'created_at': datetime.datetime(2025, 5, 9, 10, 2, 58), 'result': '0.04272842626279695', 'result_long': None, 'result_double': None}] Qualite : 0.04272842626279695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22817262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817262_09-05-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22817262 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_P22817262_09-05-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22817274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817281, 'pht': 3726}}" where mtr_portfolio_id = 22817262 and dashboard_run_id = 1798228 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`=22817262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433441, 0.04272842626279695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817262_09-05-2025_10_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817269, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22817274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817281, '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 = 22817892 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': 2811234, 'mtr_portfolio_id': 22817892, 'created_at': datetime.datetime(2025, 5, 9, 10, 14, 56), 'result': '0.05457314063771673', 'result_long': None, 'result_double': None}] Qualite : 0.05457314063771673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22817892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817892_09-05-2025_10_14_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22817892 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_P22817892_09-05-2025_10_14_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22817896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817907, 'pht': 3726}}" where mtr_portfolio_id = 22817892 and dashboard_run_id = 1798228 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`=22817892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10433442, 0.05457314063771673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22817892_09-05-2025_10_14_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22817896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22817897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22817898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22817899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22817900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22817901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22817902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22817903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22817904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22817905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22817906, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22817907, '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 (22808280,22808548,22808912,22809471,22809829,22810325,22810785,22811272,22811687,22812382,22812747,22813158,22813765,22814401,22814870,22815465,22816802,22816849,22817262,22817892) result : ((1357120566,), (1357120592,), (1357120613,), (1357120618,), (1357120620,), (1357120623,), (1357120642,), (1357120645,), (1357120716,), (1357120718,), (1357120992,), (1357121397,), (1357121425,), (1357121503,), (1357121506,), (1357121513,), (1357121547,), (1357121574,), (1357121576,), (1357121648,), (1357121645,), (1357121646,), (1357121647,), (1357121670,), (1357121672,), (1357121673,), (1357121698,), (1357121699,), (1357121700,), (1357121701,), (1357121725,), (1357121726,), (1357121728,), (1357121730,), (1357121731,), (1357121759,), (1357121762,), (1357121764,), (1357121767,), (1357121772,), (1357121812,), (1357121815,), (1357121817,), (1357121821,), (1357121823,), (1357121842,), (1357121843,), (1357121845,), (1357121847,), (1357121874,), (1357121877,), (1357122056,), (1357122058,), (1357122059,), (1357122060,), (1357122062,), (1357122086,), (1357122089,), (1357122091,), (1357122093,), (1357122096,), (1357122113,), (1357122114,), (1357122116,), (1357122118,), (1357122141,), (1357122143,), (1357122145,), (1357122147,), (1357122150,), (1357122176,), (1357122179,), (1357122181,), (1357122182,), (1357122184,), (1357122214,), (1357122216,), (1357122219,), (1357122256,), (1357122250,), (1357122252,), (1357122254,), (1357122281,), (1357122283,), (1357122285,), (1357122288,), (1357122290,), (1357122315,), (1357122316,), (1357122317,), (1357122318,), (1357122353,), (1357122355,), (1357122357,), (1357122387,), (1357122389,), (1357122391,), (1357122393,), (1357122394,), (1357122429,), (1357122431,), (1357122433,), (1357122435,), (1357122463,), (1357122465,), (1357122468,), (1357122470,), (1357122496,), (1357122498,), (1357122500,), (1357122502,), (1357122525,), (1357122527,), (1357122529,), (1357122532,), (1357122534,), (1357122555,), (1357122595,), (1357122600,), (1357122603,), (1357122607,), (1357122611,), (1357122642,), (1357122645,), (1357122648,), (1357122651,), (1357122685,), (1357122687,), (1357122689,), (1357122691,), (1357122694,), (1357122727,), (1357122728,), (1357122729,), (1357122730,), (1357122732,), (1357122733,), (1357122765,), (1357122766,), (1357122767,), (1357122814,), (1357122801,), (1357122804,), (1357122806,), (1357122809,), (1357122811,), (1357122839,), (1357122841,), (1357122844,), (1357122846,), (1357122849,), (1357122876,), (1357122878,), (1357122880,), (1357122882,), (1357122883,), (1357122912,), (1357122914,), (1357122917,), (1357122919,), (1357122923,), (1357122926,), (1357122952,), (1357122955,), (1357122957,), (1357122959,), (1357122995,), (1357122998,), (1357123001,), (1357123004,), (1357123007,), (1357123011,), (1357123050,), (1357123053,), (1357123055,), (1357123058,), (1357123061,), (1357123082,), (1357123084,), (1357123085,), (1357123114,), (1357123116,), (1357123118,), (1357123120,), (1357123123,), (1357123124,), (1357123149,), (1357123152,), (1357123154,), (1357123156,), (1357123158,), (1357123249,), (1357123252,), (1357123255,), (1357123290,), (1357123292,), (1357123295,), (1357123312,), (1357123343,), (1357123519,), (1357123530,), (1357123549,), (1357123561,), (1357123564,), (1357123615,), (1357123618,), (1357123623,), (1357123627,), (1357123671,), (1357123668,), (1357123704,), (1357123707,), (1357123709,), (1357123711,), (1357123713,), (1357123753,), (1357123755,), (1357123758,), (1357123760,), (1357123762,), (1357123793,), (1357123795,), (1357123797,), (1357123799,), (1357123801,), (1357123826,), (1357123828,), (1357123874,), (1357123876,), (1357123878,), (1357123880,), (1357123883,), (1357123884,), (1357123913,), (1357123915,), (1357123963,), (1357123965,), (1357123967,), (1357123970,), (1357123971,), (1357124002,), (1357124018,), (1357124035,), (1357124064,), (1357124067,), (1357124069,), (1357124073,), (1357124076,), (1357124077,), (1357124101,), (1357124103,), (1357124105,), (1357124107,), (1357124110,), (1357124128,), (1357124131,), (1357124133,), (1357124136,), (1357124138,), (1357124175,), (1357124178,), (1357124180,), (1357124211,), (1357124213,), (1357124217,), (1357124219,), (1357124221,), (1357124269,), (1357124258,), (1357124261,), (1357124263,), (1357124265,), (1357124267,), (1357124298,), (1357124299,), (1357124300,), (1357124342,), (1357124344,), (1357124346,), (1357124349,), (1357124380,), (1357124382,), (1357124384,), (1357124386,), (1357124423,), (1357124425,), (1357124427,), (1357124429,), (1357124473,), (1357124476,), (1357124479,), (1357124480,), (1357124482,), (1357124483,), (1357124526,), (1357124527,), (1357124530,), (1357124533,), (1357124538,), (1357124541,), (1357124572,), (1357124576,), (1357124578,), (1357124580,), (1357124581,), (1357124624,), (1357124649,), (1357124650,), (1357124651,), (1357124652,), (1357124695,), (1357124696,), (1357124697,), (1357124698,), (1357124723,), (1357124724,), (1357124725,), (1357124758,), (1357124760,), (1357124762,), (1357124800,), (1357124802,), (1357124804,), (1357124806,), (1357124809,), (1357124811,), (1357124840,), (1357124842,), (1357124844,), (1357124846,), (1357124851,), (1357124854,), (1357124898,), (1357124888,), (1357124891,), (1357124893,), (1357124926,), (1357124928,), (1357124930,), (1357124932,), (1357124934,), (1357124939,), (1357124968,), (1357124971,), (1357124974,), (1357124977,), (1357124981,), (1357124985,), (1357125023,), (1357125026,), (1357125028,), (1357125030,), (1357125032,), (1357125064,), (1357125066,), (1357125069,), (1357125072,), (1357125075,), (1357125076,), (1357125122,), (1357125127,), (1357125129,), (1357125132,), (1357125135,), (1357125170,), (1357125172,), (1357125174,), (1357125209,), (1357125212,), (1357125214,), (1357125216,), (1357125218,), (1357125222,), (1357125261,), (1357125263,), (1357125266,), (1357125269,), (1357125271,), (1357125276,), (1357125300,), (1357125304,), (1357125308,), (1357125347,), (1357125350,), (1357125353,), (1357125356,), (1357125359,), (1357125402,), (1357125404,), (1357125405,), (1357125406,), (1357125442,), (1357125444,), (1357125446,), (1357125495,), (1357125497,), (1357125498,), (1357125499,), (1357125502,), (1357125533,), (1357125535,), (1357125537,), (1357125539,), (1357125582,), (1357125576,), (1357125578,), (1357125580,), (1357125611,), (1357125613,), (1357125615,), (1357125616,), (1357125643,), (1357125645,), (1357125646,), (1357125647,), (1357125688,), (1357125690,), (1357125691,), (1357125692,), (1357125693,), (1357125696,), (1357125731,), (1357125847,), (1357125901,), (1357125904,), (1357125907,), (1357125935,), (1357125937,), (1357125939,), (1357125941,), (1357125943,), (1357125947,), (1357125972,), (1357125999,), (1357126035,), (1357126086,), (1357126145,), (1357126423,), (1357126438,), (1357126441,), (1357126443,), (1357126526,), (1357126534,), (1357126539,), (1357126545,), (1357126552,), (1357126557,), (1357126563,), (1357126564,), (1357126574,), (1357126580,), (1357126584,), (1357126611,), (1357126596,), (1357126601,), (1357126605,), (1357126607,), (1357126635,), (1357126644,), (1357126649,), (1357126687,), (1357126691,), (1357126694,), (1357126697,), (1357126743,), (1357126748,), (1357126753,), (1357126758,), (1357126762,), (1357126766,), (1357126808,), (1357126810,), (1357126812,), (1357126815,), (1357126819,), (1357126824,), (1357126858,), (1357126862,), (1357126867,), (1357126872,), (1357126913,), (1357126917,), (1357126921,), (1357126923,), (1357126927,), (1357126974,), (1357126979,), (1357126985,), (1357127012,), (1357127042,), (1357127164,), (1357127168,), (1357127173,), (1357127176,), (1357127179,), (1357127228,), (1357127232,), (1357127235,), (1357127239,), (1357127245,), (1357127251,), (1357127347,), (1357127352,), (1357127359,), (1357127474,), (1357127478,), (1357127483,), (1357127488,), (1357127491,), (1357127534,), (1357127539,), (1357127542,), (1357127545,), (1357127549,), (1357127573,), (1357127576,), (1357127580,), (1357127627,), (1357127632,), (1357127637,), (1357127641,), (1357127645,), (1357127648,), (1357127702,), (1357127691,), (1357127694,), (1357127696,), (1357127698,), (1357127741,), (1357127745,), (1357127748,), (1357127756,), (1357127830,), (1357127835,), (1357127885,), (1357127889,), (1357127891,), (1357127896,), (1357127935,), (1357127938,), (1357127942,), (1357127946,), (1357127983,), (1357127989,), (1357127993,), (1357127996,), (1357128034,), (1357128038,), (1357128043,), (1357128098,), (1357128101,), (1357128104,), (1357128108,), (1357128163,), (1357128168,), (1357128173,), (1357128178,), (1357128230,), (1357128234,), (1357128237,), (1357128241,), (1357128285,), (1357128296,), (1357128304,), (1357128348,), (1357128351,), (1357128355,), (1357128359,), (1357128364,), (1357128372,), (1357128533,), (1357128538,), (1357128542,), (1357128598,), (1357128602,), (1357128607,), (1357128659,), (1357128653,), (1357128656,), (1357128709,), (1357128714,), (1357128718,), (1357128722,), (1357128727,), (1357128732,), (1357128766,), (1357128772,), (1357128776,), (1357128783,), (1357128787,), (1357128819,), (1357128826,), (1357128830,), (1357128844,), (1357128902,), (1357128908,), (1357128913,), (1357128917,), (1357128921,), (1357128961,), (1357128966,), (1357128971,), (1357128976,), (1357129019,), (1357129027,), (1357129032,), (1357129034,), (1357129039,), (1357129075,), (1357129149,), (1357129205,), (1357129209,), (1357129212,), (1357129215,), (1357129219,), (1357129260,), (1357129265,), (1357129270,), (1357129315,), (1357129319,), (1357129330,), (1357129334,), (1357129350,), (1357129395,), (1357129399,), (1357129405,), (1357129411,), (1357129415,), (1357129463,), (1357129466,), (1357129470,), (1357129473,), (1357129543,), (1357129547,), (1357129551,), (1357129554,), (1357129591,), (1357129597,), (1357129703,), (1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,), (1357131639,), (1357131722,), (1357131784,), (1357131846,), (1357131900,), (1357131950,), (1357132198,), (1357132277,), (1357132361,), (1357132437,), (1357132822,), (1357132713,), (1357132768,), (1357133417,), (1357133433,), (1357133462,), (1357133489,), (1357133536,), (1357133838,), (1357133865,), (1357133888,), (1357133895,), (1357133902,), (1357134074,), (1357134079,), (1357134081,), (1357134542,), (1357134736,), (1357134908,), (1357134913,), (1357134918,), (1357134956,), (1357135186,), (1357135225,), (1357135237,), (1357135239,), (1357135243,), (1357135245,), (1357135500,), (1357135523,), (1357135534,), (1357135562,), (1357135612,), (1357135616,), (1357135618,), (1357135620,), (1357135624,), (1357135809,), (1357135836,), (1357135864,), (1357135888,), (1357135937,), (1357135943,), (1357135946,), (1357135955,), (1357135966,), (1357136019,), (1357136023,), (1357136040,), (1357136055,), (1357136062,), (1357136166,), (1357136170,), (1357136172,), (1357136174,), (1357136177,), (1357136220,), (1357136222,), (1357136225,), (1357136279,), (1357136282,), (1357136284,), (1357136286,), (1357136290,), (1357136292,), (1357136342,), (1357136348,), (1357136352,), (1357136357,), (1357136363,), (1357136415,), (1357136406,), (1357136409,), (1357136413,), (1357136455,), (1357136459,), (1357136462,), (1357136466,), (1357136469,), (1357136471,), (1357136512,), (1357136515,), (1357136517,), (1357136524,), (1357136532,), (1357136540,), (1357136609,), (1357136613,), (1357136733,), (1357136737,), (1357136742,), (1357136746,), (1357136798,), (1357136811,), (1357136814,), (1357136816,), (1357136819,), (1357136862,), (1357136864,), (1357136867,), (1357136870,), (1357136873,), (1357136912,), (1357136913,), (1357136916,), (1357136919,), (1357136922,), (1357136965,), (1357136970,), (1357136972,), (1357136976,), (1357136979,), (1357136983,), (1357137032,), (1357137034,), (1357137036,), (1357137096,), (1357137130,), (1357137136,), (1357137138,), (1357137142,), (1357137170,), (1357137201,), (1357137203,), (1357137205,), (1357137207,), (1357137246,), (1357137250,), (1357137253,), (1357137255,), (1357137306,), (1357137319,), (1357137322,), (1357137325,), (1357137327,), (1357137333,), (1357137403,), (1357137376,), (1357137386,), (1357137391,), (1357137398,), (1357137433,), (1357137478,), (1357137482,), (1357137529,), (1357137532,), (1357137536,), (1357137543,), (1357137547,), (1357137551,), (1357137587,), (1357137592,), (1357137597,), (1357137601,), (1357137636,), (1357137639,), (1357137643,), (1357137647,), (1357137679,), (1357137683,), (1357137688,), (1357137693,), (1357137698,), (1357137739,), (1357137741,), (1357137743,), (1357137745,), (1357137746,), (1357137790,), (1357137793,), (1357137797,), (1357137800,), (1357137845,), (1357137847,), (1357137848,), (1357137850,), (1357137853,), (1357137857,), (1357137915,), (1357137924,), (1357137940,), (1357138012,), (1357138016,), (1357138018,), (1357138019,), (1357138067,), (1357138070,), (1357138074,), (1357138076,), (1357138080,), (1357138138,), (1357138141,), (1357138144,), (1357138148,), (1357138357,), (1357138471,), (1357138474,), (1357138479,), (1357138490,), (1357138494,), (1357138558,), (1357138546,), (1357138548,), (1357138551,), (1357138554,), (1357138601,), (1357138604,), (1357138607,), (1357138649,), (1357138657,), (1357138660,), (1357138672,), (1357138684,), (1357138775,), (1357138780,), (1357138784,), (1357138787,), (1357138790,), (1357138793,), (1357138852,), (1357138885,), (1357138902,), (1357138904,), (1357139094,), (1357139097,), (1357139099,), (1357139102,), (1357139105,), (1357139116,), (1357139183,), (1357139189,), (1357139206,), (1357139208,), (1357139277,), (1357139278,), (1357139280,), (1357139282,), (1357139284,), (1357139295,), (1357139471,), (1357139475,), (1357139478,), (1357139502,), (1357139631,), (1357139634,), (1357139638,), (1357139641,), (1357139645,), (1357139649,), (1357139774,), (1357139810,), (1357139845,), (1357139863,), (1357139877,), (1357140153,), (1357140163,), (1357140170,), (1357140176,), (1357140182,), (1357140189,), (1357140336,), (1357140373,), (1357140383,), (1357140390,), (1357140410,), (1357141591,), (1357141617,), (1357141646,), (1357141657,), (1357141689,), (1357141708,), (1357141731,), (1357141762,), (1357141810,), (1357141871,), (1357141899,), (1357147124,), (1357146653,), (1357147015,), (1357147115,), (1357147117,), (1357147120,), (1357147122,), (1357147164,), (1357147166,), (1357147170,), (1357147174,), (1357147361,), (1357147365,), (1357147369,), (1357147374,), (1357147377,), (1357147396,), (1357147398,), (1357147406,), (1357147420,), (1357147433,), (1357147437,), (1357147512,), (1357147515,), (1357147517,), (1357147549,), (1357147551,), (1357147554,), (1357147557,), (1357147560,), (1357147562,), (1357147611,), (1357147617,), (1357147623,), (1357147629,), (1357147652,), (1357147654,), (1357147657,), (1357147660,), (1357147663,), (1357147666,), (1357147689,), (1357147693,), (1357147696,), (1357147699,), (1357147899,), (1357147935,), (1357147969,), (1357148008,), (1357148040,), (1357148069,), (1357148261,), (1357148263,), (1357148266,), (1357148269,), (1357148303,), (1357148306,), (1357148309,), (1357148312,), (1357148315,), (1357148318,), (1357148336,), (1357148339,), (1357148342,), (1357148406,), (1357148433,), (1357148436,), (1357148439,), (1357148461,), (1357148463,), (1357148605,), (1357148578,), (1357148580,), (1357148589,), (1357148864,), (1357148901,), (1357148911,), (1357148916,), (1357148919,), (1357148921,), (1357149006,), (1357149009,), (1357149013,), (1357149018,), (1357149098,), (1357149100,), (1357149103,), (1357149110,), (1357149117,), (1357149156,), (1357149159,), (1357149162,), (1357149168,), (1357149170,), (1357149227,), (1357149229,), (1357149232,), (1357149235,), (1357149237,), (1357149270,), (1357149272,), (1357149274,), (1357149276,), (1357149279,), (1357149283,), (1357149307,), (1357149450,), (1357149454,), (1357149457,), (1357149490,), (1357149502,), (1357149507,), (1357149511,), (1357149519,), (1357149522,), (1357149558,), (1357149560,), (1357149562,), (1357149565,), (1357149569,), (1357149571,), (1357149595,), (1357149598,), (1357149600,), (1357149602,), (1357149636,), (1357149638,), (1357149641,), (1357149644,), (1357149897,), (1357149914,), (1357149921,), (1357150540,), (1357150546,), (1357150553,), (1357150657,), (1357150640,), (1357150647,), (1357150651,), (1357150653,), (1357150707,), (1357150712,), (1357150716,), (1357150719,), (1357150750,), (1357150753,), (1357150756,), (1357150768,), (1357150859,), (1357150864,), (1357150867,), (1357151243,), (1357151275,), (1357151300,), (1357151332,), (1357151358,), (1357151583,), (1357151588,), (1357151592,), (1357151596,), (1357151600,), (1357151769,), (1357151804,), (1357151806,), (1357151810,), (1357151814,), (1357151839,), (1357151842,), (1357151845,), (1357151848,), (1357151853,), (1357151880,), (1357151883,), (1357151887,), (1357151891,), (1357151894,), (1357151933,), (1357151935,), (1357151938,), (1357151990,), (1357151993,), (1357151996,), (1357151999,), (1357152007,), (1357152114,), (1357152146,), (1357152165,), (1357152169,), (1357152175,), (1357152181,), (1357152218,), (1357152221,), (1357152225,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09052025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22817892]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] map_info['map_portfolio_photo'] : {22817892: [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114, 1357152007, 1357151999, 1357151996, 1357151993, 1357151990, 1357151938, 1357151935, 1357151933, 1357151894, 1357151891, 1357151887, 1357151883, 1357151880, 1357151853, 1357151848, 1357151845, 1357151842, 1357151839, 1357151814, 1357151810, 1357151806, 1357151804, 1357151769, 1357151600, 1357151596, 1357151592, 1357151588, 1357151583, 1357151358, 1357151332, 1357151300, 1357151275, 1357151243, 1357150867, 1357150864, 1357150859, 1357150768, 1357150756, 1357150753, 1357150750, 1357150719, 1357150716, 1357150712, 1357150707, 1357150653, 1357150651, 1357150647, 1357150640]} final : True mtd_id 4302 list_pids : [1357152225, 1357152221, 1357152218, 1357152181, 1357152175, 1357152169, 1357152165, 1357152146, 1357152114] Looping around the photos to save general results len do output : 1 /22817892Didn'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, '2811234') ('4302', '22817892', '1357152225', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152221', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152218', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152181', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152175', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152169', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152165', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152146', None, None, None, None, None, '2811234') ('4302', None, None, None, None, None, None, None, '2811234') ('4302', '22817892', '1357152114', None, None, None, None, None, '2811234') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22817892', 'None', None, None, None, None, '2811234'), ('4302', '22817892', '1357152225', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152221', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152218', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152181', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152175', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152169', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152165', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152146', None, None, None, None, None, '2811234'), ('4302', '22817892', '1357152114', None, None, None, None, None, '2811234')] time used for this insertion : 0.014936447143554688 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2837409973144531 time spend to save output : 0.015137195587158203 total time spend for step 5 : 1.2988781929016113 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 (2811234) 2.30user 2.42system 0:08.93elapsed 52%CPU (0avgtext+0avgdata 159216maxresident)k 288inputs+14792outputs (15major+72242minor)pagefaults 0swaps