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 : 1670230 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 (4009680) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4009680) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260038 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4009680'] with mtr_portfolio_ids : ['28260038'] and first list_photo_ids : [] new path : /proc/1670230/ Name: python3 Umask: 0002 State: R (running) Tgid: 1670230 Ngid: 0 Pid: 1670230 PPid: 1670229 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1670230 NSpid: 1670230 NSpgid: 1668937 NSsid: 1668937 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98316 kB VmRSS: 98316 kB RssAnon: 59908 kB RssFile: 38408 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1670230', 'Ngid': '0', 'Pid': '1670230', 'PPid': '1670229', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1670230', 'NSpid': '1670230', 'NSpgid': '1668937', 'NSsid': '1668937', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98316 kB', 'VmRSS': '98316 kB', 'RssAnon': '59908 kB', 'RssFile': '38408 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '1670230', '1106908', '0', '1106884', '865636', '98316', b'', 'marlene', '4009680') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28260038) 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 (4009680 ) ) 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 (28260038) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392973471, 'portfolio_id': 28260038}, {'photo_id': 1392973185, 'portfolio_id': 28260038}, {'photo_id': 1392973180, 'portfolio_id': 28260038}, {'photo_id': 1392973176, 'portfolio_id': 28260038}, {'photo_id': 1392973168, 'portfolio_id': 28260038}, {'photo_id': 1392973111, 'portfolio_id': 28260038}, {'photo_id': 1392973109, 'portfolio_id': 28260038}, {'photo_id': 1392973108, 'portfolio_id': 28260038}, {'photo_id': 1392973081, 'portfolio_id': 28260038}, {'photo_id': 1392973058, 'portfolio_id': 28260038}, {'photo_id': 1392973055, 'portfolio_id': 28260038}, {'photo_id': 1392973033, 'portfolio_id': 28260038}, {'photo_id': 1392973031, 'portfolio_id': 28260038}, {'photo_id': 1392973029, 'portfolio_id': 28260038}, {'photo_id': 1392973002, 'portfolio_id': 28260038}, {'photo_id': 1392972994, 'portfolio_id': 28260038}, {'photo_id': 1392972992, 'portfolio_id': 28260038}, {'photo_id': 1392972991, 'portfolio_id': 28260038}, {'photo_id': 1392972990, 'portfolio_id': 28260038}, {'photo_id': 1392972989, 'portfolio_id': 28260038}, {'photo_id': 1392972969, 'portfolio_id': 28260038}, {'photo_id': 1392972968, 'portfolio_id': 28260038}, {'photo_id': 1392972950, 'portfolio_id': 28260038}, {'photo_id': 1392972949, 'portfolio_id': 28260038}, {'photo_id': 1392972947, 'portfolio_id': 28260038}, {'photo_id': 1392972946, 'portfolio_id': 28260038}, {'photo_id': 1392972746, 'portfolio_id': 28260038}, {'photo_id': 1392972699, 'portfolio_id': 28260038}, {'photo_id': 1392972666, 'portfolio_id': 28260038}, {'photo_id': 1392972619, 'portfolio_id': 28260038}, {'photo_id': 1392972589, 'portfolio_id': 28260038}, {'photo_id': 1392972516, 'portfolio_id': 28260038}, {'photo_id': 1392972479, 'portfolio_id': 28260038}, {'photo_id': 1392972478, 'portfolio_id': 28260038}, {'photo_id': 1392972174, 'portfolio_id': 28260038}, {'photo_id': 1392972157, 'portfolio_id': 28260038}, {'photo_id': 1392972123, 'portfolio_id': 28260038}, {'photo_id': 1392972088, 'portfolio_id': 28260038}, {'photo_id': 1392971877, 'portfolio_id': 28260038}, {'photo_id': 1392971873, 'portfolio_id': 28260038}, {'photo_id': 1392971871, 'portfolio_id': 28260038}, {'photo_id': 1392971858, 'portfolio_id': 28260038}, {'photo_id': 1392971856, 'portfolio_id': 28260038}, {'photo_id': 1392971684, 'portfolio_id': 28260038}, {'photo_id': 1392971681, 'portfolio_id': 28260038}, {'photo_id': 1392971680, 'portfolio_id': 28260038}, {'photo_id': 1392971679, 'portfolio_id': 28260038}, {'photo_id': 1392971676, 'portfolio_id': 28260038}, {'photo_id': 1392971623, 'portfolio_id': 28260038}, {'photo_id': 1392971621, 'portfolio_id': 28260038}, {'photo_id': 1392971619, 'portfolio_id': 28260038}, {'photo_id': 1392971618, 'portfolio_id': 28260038}, {'photo_id': 1392971613, 'portfolio_id': 28260038}, {'photo_id': 1392971574, 'portfolio_id': 28260038}] map_portfolio_id_photo_id: {28260038: [1392973471, 1392973185, 1392973180, 1392973176, 1392973168, 1392973111, 1392973109, 1392973108, 1392973081, 1392973058, 1392973055, 1392973033, 1392973031, 1392973029, 1392973002, 1392972994, 1392972992, 1392972991, 1392972990, 1392972989, 1392972969, 1392972968, 1392972950, 1392972949, 1392972947, 1392972946, 1392972746, 1392972699, 1392972666, 1392972619, 1392972589, 1392972516, 1392972479, 1392972478, 1392972174, 1392972157, 1392972123, 1392972088, 1392971877, 1392971873, 1392971871, 1392971858, 1392971856, 1392971684, 1392971681, 1392971680, 1392971679, 1392971676, 1392971623, 1392971621, 1392971619, 1392971618, 1392971613, 1392971574]} ##### 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.018079519271850586 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Nov 6 14:02:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28260038) 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 : 28260038 get user id for portfolio 28260038 get sub ptf for main ptf 28260038, type 3726 and hashtags ['Carton_brun', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement', 'flou', 'mal_croppe', 'cartonnette', 'papier', 'metal', 'plastique', 'kraft', 'autre_refus'] 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`=28260038 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','flou','mal_croppe','cartonnette','papier','metal','plastique','kraft','autre_refus')) 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`=28260038 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','flou','mal_croppe','cartonnette','papier','metal','plastique','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28260038, 'sub_port_id': 28260046, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122462, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'Carton_gris': {'main_port_id': 28260038, 'sub_port_id': 28260047, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122463, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'papier': {'main_port_id': 28260038, 'sub_port_id': 28260048, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122464, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'plastique': {'main_port_id': 28260038, 'sub_port_id': 28260049, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122465, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'metal': {'main_port_id': 28260038, 'sub_port_id': 28260050, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122466, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'mal_croppe': {'main_port_id': 28260038, 'sub_port_id': 28260051, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122467, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 28260038, 'sub_port_id': 28260052, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122468, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'cartonnette': {'main_port_id': 28260038, 'sub_port_id': 28260053, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122469, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'environnement': {'main_port_id': 28260038, 'sub_port_id': 28260054, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122470, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'Carton_brun': {'main_port_id': 28260038, 'sub_port_id': 28260055, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122471, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'flou': {'main_port_id': 28260038, 'sub_port_id': 28260056, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122472, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}, 'autre_refus': {'main_port_id': 28260038, 'sub_port_id': 28260057, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122473, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260046 , 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=28260038 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 (28260046) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260047 , 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=28260038 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 (28260047) result : ((1392973166,), (1392973167,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260048 , 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=28260038 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 (28260048) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260049 , 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=28260038 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 (28260049) result : ((1392973097,), (1392973171,), (1392973172,), (1392973173,), (1392973174,), (1392973175,), (1392973795,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260050 , 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=28260038 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 (28260050) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260051 , 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=28260038 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 (28260051) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260052 , 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=28260038 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 (28260052) result : ((1392971883,), (1392971995,), (1392972451,), (1392972472,), (1392972755,), (1392972757,), (1392972973,), (1392972974,), (1392973137,), (1392973138,), (1392973161,), (1392973162,), (1392973163,), (1392973164,), (1392973165,), (1392973759,), (1392973761,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260053 , 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=28260038 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 (28260053) result : ((1392971885,), (1392972474,), (1392973094,), (1392973774,), (1392973776,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260054 , 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=28260038 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 (28260054) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260055 , 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=28260038 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 (28260055) result : ((1392971887,), (1392972016,), (1392972475,), (1392972476,), (1392972477,), (1392973096,), (1392973785,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260056 , 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=28260038 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 (28260056) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28260057 , 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=28260038 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 (28260057) result : ((1392971884,), (1392972002,), (1392972004,), (1392972473,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28260038) result : ((1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28260038 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','flou','mal_croppe','cartonnette','papier','metal','plastique','kraft','autre_refus')) 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`=28260038 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','environnement','flou','mal_croppe','cartonnette','papier','metal','plastique','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28260038, 'sub_port_id': 28260058, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122474, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'Carton_gris': {'main_port_id': 28260038, 'sub_port_id': 28260059, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122475, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'papier': {'main_port_id': 28260038, 'sub_port_id': 28260060, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122476, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'plastique': {'main_port_id': 28260038, 'sub_port_id': 28260061, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122477, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'metal': {'main_port_id': 28260038, 'sub_port_id': 28260062, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122478, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'mal_croppe': {'main_port_id': 28260038, 'sub_port_id': 28260063, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122479, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28260038, 'sub_port_id': 28260064, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122480, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'cartonnette': {'main_port_id': 28260038, 'sub_port_id': 28260065, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122481, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'environnement': {'main_port_id': 28260038, 'sub_port_id': 28260066, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122482, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'Carton_brun': {'main_port_id': 28260038, 'sub_port_id': 28260067, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122483, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'flou': {'main_port_id': 28260038, 'sub_port_id': 28260068, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122484, 'last_updated_at': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}, 'autre_refus': {'main_port_id': 28260038, 'sub_port_id': 28260069, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19122485, 'last_updated_at': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 14, 0, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 13, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260046 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260059,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260047 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260060,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260048 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260061,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260049 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260062,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260050 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260063,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260051 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260064,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260052 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260065,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260053 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260066,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260054 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260067,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260055 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28260069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28260057 lien utilise dans velours : https://marlene.fotonower.com/velours/28260058,28260059,28260060,28260061,28260062,28260063,28260064,28260065,28260066,28260067,28260068,28260069?tags=kraft,Carton_gris,papier,plastique,metal,mal_croppe,Teint_Dans_La_Masse,cartonnette,environnement,Carton_brun,flou,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28260038]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392973471] map_info['map_portfolio_photo'] : {28260038: [1392973471, 1392973185, 1392973180, 1392973176, 1392973168, 1392973111, 1392973109, 1392973108, 1392973081, 1392973058, 1392973055, 1392973033, 1392973031, 1392973029, 1392973002, 1392972994, 1392972992, 1392972991, 1392972990, 1392972989, 1392972969, 1392972968, 1392972950, 1392972949, 1392972947, 1392972946, 1392972746, 1392972699, 1392972666, 1392972619, 1392972589, 1392972516, 1392972479, 1392972478, 1392972174, 1392972157, 1392972123, 1392972088, 1392971877, 1392971873, 1392971871, 1392971858, 1392971856, 1392971684, 1392971681, 1392971680, 1392971679, 1392971676, 1392971623, 1392971621, 1392971619, 1392971618, 1392971613, 1392971574]} final : False mtd_id 4302 list_pids : [1392973471] Looping around the photos to save general results len do output : 1 /28260038. 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, '4009680') ('4302', '28260038', '1392973471', None, None, None, None, None, '4009680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '28260038', "{'kraft': 28260046, 'Carton_gris': 28260047, 'papier': 28260048, 'plastique': 28260049, 'metal': 28260050, 'mal_croppe': 28260051, 'Teint_Dans_La_Masse': 28260052, 'cartonnette': 28260053, 'environnement': 28260054, 'Carton_brun': 28260055, 'flou': 28260056, 'autre_refus': 28260057}", None, None, None, None, '4009680'), ('4302', '28260038', '1392973471', None, None, None, None, None, '4009680')] time used for this insertion : 0.012800216674804688 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5933575630187988 time spend to save output : 0.013031959533691406 total time spend for step 1 : 1.6063895225524902 step2:final Thu Nov 6 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28260038) 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 28260038 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392971574,1392971623,1392971621,1392971619,1392971618,1392971613,1392971684,1392971681,1392971680,1392971679,1392971676,1392971877,1392971873,1392971871,1392971858,1392971856,1392972174,1392972157,1392972123,1392972088,1392972479,1392972478,1392972746,1392972699,1392972666,1392972619,1392972589,1392972516,1392972950,1392972949,1392972947,1392972946,1392972969,1392972968,1392973002,1392972994,1392972992,1392972991,1392972990,1392972989,1392973081,1392973058,1392973055,1392973033,1392973031,1392973029,1392973111,1392973109,1392973108,1392973185,1392973180,1392973176,1392973168,1392973471); 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([28260038]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392973471: ('0.045428080541055064',)} new output for save of step final : {1392973471: ('0.045428080541055064',)} [1392973471] map_info['map_portfolio_photo'] : {28260038: [1392973471, 1392973185, 1392973180, 1392973176, 1392973168, 1392973111, 1392973109, 1392973108, 1392973081, 1392973058, 1392973055, 1392973033, 1392973031, 1392973029, 1392973002, 1392972994, 1392972992, 1392972991, 1392972990, 1392972989, 1392972969, 1392972968, 1392972950, 1392972949, 1392972947, 1392972946, 1392972746, 1392972699, 1392972666, 1392972619, 1392972589, 1392972516, 1392972479, 1392972478, 1392972174, 1392972157, 1392972123, 1392972088, 1392971877, 1392971873, 1392971871, 1392971858, 1392971856, 1392971684, 1392971681, 1392971680, 1392971679, 1392971676, 1392971623, 1392971621, 1392971619, 1392971618, 1392971613, 1392971574]} final : False mtd_id 4302 list_pids : [1392973471] Looping around the photos to save general results len do output : 1 /1392973471.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, '4009680') ('4302', '28260038', '1392973471', None, None, None, None, None, '4009680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '28260038', '1392973471', '0.045428080541055064', None, None, None, None, '4009680')] time used for this insertion : 0.013492822647094727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0719614028930664 time spend to save output : 0.013686180114746094 total time spend for step 2 : 0.0856475830078125 step3:velours_tree Thu Nov 6 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28260038: [{'kraft': 28260046, 'Carton_gris': 28260047, 'papier': 28260048, 'plastique': 28260049, 'metal': 28260050, 'mal_croppe': 28260051, 'Teint_Dans_La_Masse': 28260052, 'cartonnette': 28260053, 'environnement': 28260054, 'Carton_brun': 28260055, 'flou': 28260056, 'autre_refus': 28260057}]} input_args_next_step : {28260038: ()} output_args : {28260038: [{'kraft': 28260046, 'Carton_gris': 28260047, 'papier': 28260048, 'plastique': 28260049, 'metal': 28260050, 'mal_croppe': 28260051, 'Teint_Dans_La_Masse': 28260052, 'cartonnette': 28260053, 'environnement': 28260054, 'Carton_brun': 28260055, 'flou': 28260056, 'autre_refus': 28260057}]} args : 28260038 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 : ({'kraft': 28260046, 'Carton_gris': 28260047, 'papier': 28260048, 'plastique': 28260049, 'metal': 28260050, 'mal_croppe': 28260051, 'Teint_Dans_La_Masse': 28260052, 'cartonnette': 28260053, 'environnement': 28260054, 'Carton_brun': 28260055, 'flou': 28260056, 'autre_refus': 28260057},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28260038) 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([28260038]) 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.2728841304779053 time spend to save output : 5.9604644775390625e-05 total time spend for step 3 : 0.27294373512268066 step4:send_mail_cod Thu Nov 6 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1392973471: ('0.045428080541055064',)} input_args_next_step : {1392973471: ()} output_args : {1392973471: ('0.045428080541055064',)} args : 1392973471 depend.output_id : 0 complete output_args for input 3 : {28260038: [{'kraft': 28260046, 'Carton_gris': 28260047, 'papier': 28260048, 'plastique': 28260049, 'metal': 28260050, 'mal_croppe': 28260051, 'Teint_Dans_La_Masse': 28260052, 'cartonnette': 28260053, 'environnement': 28260054, 'Carton_brun': 28260055, 'flou': 28260056, 'autre_refus': 28260057}]} input_args_next_step : {1392973471: ('0.045428080541055064',), 28260038: ()} output_args : {28260038: [{'kraft': 28260046, 'Carton_gris': 28260047, 'papier': 28260048, 'plastique': 28260049, 'metal': 28260050, 'mal_croppe': 28260051, 'Teint_Dans_La_Masse': 28260052, 'cartonnette': 28260053, 'environnement': 28260054, 'Carton_brun': 28260055, 'flou': 28260056, 'autre_refus': 28260057}]} args : 28260038 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 :2, first value : ('0.045428080541055064',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28260038) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1392973471) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392973471 download finish for photo 1392973471 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette282600461762434180/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P28260038_06-11-2025_14_03_00.pdf 28260046 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260046 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282600461762434180 28260049 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260049 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392973097: '1762433827_2649674_1392972949_5a3851e71cbe87a1c8e6c2095fda8e76_rle_crop_4023797765_0.png', 1392973171: '1762433965_2653579_1392973111_8322475c163b2d4a4937c4ffbba85365_rle_crop_4023805227_0.png', 1392973172: '1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805242_0.png', 1392973173: '1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805231_0.png', 1392973174: '1762433965_2653579_1392973055_bb21740db0d27575cd039192ce310510_rle_crop_4023805247_0.png', 1392973175: '1762433965_2653579_1392973031_37a21877287affe5b2059ec182b723df_rle_crop_4023805271_0.png', 1392973795: '1762434084_2708359_1392973168_c9bf224e6b12eb209d6521a82d7b2157_rle_crop_4023805845_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/f506732b26086fa0f1beb9273e86bd55_40038831.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/45fccce868562f6f12a641d3b265e746_77052854.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/b67b68eb83b92c25d76d1df6d62a4a3e_13113469.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/f0f368ae6dc3b2db17855f8155f9257c_18979718.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/3424fd816515999b1aa965420419a916_19633775.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/0c56daf42d999ec515691dd8e74f4b94_89482488.png change filename to text .imagette282600491762434180/ imagette282600491762434180/1762433827_2649674_1392972949_5a3851e71cbe87a1c8e6c2095fda8e76_rle_crop_4023797765_0.png.png imagette282600491762434180/1762433965_2653579_1392973111_8322475c163b2d4a4937c4ffbba85365_rle_crop_4023805227_0.png.png imagette282600491762434180/1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805231_0.png.png imagette282600491762434180/1762433965_2653579_1392973055_bb21740db0d27575cd039192ce310510_rle_crop_4023805247_0.png.png imagette282600491762434180/1762433965_2653579_1392973031_37a21877287affe5b2059ec182b723df_rle_crop_4023805271_0.png.png imagette282600491762434180/1762434084_2708359_1392973168_c9bf224e6b12eb209d6521a82d7b2157_rle_crop_4023805845_0.png.png imagette282600491762434180/1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805242_0.png.png imagette282600501762434180/ imagette282600511762434180/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/74831bdb0380eab3604d44e841b08aa8_84476718.png imagette282600491762434180 28260050 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260050 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282600501762434180 28260051 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260051 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282600511762434180 28260053 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260053 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392971885: '1762433348_2632219_1392971679_7dd0611a4896fad8e856a6c7d27477cc_rle_crop_4023794622_0.png', 1392972474: '1762433486_2638149_1392971856_452cf477316b601733272e6c9de24f82_rle_crop_4023795777_0.png', 1392973094: '1762433827_2649674_1392972949_5a3851e71cbe87a1c8e6c2095fda8e76_rle_crop_4023797764_0.png', 1392973774: '1762434084_2708359_1392973176_b2068992774183de0de2bfe9dddd9b9c_rle_crop_4023805807_0.png', 1392973776: '1762434084_2708359_1392973168_c9bf224e6b12eb209d6521a82d7b2157_rle_crop_4023805838_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/1320b548cb268e7c8d518978d8ab0dd8_25133206.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/3e3aae1c569d3b35aaeb65f002793bcb_30660168.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/4efa866d7b07739dc07537fc2328fee4_75536776.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/52d4f872bfb5cefb3edd898b32727ca4_24169559.png change filename to text .imagette282600531762434180/ imagette282600531762434180/1762433348_2632219_1392971679_7dd0611a4896fad8e856a6c7d27477cc_rle_crop_4023794622_0.png.png imagette282600531762434180/1762434084_2708359_1392973168_c9bf224e6b12eb209d6521a82d7b2157_rle_crop_4023805838_0.png.png imagette282600531762434180/1762433827_2649674_1392972949_5a3851e71cbe87a1c8e6c2095fda8e76_rle_crop_4023797764_0.png.png imagette282600531762434180/1762433486_2638149_1392971856_452cf477316b601733272e6c9de24f82_rle_crop_4023795777_0.png.png imagette282600531762434180/1762434084_2708359_1392973176_b2068992774183de0de2bfe9dddd9b9c_rle_crop_4023805807_0.png.png imagette282600561762434181/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/b4b80c9ebffa85e8ae7a7b3c68b45194_44606773.png imagette282600531762434180 28260056 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282600561762434181 28260057 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392971884: '1762433348_2632219_1392971679_7dd0611a4896fad8e856a6c7d27477cc_rle_crop_4023794628_0.png', 1392972002: '1762433367_2632887_1392971619_5dfba8eccafa7afd4f81fbba7d89342a_rle_crop_4023794825_0.png', 1392972004: '1762433367_2632887_1392971618_72804d4cc2e1c3ac387ffab700d0752e_rle_crop_4023794834_0.png', 1392972473: '1762433486_2638149_1392971873_31f93219783accfadc071831821d4f3b_rle_crop_4023795737_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/840ebac121a80b6959dceaf94a426ea9_5402807.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/11f23ad9797ac2263a46ff1adb030875_12829715.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/54b3bd2e7384b78907ac90e77ba16f0a_67966703.png change filename to text .imagette282600571762434181/ imagette282600571762434181/1762433486_2638149_1392971873_31f93219783accfadc071831821d4f3b_rle_crop_4023795737_0.png.png imagette282600571762434181/1762433348_2632219_1392971679_7dd0611a4896fad8e856a6c7d27477cc_rle_crop_4023794628_0.png.png imagette282600571762434181/1762433367_2632887_1392971619_5dfba8eccafa7afd4f81fbba7d89342a_rle_crop_4023794825_0.png.png imagette282600571762434181/1762433367_2632887_1392971618_72804d4cc2e1c3ac387ffab700d0752e_rle_crop_4023794834_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/9390b05c9527233ab7f85d7b1a4f4d39_75981731.png imagette282600571762434181 28260047 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260047 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392973166: '1762433965_2653579_1392973111_8322475c163b2d4a4937c4ffbba85365_rle_crop_4023805224_0.png', 1392973167: '1762433965_2653579_1392973055_bb21740db0d27575cd039192ce310510_rle_crop_4023805248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/ef9286fee736fbf9bd2f24f45feb7215_38781749.png change filename to text .imagette282600471762434181/ imagette282600471762434181/1762433965_2653579_1392973111_8322475c163b2d4a4937c4ffbba85365_rle_crop_4023805224_0.png.png imagette282600471762434181/1762433965_2653579_1392973055_bb21740db0d27575cd039192ce310510_rle_crop_4023805248_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/6f919151c061eb2aaa7a18fd5a59492c_44106191.png imagette282600471762434181 28260052 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260052 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392973137: '1762433946_2653180_1392972746_5168a581b3a32d1583642f70821c7beb_rle_crop_4023805045_0.png', 1392973761: '1762434084_2708359_1392973176_b2068992774183de0de2bfe9dddd9b9c_rle_crop_4023805816_0.png', 1392973759: '1762434084_2708359_1392973180_3ac5c2992173ccd41b719f3b1f214290_rle_crop_4023805781_0.png', 1392973165: '1762433965_2653579_1392973033_21474abb3465e7a4b9159ea26608c502_rle_crop_4023805264_0.png', 1392973164: '1762433965_2653579_1392973055_bb21740db0d27575cd039192ce310510_rle_crop_4023805250_0.png', 1392973163: '1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805235_0.png', 1392973162: '1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805241_0.png', 1392973161: '1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805238_0.png', 1392973138: '1762433946_2653180_1392972478_f2461dc9119bae107d905409264adb76_rle_crop_4023805049_0.png', 1392971883: '1762433348_2632219_1392971680_b0ade6817b2cc6862b5acfd64d847b79_rle_crop_4023794602_0.png', 1392972974: '1762433706_2646211_1392971574_4301e7929d36f6f3d148ad381d160763_rle_crop_4023796733_0.png', 1392972973: '1762433706_2646211_1392971574_4301e7929d36f6f3d148ad381d160763_rle_crop_4023796732_0.png', 1392972757: '1762433585_2643439_1392972479_0c57e34d21463dcd6704f7dad3a961a9_rle_crop_4023796649_0.png', 1392972755: '1762433585_2643439_1392972479_0c57e34d21463dcd6704f7dad3a961a9_rle_crop_4023796641_0.png', 1392972472: '1762433486_2638149_1392971856_452cf477316b601733272e6c9de24f82_rle_crop_4023795781_0.png', 1392972451: '1762433466_2637787_1392972088_ea812233cad40684490359aa8b55b5e1_rle_crop_4023795594_0.png', 1392971995: '1762433367_2632887_1392971621_262067436f081dd86464f44b8baba876_rle_crop_4023794820_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/8637fdd933bcdb370db284ef9d43a3c7_65355595.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/297f1b3cf7c6013c32a5d1c98259d3f4_51612253.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/c3b5d7c41bb71a50d82354b328dc6826_42376588.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/0bba8129cce9d0c0dc664bbd25fc9350_81901806.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/c68e8c22910223bf7a830e5948bab4f1_94372096.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/d48ee2c4af58249c3d0eafddcad98059_30893833.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/c018a57c3ee8534ab7371314d638f03d_20668157.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/277c3931bc86858f3b4e08db0a369559_46412371.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/453e4c15947d86806bb3603831db0f02_17583517.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/cb1dda31336f166f7821b7baa35dffe5_1019635.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/8334d56010ef43780f232b73eacade5c_54815004.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/82583830bf25eefd2f6129d7a6cb2199_2261852.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/19b50da3b262270126c5a0d58f2941a9_40386827.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/897df7cffa2ed29b119d111738f065e0_97351100.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/0d8bc4ad20a991e22e59533798c1fe8f_94438487.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/db3b9cf35d5dd949542551e8594e5c4d_60200242.png change filename to text .imagette282600521762434181/ imagette282600521762434181/1762433946_2653180_1392972746_5168a581b3a32d1583642f70821c7beb_rle_crop_4023805045_0.png.png imagette282600521762434181/1762433367_2632887_1392971621_262067436f081dd86464f44b8baba876_rle_crop_4023794820_0.png.png imagette282600521762434181/1762434084_2708359_1392973180_3ac5c2992173ccd41b719f3b1f214290_rle_crop_4023805781_0.png.png imagette282600521762434181/1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805241_0.png.png imagette282600521762434181/1762433965_2653579_1392973055_bb21740db0d27575cd039192ce310510_rle_crop_4023805250_0.png.png imagette282600521762434181/1762433348_2632219_1392971680_b0ade6817b2cc6862b5acfd64d847b79_rle_crop_4023794602_0.png.png imagette282600521762434181/1762434084_2708359_1392973176_b2068992774183de0de2bfe9dddd9b9c_rle_crop_4023805816_0.png.png imagette282600521762434181/1762433486_2638149_1392971856_452cf477316b601733272e6c9de24f82_rle_crop_4023795781_0.png.png imagette282600521762434181/1762433585_2643439_1392972479_0c57e34d21463dcd6704f7dad3a961a9_rle_crop_4023796641_0.png.png imagette282600521762434181/1762433965_2653579_1392973033_21474abb3465e7a4b9159ea26608c502_rle_crop_4023805264_0.png.png imagette282600521762434181/1762433706_2646211_1392971574_4301e7929d36f6f3d148ad381d160763_rle_crop_4023796733_0.png.png imagette282600521762434181/1762433706_2646211_1392971574_4301e7929d36f6f3d148ad381d160763_rle_crop_4023796732_0.png.png imagette282600521762434181/1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805235_0.png.png imagette282600521762434181/1762433585_2643439_1392972479_0c57e34d21463dcd6704f7dad3a961a9_rle_crop_4023796649_0.png.png imagette282600521762434181/1762433946_2653180_1392972478_f2461dc9119bae107d905409264adb76_rle_crop_4023805049_0.png.png imagette282600521762434181/1762433965_2653579_1392973058_cc9771310a6dfe7a82b0a5c9e60f0003_rle_crop_4023805238_0.png.png imagette282600521762434181/1762433466_2637787_1392972088_ea812233cad40684490359aa8b55b5e1_rle_crop_4023795594_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/f44ea08bb09e766446f37cc9b6f9e25f_94001040.png imagette282600521762434181 28260055 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392971887: '1762433348_2632219_1392971679_7dd0611a4896fad8e856a6c7d27477cc_rle_crop_4023794629_0.png', 1392972016: '1762433367_2632887_1392971619_5dfba8eccafa7afd4f81fbba7d89342a_rle_crop_4023794830_0.png', 1392972475: '1762433486_2638149_1392971871_e328262bc4c160e9d5f90718990fc5fa_rle_crop_4023795755_0.png', 1392972476: '1762433486_2638149_1392971871_e328262bc4c160e9d5f90718990fc5fa_rle_crop_4023795757_0.png', 1392972477: '1762433486_2638149_1392971858_ad75c928f972f94db11bd83d02ac4a9f_rle_crop_4023795764_0.png', 1392973096: '1762433827_2649674_1392972946_58b6e3b6f887d815810972d427e6a4e6_rle_crop_4023797787_0.png', 1392973785: '1762434084_2708359_1392973168_c9bf224e6b12eb209d6521a82d7b2157_rle_crop_4023805842_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/f992fbd10db9519d55e4f5a6a3ecf6eb_95144342.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/09d27a1c2e183bf702638720f3667f50_65026263.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/b1633d424eb9bb1be7282bd7c00e55b2_77020425.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/84bd116f4d003036f331488e5e4975eb_14012191.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/e7b6eb3f43b44bc2bbba87759f2e2399_13589858.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/e58bafbb4e78d864f596564041873fcc_58549133.png change filename to text .imagette282600551762434182/ imagette282600551762434182/1762433348_2632219_1392971679_7dd0611a4896fad8e856a6c7d27477cc_rle_crop_4023794629_0.png.png imagette282600551762434182/1762433486_2638149_1392971871_e328262bc4c160e9d5f90718990fc5fa_rle_crop_4023795755_0.png.png imagette282600551762434182/1762433486_2638149_1392971871_e328262bc4c160e9d5f90718990fc5fa_rle_crop_4023795757_0.png.png imagette282600551762434182/1762433827_2649674_1392972946_58b6e3b6f887d815810972d427e6a4e6_rle_crop_4023797787_0.png.png imagette282600551762434182/1762434084_2708359_1392973168_c9bf224e6b12eb209d6521a82d7b2157_rle_crop_4023805842_0.png.png imagette282600551762434182/1762433486_2638149_1392971858_ad75c928f972f94db11bd83d02ac4a9f_rle_crop_4023795764_0.png.png imagette282600551762434182/1762433367_2632887_1392971619_5dfba8eccafa7afd4f81fbba7d89342a_rle_crop_4023794830_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/7cf0576ad9a3ee21132f65af5774562c_43294886.png imagette282600551762434182 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28260038 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28260058,28260059,28260060,28260061,28260062,28260063,28260064,28260065,28260066,28260067,28260068,28260069?tags=kraft,Carton_gris,papier,plastique,metal,mal_croppe,Teint_Dans_La_Masse,cartonnette,environnement,Carton_brun,flou,autre_refus your option no_mail is active, we will not send the real mail to your client args[1392973471] : ('0.045428080541055064',) no score found for photo 1392973471 We are sending mail with results at report@fotonower.com refus_total : 0.045428080541055064 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260038 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_P28260038_06-11-2025_14_03_00.pdf results_Auto_P28260038_06-11-2025_14_03_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28260038_06-11-2025_14_03_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28260038','results_Auto_P28260038_06-11-2025_14_03_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28260038_06-11-2025_14_03_00.pdf','pdf','','0.17','0.045428080541055064') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28260038]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392973471] map_info['map_portfolio_photo'] : {28260038: [1392973471, 1392973185, 1392973180, 1392973176, 1392973168, 1392973111, 1392973109, 1392973108, 1392973081, 1392973058, 1392973055, 1392973033, 1392973031, 1392973029, 1392973002, 1392972994, 1392972992, 1392972991, 1392972990, 1392972989, 1392972969, 1392972968, 1392972950, 1392972949, 1392972947, 1392972946, 1392972746, 1392972699, 1392972666, 1392972619, 1392972589, 1392972516, 1392972479, 1392972478, 1392972174, 1392972157, 1392972123, 1392972088, 1392971877, 1392971873, 1392971871, 1392971858, 1392971856, 1392971684, 1392971681, 1392971680, 1392971679, 1392971676, 1392971623, 1392971621, 1392971619, 1392971618, 1392971613, 1392971574]} final : False mtd_id 4302 list_pids : [1392973471] 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, '4009680') ('4302', '28260038', '1392973471', None, None, None, None, None, '4009680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '28260038', '1392973471', None, None, None, None, None, '4009680')] time used for this insertion : 0.012077808380126953 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.355637311935425 time spend to save output : 0.01224064826965332 total time spend for step 4 : 4.367877960205078 step5:split_time_score Thu Nov 6 14:03:04 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 : ['28260038'] 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 : [('28260038',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28260038) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392973471: {'path': 'temp/1762434179_1670230_1392973471_ab1abe105870b25d82222b650b0e4913.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 = 28260038; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28260038 group by h (('13', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28260038 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 (28260038) 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 (28260038) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06112025 28260038 Nombre de photos uploadées : 54 / 23040 (0%) 06112025 28260038 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 06112025 28260038 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1392971574, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/4301e7929d36f6f3d148ad381d160763.jpg', 'username': None, 'uploaded_at': 1762433167, 'text': 'image_06112025_13_45_14_010139m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1392971623, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/cbed40fef2af5d917a78174bf6d734e6.jpg', 'username': None, 'uploaded_at': 1762433227, 'text': 'image_06112025_13_45_23_009128m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392971621, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/262067436f081dd86464f44b8baba876.jpg', 'username': None, 'uploaded_at': 1762433227, 'text': 'image_06112025_13_46_04_010151m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392971619, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/5dfba8eccafa7afd4f81fbba7d89342a.jpg', 'username': None, 'uploaded_at': 1762433227, 'text': 'image_06112025_13_46_14_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017631053924560547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28260038, '2025-11-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2521549,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20451807975769043 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= 2521549 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28235530, 'dashboard_result_id': 16912726, '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_P28235530_06-11-2025_06_16_12.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28235538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28235539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28235540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28235541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28235542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28235543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28235544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28235545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28235546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28235547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28235548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28235549, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28236103, 'dashboard_result_id': 16912727, '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_P28236103_06-11-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236122, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28236743, 'dashboard_result_id': 16912728, '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_P28236743_06-11-2025_06_17_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236793, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28237598, 'dashboard_result_id': 16912729, '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_P28237598_06-11-2025_06_18_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28237602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28237603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28237604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28237605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28237606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28237607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28237608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28237609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28237610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28237611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28237612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28237613, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28238626, 'dashboard_result_id': 16912730, '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_P28238626_06-11-2025_06_18_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28238628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28238629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28238630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28238631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28238632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28238633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28238634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28238635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28238636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28238637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28238638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28238639, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28238993, 'dashboard_result_id': 16912731, '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_P28238993_06-11-2025_06_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28239007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239011, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28239478, 'dashboard_result_id': 16912732, '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_P28239478_06-11-2025_06_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28239506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239518, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28240182, 'dashboard_result_id': 16912733, '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_P28240182_06-11-2025_06_21_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240238, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28240665, 'dashboard_result_id': 16912734, '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_P28240665_06-11-2025_06_21_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240720, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28241219, 'dashboard_result_id': 16912735, '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_P28241219_06-11-2025_06_21_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241240, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28241637, 'dashboard_result_id': 16912736, '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_P28241637_06-11-2025_06_22_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241717, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28242271, 'dashboard_result_id': 16912737, '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_P28242271_06-11-2025_06_22_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28242296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28242297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28242298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28242299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28242300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28242301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28242302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28242303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28242304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28242305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28242306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28242307, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28242801, 'dashboard_result_id': 16912738, '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_P28242801_06-11-2025_06_23_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28242838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28242839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28242840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28242841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28242842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28242843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28242844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28242845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28242846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28242847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28242848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28242849, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28243336, 'dashboard_result_id': 16912739, '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_P28243336_06-11-2025_06_24_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28243341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28243342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28243343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28243344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28243345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28243346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28243347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28243348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28243349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28243350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28243351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28243352, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28243673, 'dashboard_result_id': 16912740, '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_P28243673_06-11-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28243728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28243729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28243730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28243731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28243732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28243733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28243734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28243735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28243736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28243737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28243738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28243739, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28244797, 'dashboard_result_id': 16912741, '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_P28244797_06-11-2025_06_25_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28244798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28244799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28244800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28244801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28244802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28244803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28244804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28244805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28244806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28244807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28244808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28244809, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28245167, 'dashboard_result_id': 16912742, '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_P28245167_06-11-2025_06_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28245172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245183, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28245512, 'dashboard_result_id': 16912743, '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_P28245512_06-11-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28245545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245551, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28245909, 'dashboard_result_id': 16912744, '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_P28245909_06-11-2025_06_03_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28245917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245927, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28246351, 'dashboard_result_id': 16912745, '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_P28246351_06-11-2025_06_19_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28246358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28246359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28246360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28246361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28246362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28246363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28246364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28246365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28246366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28246367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28246368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28246369, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28246960, 'dashboard_result_id': 16912746, '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_P28246960_06-11-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28246964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28246965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28246966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28246967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28246968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28246969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28246970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28246971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28246972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28246973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28246974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28246975, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28247409, 'dashboard_result_id': 16912747, '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_P28247409_06-11-2025_06_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28247442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28247443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28247444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28247445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28247446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28247447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28247448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28247449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28247450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28247451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28247452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28247453, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28247994, 'dashboard_result_id': 16912748, '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_P28247994_06-11-2025_07_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28248003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28248004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28248005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28248006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28248007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28248008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28248009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28248010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28248011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28248012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28248013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28248014, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28248408, 'dashboard_result_id': 16912749, '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_P28248408_06-11-2025_07_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28248410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28248411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28248412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28248413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28248414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28248415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28248416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28248417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28248418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28248419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28248420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28248421, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28249257, 'dashboard_result_id': 16912750, '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_P28249257_06-11-2025_07_33_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28249307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28249308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28249309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28249310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28249311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28249312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28249313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28249314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28249315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28249316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28249317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28249318, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28250026, 'dashboard_result_id': 16912751, '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_P28250026_06-11-2025_07_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28250027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28250028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28250029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28250030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28250031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28250032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28250033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28250034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28250035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28250036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28250037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28250038, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28250644, 'dashboard_result_id': 16912752, '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_P28250644_06-11-2025_08_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28250650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28250651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28250652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28250653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28250654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28250655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28250656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28250657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28250658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28250659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28250660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28250661, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28251339, 'dashboard_result_id': 16912753, '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_P28251339_06-11-2025_08_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28251344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28251345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28251346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28251347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28251348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28251349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28251350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28251351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28251352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28251353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28251354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28251355, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28251974, 'dashboard_result_id': 16912754, '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_P28251974_06-11-2025_08_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28251975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28251976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28251977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28251978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28251979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28251980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28251981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28251982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28251983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28251984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28251985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28251986, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28252624, 'dashboard_result_id': 16912756, '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_P28252624_06-11-2025_08_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28252689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28252690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28252691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28252692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28252693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28252694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28252695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28252696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28252697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28252698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28252699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28252700, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28253363, 'dashboard_result_id': 16912757, '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_P28253363_06-11-2025_10_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28253378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28253379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28253380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28253381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28253382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28253383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28253384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28253385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28253387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28253388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28253389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28253390, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28259929, 'dashboard_result_id': 16912758, '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_P28259929_06-11-2025_13_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28259931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28259932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28259933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28259934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28259935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28259936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28259937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28259938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28259939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28259940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28259941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28259942, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2533726, 'mtr_portfolio_id': 28260038, 'dashboard_result_id': 16912759, '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_P28260038_06-11-2025_13_59_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28260046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28260047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28260048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28260049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28260050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28260051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28260052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28260053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28260054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28260055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28260056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28260057, '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 = 28235530 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': 4007836, 'mtr_portfolio_id': 28235530, 'created_at': datetime.datetime(2025, 11, 6, 6, 16, 8), 'result': '0.04358385456250637', 'result_long': None, 'result_double': None}] Qualite : 0.04358385456250637 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28235530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28235530_06-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28235530 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_P28235530_06-11-2025_06_16_12.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28235538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28235539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28235540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28235541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28235542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28235543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28235544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28235545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28235546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28235547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28235548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28235549, 'pht': 3726}}" where mtr_portfolio_id = 28235530 and dashboard_run_id = 2533726 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`=28235530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912726, 0.04358385456250637, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28235530_06-11-2025_06_16_12.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28235538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28235539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28235540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28235541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28235542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28235543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28235544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28235545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28235546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28235547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28235548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28235549, '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 = 28236103 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': 4007837, 'mtr_portfolio_id': 28236103, 'created_at': datetime.datetime(2025, 11, 6, 6, 16, 27), 'result': '0.056457483995846734', 'result_long': None, 'result_double': None}] Qualite : 0.056457483995846734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28236103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236103_06-11-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28236103 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_P28236103_06-11-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236122, 'pht': 3726}}" where mtr_portfolio_id = 28236103 and dashboard_run_id = 2533726 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`=28236103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912727, 0.056457483995846734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236103_06-11-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236122, '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 = 28236743 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': 4007838, 'mtr_portfolio_id': 28236743, 'created_at': datetime.datetime(2025, 11, 6, 6, 17, 28), 'result': '0.05088505133082099', 'result_long': None, 'result_double': None}] Qualite : 0.05088505133082099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28236743 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236743_06-11-2025_06_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28236743 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_P28236743_06-11-2025_06_17_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236793, 'pht': 3726}}" where mtr_portfolio_id = 28236743 and dashboard_run_id = 2533726 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`=28236743 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912728, 0.05088505133082099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236743_06-11-2025_06_17_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236793, '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 = 28237598 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': 4007839, 'mtr_portfolio_id': 28237598, 'created_at': datetime.datetime(2025, 11, 6, 6, 17, 57), 'result': '0.04893725059362541', 'result_long': None, 'result_double': None}] Qualite : 0.04893725059362541 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28237598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28237598_06-11-2025_06_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28237598 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_P28237598_06-11-2025_06_18_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28237602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28237603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28237604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28237605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28237606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28237607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28237608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28237609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28237610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28237611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28237612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28237613, 'pht': 3726}}" where mtr_portfolio_id = 28237598 and dashboard_run_id = 2533726 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`=28237598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912729, 0.04893725059362541, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28237598_06-11-2025_06_18_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28237602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28237603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28237604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28237605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28237606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28237607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28237608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28237609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28237610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28237611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28237612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28237613, '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 = 28238626 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': 4007840, 'mtr_portfolio_id': 28238626, 'created_at': datetime.datetime(2025, 11, 6, 6, 18, 29), 'result': '0.03760206288486685', 'result_long': None, 'result_double': None}] Qualite : 0.03760206288486685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28238626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238626_06-11-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28238626 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_P28238626_06-11-2025_06_18_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28238628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28238629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28238630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28238631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28238632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28238633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28238634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28238635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28238636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28238637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28238638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28238639, 'pht': 3726}}" where mtr_portfolio_id = 28238626 and dashboard_run_id = 2533726 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`=28238626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912730, 0.03760206288486685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238626_06-11-2025_06_18_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28238628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28238629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28238630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28238631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28238632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28238633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28238634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28238635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28238636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28238637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28238638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28238639, '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 = 28238993 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': 4007841, 'mtr_portfolio_id': 28238993, 'created_at': datetime.datetime(2025, 11, 6, 6, 19, 30), 'result': '0.039428527119432843', 'result_long': None, 'result_double': None}] Qualite : 0.039428527119432843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28238993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238993_06-11-2025_06_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28238993 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_P28238993_06-11-2025_06_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28239007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239011, 'pht': 3726}}" where mtr_portfolio_id = 28238993 and dashboard_run_id = 2533726 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`=28238993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912731, 0.039428527119432843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238993_06-11-2025_06_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28239007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239011, '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 = 28239478 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': 4007842, 'mtr_portfolio_id': 28239478, 'created_at': datetime.datetime(2025, 11, 6, 6, 19, 58), 'result': '0.050712610387693514', 'result_long': None, 'result_double': None}] Qualite : 0.050712610387693514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28239478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28239478_06-11-2025_06_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28239478 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_P28239478_06-11-2025_06_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28239506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239518, 'pht': 3726}}" where mtr_portfolio_id = 28239478 and dashboard_run_id = 2533726 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`=28239478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912732, 0.050712610387693514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28239478_06-11-2025_06_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28239506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239518, '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 = 28240182 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': 4007843, 'mtr_portfolio_id': 28240182, 'created_at': datetime.datetime(2025, 11, 6, 6, 20, 58), 'result': '0.05517909773640418', 'result_long': None, 'result_double': None}] Qualite : 0.05517909773640418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28240182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240182_06-11-2025_06_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28240182 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_P28240182_06-11-2025_06_21_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240238, 'pht': 3726}}" where mtr_portfolio_id = 28240182 and dashboard_run_id = 2533726 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`=28240182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912733, 0.05517909773640418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240182_06-11-2025_06_21_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240238, '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 = 28240665 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': 4007844, 'mtr_portfolio_id': 28240665, 'created_at': datetime.datetime(2025, 11, 6, 6, 21, 11), 'result': '0.05091374724088276', 'result_long': None, 'result_double': None}] Qualite : 0.05091374724088276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28240665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240665_06-11-2025_06_21_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28240665 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_P28240665_06-11-2025_06_21_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240720, 'pht': 3726}}" where mtr_portfolio_id = 28240665 and dashboard_run_id = 2533726 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`=28240665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912734, 0.05091374724088276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240665_06-11-2025_06_21_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240720, '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 = 28241219 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': 4007845, 'mtr_portfolio_id': 28241219, 'created_at': datetime.datetime(2025, 11, 6, 6, 21, 29), 'result': '0.03878104192802985', 'result_long': None, 'result_double': None}] Qualite : 0.03878104192802985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28241219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241219_06-11-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28241219 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_P28241219_06-11-2025_06_21_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241240, 'pht': 3726}}" where mtr_portfolio_id = 28241219 and dashboard_run_id = 2533726 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`=28241219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912735, 0.03878104192802985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241219_06-11-2025_06_21_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241240, '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 = 28241637 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': 4007846, 'mtr_portfolio_id': 28241637, 'created_at': datetime.datetime(2025, 11, 6, 6, 21, 58), 'result': '0.03112153751493567', 'result_long': None, 'result_double': None}] Qualite : 0.03112153751493567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28241637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241637_06-11-2025_06_22_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28241637 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_P28241637_06-11-2025_06_22_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241717, 'pht': 3726}}" where mtr_portfolio_id = 28241637 and dashboard_run_id = 2533726 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`=28241637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912736, 0.03112153751493567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241637_06-11-2025_06_22_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241717, '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 = 28242271 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': 4007847, 'mtr_portfolio_id': 28242271, 'created_at': datetime.datetime(2025, 11, 6, 6, 22, 28), 'result': '0.03917987313513352', 'result_long': None, 'result_double': None}] Qualite : 0.03917987313513352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28242271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28242271_06-11-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28242271 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_P28242271_06-11-2025_06_22_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28242296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28242297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28242298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28242299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28242300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28242301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28242302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28242303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28242304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28242305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28242306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28242307, 'pht': 3726}}" where mtr_portfolio_id = 28242271 and dashboard_run_id = 2533726 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`=28242271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912737, 0.03917987313513352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28242271_06-11-2025_06_22_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28242296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28242297, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28242298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28242299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28242300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28242301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28242302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28242303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28242304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28242305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28242306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28242307, '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 = 28242801 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': 4007848, 'mtr_portfolio_id': 28242801, 'created_at': datetime.datetime(2025, 11, 6, 6, 23, 28), 'result': '0.03879196080253913', 'result_long': None, 'result_double': None}] Qualite : 0.03879196080253913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28242801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28242801_06-11-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28242801 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_P28242801_06-11-2025_06_23_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28242838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28242839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28242840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28242841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28242842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28242843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28242844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28242845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28242846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28242847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28242848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28242849, 'pht': 3726}}" where mtr_portfolio_id = 28242801 and dashboard_run_id = 2533726 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`=28242801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912738, 0.03879196080253913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28242801_06-11-2025_06_23_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28242838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28242839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28242840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28242841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28242842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28242843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28242844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28242845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28242846, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28242847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28242848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28242849, '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 = 28243336 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': 4007849, 'mtr_portfolio_id': 28243336, 'created_at': datetime.datetime(2025, 11, 6, 6, 23, 58), 'result': '0.03967796216929716', 'result_long': None, 'result_double': None}] Qualite : 0.03967796216929716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28243336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28243336_06-11-2025_06_24_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28243336 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_P28243336_06-11-2025_06_24_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28243341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28243342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28243343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28243344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28243345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28243346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28243347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28243348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28243349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28243350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28243351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28243352, 'pht': 3726}}" where mtr_portfolio_id = 28243336 and dashboard_run_id = 2533726 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`=28243336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912739, 0.03967796216929716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28243336_06-11-2025_06_24_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28243341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28243342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28243343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28243344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28243345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28243346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28243347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28243348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28243349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28243350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28243351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28243352, '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 = 28243673 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': 4007544, 'mtr_portfolio_id': 28243673, 'created_at': datetime.datetime(2025, 11, 6, 7, 30, 58), 'result': '0.06480988096381116', 'result_long': None, 'result_double': None}] Qualite : 0.06480988096381116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28243673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28243673_06-11-2025_07_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28243673 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_P28243673_06-11-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28243728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28243729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28243730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28243731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28243732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28243733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28243734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28243735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28243736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28243737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28243738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28243739, 'pht': 3726}}" where mtr_portfolio_id = 28243673 and dashboard_run_id = 2533726 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`=28243673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912740, 0.06480988096381116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28243673_06-11-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28243728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28243729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28243730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28243731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28243732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28243733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28243734, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28243735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28243736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28243737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28243738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28243739, '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 = 28244797 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': 4007852, 'mtr_portfolio_id': 28244797, 'created_at': datetime.datetime(2025, 11, 6, 6, 25, 28), 'result': '0.05456610306049079', 'result_long': None, 'result_double': None}] Qualite : 0.05456610306049079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28244797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28244797_06-11-2025_06_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28244797 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_P28244797_06-11-2025_06_25_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28244798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28244799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28244800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28244801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28244802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28244803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28244804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28244805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28244806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28244807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28244808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28244809, 'pht': 3726}}" where mtr_portfolio_id = 28244797 and dashboard_run_id = 2533726 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`=28244797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912741, 0.05456610306049079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28244797_06-11-2025_06_25_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28244798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28244799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28244800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28244801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28244802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28244803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28244804, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28244805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28244806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28244807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28244808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28244809, '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 = 28245167 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': 4007853, 'mtr_portfolio_id': 28245167, 'created_at': datetime.datetime(2025, 11, 6, 6, 25, 57), 'result': '0.05941612463750336', 'result_long': None, 'result_double': None}] Qualite : 0.05941612463750336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28245167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28245167_06-11-2025_06_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28245167 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_P28245167_06-11-2025_06_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28245172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245183, 'pht': 3726}}" where mtr_portfolio_id = 28245167 and dashboard_run_id = 2533726 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`=28245167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912742, 0.05941612463750336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28245167_06-11-2025_06_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28245172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245175, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245183, '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 = 28245512 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': 4007761, 'mtr_portfolio_id': 28245512, 'created_at': datetime.datetime(2025, 11, 6, 5, 46, 58), 'result': '0.04444928829191806', 'result_long': None, 'result_double': None}] Qualite : 0.04444928829191806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28245512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28245512_06-11-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28245512 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_P28245512_06-11-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28245545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245551, 'pht': 3726}}" where mtr_portfolio_id = 28245512 and dashboard_run_id = 2533726 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`=28245512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912743, 0.04444928829191806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28245512_06-11-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28245545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245546, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245551, '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 = 28245909 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': 4007934, 'mtr_portfolio_id': 28245909, 'created_at': datetime.datetime(2025, 11, 6, 6, 3, 28), 'result': '0.04869058730264355', 'result_long': None, 'result_double': None}] Qualite : 0.04869058730264355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28245909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28245909_06-11-2025_06_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28245909 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_P28245909_06-11-2025_06_03_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28245917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245927, 'pht': 3726}}" where mtr_portfolio_id = 28245909 and dashboard_run_id = 2533726 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`=28245909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912744, 0.04869058730264355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28245909_06-11-2025_06_03_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28245916, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28245917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28245918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28245919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28245920, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28245921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28245922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28245923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28245924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28245925, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28245926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28245927, '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 = 28246351 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': 4008017, 'mtr_portfolio_id': 28246351, 'created_at': datetime.datetime(2025, 11, 6, 6, 19, 29), 'result': '0.03726650277371054', 'result_long': None, 'result_double': None}] Qualite : 0.03726650277371054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28246351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28246351_06-11-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28246351 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_P28246351_06-11-2025_06_19_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28246358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28246359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28246360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28246361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28246362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28246363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28246364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28246365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28246366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28246367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28246368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28246369, 'pht': 3726}}" where mtr_portfolio_id = 28246351 and dashboard_run_id = 2533726 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`=28246351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912745, 0.03726650277371054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28246351_06-11-2025_06_19_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28246358, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28246359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28246360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28246361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28246362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28246363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28246364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28246365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28246366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28246367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28246368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28246369, '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 = 28246960 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': 4008081, 'mtr_portfolio_id': 28246960, 'created_at': datetime.datetime(2025, 11, 6, 6, 33), 'result': '0.05203626750916695', 'result_long': None, 'result_double': None}] Qualite : 0.05203626750916695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28246960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28246960_06-11-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28246960 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_P28246960_06-11-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28246964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28246965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28246966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28246967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28246968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28246969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28246970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28246971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28246972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28246973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28246974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28246975, 'pht': 3726}}" where mtr_portfolio_id = 28246960 and dashboard_run_id = 2533726 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`=28246960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912746, 0.05203626750916695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28246960_06-11-2025_06_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28246964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28246965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28246966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28246967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28246968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28246969, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28246970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28246971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28246972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28246973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28246974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28246975, '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 = 28247409 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': 4008155, 'mtr_portfolio_id': 28247409, 'created_at': datetime.datetime(2025, 11, 6, 6, 48, 58), 'result': '0.05155708101916214', 'result_long': None, 'result_double': None}] Qualite : 0.05155708101916214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28247409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28247409_06-11-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28247409 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_P28247409_06-11-2025_06_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28247442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28247443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28247444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28247445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28247446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28247447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28247448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28247449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28247450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28247451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28247452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28247453, 'pht': 3726}}" where mtr_portfolio_id = 28247409 and dashboard_run_id = 2533726 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`=28247409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912747, 0.05155708101916214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28247409_06-11-2025_06_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28247442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28247443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28247444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28247445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28247446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28247447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28247448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28247449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28247450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28247451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28247452, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28247453, '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 = 28247994 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': 4008238, 'mtr_portfolio_id': 28247994, 'created_at': datetime.datetime(2025, 11, 6, 7, 3, 27), 'result': '0.03019870434378912', 'result_long': None, 'result_double': None}] Qualite : 0.03019870434378912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28247994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28247994_06-11-2025_07_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28247994 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_P28247994_06-11-2025_07_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28248003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28248004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28248005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28248006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28248007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28248008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28248009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28248010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28248011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28248012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28248013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28248014, 'pht': 3726}}" where mtr_portfolio_id = 28247994 and dashboard_run_id = 2533726 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`=28247994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912748, 0.03019870434378912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28247994_06-11-2025_07_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28248003, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28248004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28248005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28248006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28248007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28248008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28248009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28248010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28248011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28248012, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28248013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28248014, '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 = 28248408 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': 4008306, 'mtr_portfolio_id': 28248408, 'created_at': datetime.datetime(2025, 11, 6, 7, 19, 59), 'result': '0.04323800651348152', 'result_long': None, 'result_double': None}] Qualite : 0.04323800651348152 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28248408 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28248408_06-11-2025_07_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28248408 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_P28248408_06-11-2025_07_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28248410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28248411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28248412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28248413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28248414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28248415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28248416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28248417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28248418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28248419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28248420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28248421, 'pht': 3726}}" where mtr_portfolio_id = 28248408 and dashboard_run_id = 2533726 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`=28248408 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912749, 0.04323800651348152, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28248408_06-11-2025_07_20_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28248410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28248411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28248412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28248413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28248414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28248415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28248416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28248417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28248418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28248419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28248420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28248421, '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 = 28249257 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': 4008413, 'mtr_portfolio_id': 28249257, 'created_at': datetime.datetime(2025, 11, 6, 7, 33, 31), 'result': '0.06835105900208806', 'result_long': None, 'result_double': None}] Qualite : 0.06835105900208806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28249257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28249257_06-11-2025_07_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28249257 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_P28249257_06-11-2025_07_33_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28249307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28249308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28249309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28249310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28249311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28249312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28249313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28249314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28249315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28249316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28249317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28249318, 'pht': 3726}}" where mtr_portfolio_id = 28249257 and dashboard_run_id = 2533726 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`=28249257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912750, 0.06835105900208806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28249257_06-11-2025_07_33_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28249307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28249308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28249309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28249310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28249311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28249312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28249313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28249314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28249315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28249316, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28249317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28249318, '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 = 28250026 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': 4008500, 'mtr_portfolio_id': 28250026, 'created_at': datetime.datetime(2025, 11, 6, 7, 49, 28), 'result': '0.07693613344031841', 'result_long': None, 'result_double': None}] Qualite : 0.07693613344031841 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28250026 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28250026_06-11-2025_07_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28250026 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_P28250026_06-11-2025_07_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28250027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28250028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28250029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28250030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28250031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28250032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28250033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28250034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28250035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28250036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28250037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28250038, 'pht': 3726}}" where mtr_portfolio_id = 28250026 and dashboard_run_id = 2533726 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`=28250026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912751, 0.07693613344031841, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28250026_06-11-2025_07_49_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28250027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28250028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28250029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28250030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28250031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28250032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28250033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28250034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28250035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28250036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28250037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28250038, '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 = 28250644 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': 4008556, 'mtr_portfolio_id': 28250644, 'created_at': datetime.datetime(2025, 11, 6, 8, 4, 57), 'result': '0.03851123124363711', 'result_long': None, 'result_double': None}] Qualite : 0.03851123124363711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28250644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28250644_06-11-2025_08_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28250644 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_P28250644_06-11-2025_08_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28250650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28250651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28250652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28250653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28250654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28250655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28250656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28250657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28250658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28250659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28250660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28250661, 'pht': 3726}}" where mtr_portfolio_id = 28250644 and dashboard_run_id = 2533726 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`=28250644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912752, 0.03851123124363711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28250644_06-11-2025_08_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28250650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28250651, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28250652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28250653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28250654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28250655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28250656, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28250657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28250658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28250659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28250660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28250661, '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 = 28251339 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': 4008656, 'mtr_portfolio_id': 28251339, 'created_at': datetime.datetime(2025, 11, 6, 8, 19, 27), 'result': '0.0545682363007319', 'result_long': None, 'result_double': None}] Qualite : 0.0545682363007319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28251339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28251339_06-11-2025_08_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28251339 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_P28251339_06-11-2025_08_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28251344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28251345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28251346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28251347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28251348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28251349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28251350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28251351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28251352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28251353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28251354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28251355, 'pht': 3726}}" where mtr_portfolio_id = 28251339 and dashboard_run_id = 2533726 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`=28251339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912753, 0.0545682363007319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28251339_06-11-2025_08_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28251344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28251345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28251346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28251347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28251348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28251349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28251350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28251351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28251352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28251353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28251354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28251355, '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 = 28251974 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': 4008722, 'mtr_portfolio_id': 28251974, 'created_at': datetime.datetime(2025, 11, 6, 8, 33), 'result': '0.07698022514160743', 'result_long': None, 'result_double': None}] Qualite : 0.07698022514160743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28251974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28251974_06-11-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28251974 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_P28251974_06-11-2025_08_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28251975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28251976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28251977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28251978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28251979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28251980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28251981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28251982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28251983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28251984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28251985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28251986, 'pht': 3726}}" where mtr_portfolio_id = 28251974 and dashboard_run_id = 2533726 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`=28251974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912754, 0.07698022514160743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28251974_06-11-2025_08_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28251975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28251976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28251977, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28251978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28251979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28251980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28251981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28251982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28251983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28251984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28251985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28251986, '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 = 28252624 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': 4008771, 'mtr_portfolio_id': 28252624, 'created_at': datetime.datetime(2025, 11, 6, 8, 46, 59), 'result': '0.04088078634831279', 'result_long': None, 'result_double': None}] Qualite : 0.04088078634831279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28252624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28252624_06-11-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28252624 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_P28252624_06-11-2025_08_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28252689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28252690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28252691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28252692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28252693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28252694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28252695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28252696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28252697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28252698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28252699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28252700, 'pht': 3726}}" where mtr_portfolio_id = 28252624 and dashboard_run_id = 2533726 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`=28252624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912756, 0.04088078634831279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28252624_06-11-2025_08_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28252689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28252690, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28252691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28252692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28252693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28252694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28252695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28252696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28252697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28252698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28252699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28252700, '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 = 28253363 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': 4008874, 'mtr_portfolio_id': 28253363, 'created_at': datetime.datetime(2025, 11, 6, 9, 59, 59), 'result': '0.052320536453356555', 'result_long': None, 'result_double': None}] Qualite : 0.052320536453356555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28253363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28253363_06-11-2025_10_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28253363 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_P28253363_06-11-2025_10_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28253378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28253379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28253380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28253381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28253382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28253383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28253384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28253385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28253387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28253388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28253389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28253390, 'pht': 3726}}" where mtr_portfolio_id = 28253363 and dashboard_run_id = 2533726 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`=28253363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912757, 0.052320536453356555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28253363_06-11-2025_10_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28253378, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28253379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28253380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28253381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28253382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28253383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28253384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28253385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28253387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28253388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28253389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28253390, '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 = 28259929 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 = 28259929 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 = 28259929 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28259929 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 = 28259929 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 = 28259929 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28259929_06-11-2025_13_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28259929 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_P28259929_06-11-2025_13_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28259931, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28259932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28259933, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28259934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28259935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28259936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28259937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28259938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28259939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28259940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28259941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28259942, 'pht': 3726}}" where mtr_portfolio_id = 28259929 and dashboard_run_id = 2533728 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 = 28260038 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': 4009680, 'mtr_portfolio_id': 28260038, 'created_at': datetime.datetime(2025, 11, 6, 14, 2, 59), 'result': '0.045428080541055064', 'result_long': None, 'result_double': None}] Qualite : 0.045428080541055064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28260038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28260038_06-11-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28260038 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_P28260038_06-11-2025_14_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28260046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28260047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28260048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28260049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28260050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28260051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28260052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28260053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28260054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28260055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28260056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28260057, 'pht': 3726}}" where mtr_portfolio_id = 28260038 and dashboard_run_id = 2533728 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`=28260038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16912759, 0.045428080541055064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28260038_06-11-2025_14_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28260046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28260047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28260048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28260049, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28260050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28260051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28260052, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28260053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28260054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28260055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28260056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28260057, '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 (28235530,28236103,28236743,28237598,28238626,28238993,28239478,28240182,28240665,28241219,28241637,28242271,28242801,28243336,28243673,28244797,28245167,28245512,28245909,28246351,28246960,28247409,28247994,28248408,28249257,28250026,28250644,28251339,28251974,28252624,28253363,28259929,28260038) result : ((1392868064,), (1392868096,), (1392868546,), (1392868547,), (1392868548,), (1392868550,), (1392868552,), (1392868570,), (1392868800,), (1392868803,), (1392868806,), (1392868808,), (1392868847,), (1392868848,), (1392868849,), (1392868852,), (1392868874,), (1392868878,), (1392868882,), (1392868887,), (1392868920,), (1392868922,), (1392868924,), (1392868928,), (1392868948,), (1392868951,), (1392868954,), (1392868959,), (1392869045,), (1392869047,), (1392869049,), (1392869337,), (1392869370,), (1392869377,), (1392869378,), (1392869380,), (1392869740,), (1392869772,), (1392869809,), (1392869847,), (1392869885,), (1392870264,), (1392870336,), (1392870397,), (1392870470,), (1392870537,), (1392870608,), (1392870940,), (1392870974,), (1392871039,), (1392871079,), (1392871119,), (1392871220,), (1392871575,), (1392871585,), (1392871601,), (1392871606,), (1392871614,), (1392871627,), (1392871645,), (1392871648,), (1392871665,), (1392871671,), (1392871681,), (1392871683,), (1392871685,), (1392871695,), (1392872166,), (1392872065,), (1392872100,), (1392872134,), (1392872254,), (1392872286,), (1392872320,), (1392872352,), (1392872384,), (1392872388,), (1392872495,), (1392872499,), (1392872508,), (1392872510,), (1392872514,), (1392872727,), (1392872760,), (1392872795,), (1392872825,), (1392873078,), (1392873368,), (1392874542,), (1392874554,), (1392874557,), (1392874719,), (1392874751,), (1392874786,), (1392874818,), (1392874846,), (1392874927,), (1392874928,), (1392874929,), (1392874930,), (1392874956,), (1392874957,), (1392874958,), (1392874960,), (1392874963,), (1392875495,), (1392875496,), (1392875498,), (1392875499,), (1392875500,), (1392875525,), (1392875360,), (1392875395,), (1392875427,), (1392875458,), (1392875492,), (1392875685,), (1392875686,), (1392875726,), (1392875728,), (1392875741,), (1392875742,), (1392875755,), (1392875761,), (1392875784,), (1392875786,), (1392875826,), (1392875827,), (1392875830,), (1392875861,), (1392875862,), (1392875863,), (1392875864,), (1392875886,), (1392875888,), (1392875889,), (1392875890,), (1392875910,), (1392875917,), (1392875925,), (1392875929,), (1392875974,), (1392875975,), (1392875976,), (1392876398,), (1392876430,), (1392876461,), (1392876494,), (1392876527,), (1392876889,), (1392876890,), (1392876891,), (1392877153,), (1392877162,), (1392877163,), (1392877165,), (1392877296,), (1392877298,), (1392877300,), (1392877328,), (1392877330,), (1392877331,), (1392877332,), (1392877334,), (1392877505,), (1392877539,), (1392877576,), (1392877611,), (1392877660,), (1392877966,), (1392878056,), (1392878059,), (1392878211,), (1392878238,), (1392880532,), (1392879416,), (1392880467,), (1392880499,), (1392880527,), (1392880663,), (1392880666,), (1392880669,), (1392880671,), (1392880674,), (1392880718,), (1392880720,), (1392880722,), (1392880723,), (1392880725,), (1392880791,), (1392880825,), (1392880857,), (1392880888,), (1392881139,), (1392881140,), (1392881156,), (1392881190,), (1392881228,), (1392881263,), (1392881342,), (1392881362,), (1392881368,), (1392881376,), (1392881377,), (1392881380,), (1392881383,), (1392881386,), (1392881389,), (1392881416,), (1392881453,), (1392881496,), (1392881848,), (1392881855,), (1392881858,), (1392881865,), (1392882074,), (1392882078,), (1392882193,), (1392882231,), (1392882267,), (1392882300,), (1392882335,), (1392882513,), (1392884294,), (1392884296,), (1392884315,), (1392884317,), (1392884319,), (1392884321,), (1392884355,), (1392884357,), (1392884358,), (1392884382,), (1392884384,), (1392884386,), (1392884388,), (1392884390,), (1392884413,), (1392884414,), (1392884415,), (1392884416,), (1392884419,), (1392884481,), (1392884483,), (1392884485,), (1392884508,), (1392884509,), (1392884510,), (1392884511,), (1392884538,), (1392884541,), (1392884543,), (1392884546,), (1392884549,), (1392884561,), (1392884562,), (1392884563,), (1392884564,), (1392884567,), (1392884602,), (1392884604,), (1392884643,), (1392884889,), (1392884890,), (1392884891,), (1392884893,), (1392884919,), (1392884921,), (1392884922,), (1392884925,), (1392884928,), (1392884931,), (1392884944,), (1392884945,), (1392884946,), (1392884947,), (1392884986,), (1392884977,), (1392884979,), (1392884981,), (1392884983,), (1392885005,), (1392885006,), (1392885007,), (1392885009,), (1392885012,), (1392885090,), (1392885092,), (1392885094,), (1392885113,), (1392885116,), (1392885119,), (1392885123,), (1392885127,), (1392885152,), (1392885154,), (1392885155,), (1392885157,), (1392885159,), (1392885162,), (1392885172,), (1392885174,), (1392885176,), (1392885178,), (1392885218,), (1392885220,), (1392885221,), (1392885223,), (1392885279,), (1392885282,), (1392885284,), (1392885286,), (1392885289,), (1392885312,), (1392885314,), (1392885318,), (1392885321,), (1392885326,), (1392885354,), (1392885356,), (1392885358,), (1392885360,), (1392885384,), (1392885387,), (1392885390,), (1392885393,), (1392885406,), (1392885408,), (1392885410,), (1392885412,), (1392885494,), (1392885497,), (1392885899,), (1392885918,), (1392885925,), (1392885929,), (1392885933,), (1392885943,), (1392885973,), (1392885967,), (1392885972,), (1392886144,), (1392886731,), (1392886847,), (1392886848,), (1392886851,), (1392887532,), (1392887568,), (1392887631,), (1392887668,), (1392887918,), (1392887952,), (1392888006,), (1392888064,), (1392888408,), (1392888437,), (1392888457,), (1392888469,), (1392888559,), (1392888561,), (1392888562,), (1392888768,), (1392888777,), (1392888780,), (1392888784,), (1392888790,), (1392888980,), (1392888983,), (1392888986,), (1392888989,), (1392889014,), (1392889016,), (1392889017,), (1392889018,), (1392889022,), (1392889053,), (1392889055,), (1392889066,), (1392889069,), (1392889133,), (1392889170,), (1392889201,), (1392889232,), (1392889271,), (1392889303,), (1392889561,), (1392889563,), (1392889565,), (1392889566,), (1392889675,), (1392889708,), (1392889740,), (1392889772,), (1392889806,), (1392890002,), (1392889977,), (1392889991,), (1392889994,), (1392889998,), (1392890023,), (1392890025,), (1392890027,), (1392890030,), (1392890102,), (1392890105,), (1392890134,), (1392890135,), (1392890136,), (1392890138,), (1392890165,), (1392890167,), (1392890169,), (1392890172,), (1392890176,), (1392890200,), (1392890202,), (1392890203,), (1392890204,), (1392890207,), (1392890235,), (1392890237,), (1392890239,), (1392890401,), (1392890402,), (1392890403,), (1392890405,), (1392890407,), (1392890443,), (1392890444,), (1392890446,), (1392890450,), (1392890454,), (1392890471,), (1392890473,), (1392890475,), (1392890479,), (1392890484,), (1392890536,), (1392890538,), (1392890540,), (1392890542,), (1392890546,), (1392890549,), (1392890566,), (1392890570,), (1392890572,), (1392890574,), (1392890600,), (1392890601,), (1392890602,), (1392890605,), (1392890610,), (1392890615,), (1392890650,), (1392890652,), (1392890669,), (1392890672,), (1392890677,), (1392890679,), (1392890683,), (1392890638,), (1392890641,), (1392890644,), (1392890647,), (1392890708,), (1392890716,), (1392890719,), (1392890728,), (1392890738,), (1392890745,), (1392890768,), (1392890770,), (1392890771,), (1392891025,), (1392891057,), (1392891088,), (1392891121,), (1392891157,), (1392891358,), (1392891360,), (1392891362,), (1392891379,), (1392891410,), (1392891447,), (1392891640,), (1392891644,), (1392891645,), (1392891647,), (1392891675,), (1392891679,), (1392891682,), (1392891686,), (1392891763,), (1392891765,), (1392891767,), (1392891776,), (1392891815,), (1392891817,), (1392891819,), (1392891821,), (1392891825,), (1392891850,), (1392891851,), (1392891852,), (1392891855,), (1392891879,), (1392891882,), (1392891883,), (1392891886,), (1392891890,), (1392891894,), (1392891917,), (1392891922,), (1392891932,), (1392891942,), (1392891949,), (1392892001,), (1392892002,), (1392892003,), (1392892006,), (1392892041,), (1392892044,), (1392892047,), (1392892051,), (1392892054,), (1392892058,), (1392892083,), (1392892084,), (1392892086,), (1392892087,), (1392892089,), (1392892090,), (1392892127,), (1392892123,), (1392892124,), (1392892125,), (1392892149,), (1392892151,), (1392892153,), (1392892156,), (1392892160,), (1392892231,), (1392892233,), (1392892235,), (1392892238,), (1392892271,), (1392892273,), (1392892275,), (1392892278,), (1392892283,), (1392892286,), (1392892310,), (1392892312,), (1392892314,), (1392892319,), (1392892324,), (1392892341,), (1392892344,), (1392892346,), (1392892349,), (1392892353,), (1392892356,), (1392892400,), (1392892406,), (1392892414,), (1392892416,), (1392892419,), (1392892483,), (1392892484,), (1392892485,), (1392892487,), (1392892490,), (1392892493,), (1392892527,), (1392892529,), (1392892531,), (1392892534,), (1392892561,), (1392892563,), (1392892564,), (1392892565,), (1392892567,), (1392892568,), (1392892587,), (1392892589,), (1392892591,), (1392892595,), (1392892600,), (1392892615,), (1392892621,), (1392892624,), (1392892628,), (1392892631,), (1392892641,), (1392892721,), (1392892728,), (1392892729,), (1392892731,), (1392892846,), (1392892882,), (1392892916,), (1392892956,), (1392892992,), (1392893407,), (1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,), (1392895701,), (1392895708,), (1392895710,), (1392895713,), (1392895717,), (1392895738,), (1392895742,), (1392895745,), (1392895748,), (1392895753,), (1392895757,), (1392895799,), (1392895794,), (1392895796,), (1392895797,), (1392895818,), (1392895819,), (1392895820,), (1392895823,), (1392895826,), (1392895828,), (1392895880,), (1392895883,), (1392895884,), (1392895886,), (1392895889,), (1392895912,), (1392895915,), (1392895917,), (1392895920,), (1392895953,), (1392895962,), (1392895963,), (1392895965,), (1392895996,), (1392896005,), (1392896007,), (1392896010,), (1392896015,), (1392896043,), (1392896045,), (1392896048,), (1392896057,), (1392896067,), (1392896097,), (1392896098,), (1392896099,), (1392896101,), (1392896105,), (1392896136,), (1392896138,), (1392896139,), (1392896142,), (1392896147,), (1392896150,), (1392896178,), (1392896180,), (1392896183,), (1392896187,), (1392896219,), (1392896221,), (1392896223,), (1392896226,), (1392896230,), (1392896248,), (1392896249,), (1392896250,), (1392896252,), (1392896256,), (1392896357,), (1392896359,), (1392896362,), (1392896366,), (1392896371,), (1392896398,), (1392896400,), (1392896401,), (1392896402,), (1392896403,), (1392896406,), (1392896440,), (1392896447,), (1392896449,), (1392896451,), (1392896491,), (1392896495,), (1392896500,), (1392896503,), (1392896506,), (1392896480,), (1392896482,), (1392896484,), (1392896487,), (1392896519,), (1392896520,), (1392896522,), (1392896526,), (1392896538,), (1392896599,), (1392896600,), (1392896601,), (1392896603,), (1392896606,), (1392896630,), (1392896639,), (1392896662,), (1392896692,), (1392896693,), (1392896694,), (1392896696,), (1392896700,), (1392896733,), (1392896737,), (1392896740,), (1392896742,), (1392896746,), (1392896764,), (1392896856,), (1392896858,), (1392896860,), (1392896863,), (1392896866,), (1392896868,), (1392896876,), (1392896880,), (1392896883,), (1392896891,), (1392896893,), (1392896894,), (1392896898,), (1392896900,), (1392896904,), (1392896925,), (1392896927,), (1392896930,), (1392896934,), (1392896938,), (1392896967,), (1392896971,), (1392896973,), (1392896976,), (1392896981,), (1392897005,), (1392897008,), (1392897009,), (1392897012,), (1392897016,), (1392897086,), (1392897098,), (1392897101,), (1392897106,), (1392897109,), (1392897123,), (1392897126,), (1392897129,), (1392897132,), (1392897137,), (1392897156,), (1392897158,), (1392897161,), (1392897166,), (1392897208,), (1392897192,), (1392897194,), (1392897196,), (1392897200,), (1392897205,), (1392897258,), (1392897262,), (1392897264,), (1392897266,), (1392897269,), (1392897325,), (1392897327,), (1392897329,), (1392897332,), (1392897334,), (1392897337,), (1392897356,), (1392897358,), (1392897360,), (1392897364,), (1392897369,), (1392897373,), (1392897393,), (1392897395,), (1392897397,), (1392897401,), (1392897406,), (1392897426,), (1392897428,), (1392897429,), (1392897432,), (1392897466,), (1392897467,), (1392897468,), (1392897471,), (1392897482,), (1392897492,), (1392897552,), (1392897554,), (1392897556,), (1392897559,), (1392897563,), (1392897586,), (1392897588,), (1392897589,), (1392897591,), (1392897593,), (1392897596,), (1392897616,), (1392897620,), (1392897624,), (1392897656,), (1392897659,), (1392897663,), (1392897668,), (1392897686,), (1392897687,), (1392897688,), (1392897689,), (1392897772,), (1392897774,), (1392897776,), (1392897780,), (1392897807,), (1392897810,), (1392897815,), (1392897820,), (1392897824,), (1392897828,), (1392898505,), (1392898308,), (1392898380,), (1392898444,), (1392899464,), (1392899538,), (1392899600,), (1392899655,), (1392899691,), (1392899729,), (1392900243,), (1392900298,), (1392900341,), (1392900345,), (1392900536,), (1392900540,), (1392901280,), (1392901475,), (1392901477,), (1392901478,), (1392901480,), (1392901483,), (1392901582,), (1392901584,), (1392901586,), (1392901589,), (1392901614,), (1392901616,), (1392901618,), (1392901620,), (1392901624,), (1392901660,), (1392901663,), (1392901666,), (1392901698,), (1392901699,), (1392901700,), (1392901703,), (1392901707,), (1392901736,), (1392901739,), (1392901749,), (1392905152,), (1392905084,), (1392906770,), (1392906946,), (1392906981,), (1392907026,), (1392907050,), (1392907149,), (1392907151,), (1392907154,), (1392907156,), (1392907160,), (1392907173,), (1392907261,), (1392907263,), (1392907264,), (1392907266,), (1392907269,), (1392907271,), (1392907298,), (1392907299,), (1392907310,), (1392907316,), (1392907344,), (1392907347,), (1392907356,), (1392907359,), (1392907403,), (1392907405,), (1392907407,), (1392907410,), (1392907415,), (1392907420,), (1392907497,), (1392907499,), (1392907502,), (1392907506,), (1392907536,), (1392907537,), (1392907538,), (1392907540,), (1392907544,), (1392907547,), (1392907563,), (1392907569,), (1392907572,), (1392907576,), (1392907615,), (1392907605,), (1392907608,), (1392907610,), (1392907612,), (1392908012,), (1392908055,), (1392908057,), (1392908058,), (1392908059,), (1392908062,), (1392908066,), (1392908082,), (1392908085,), (1392908087,), (1392908090,), (1392908094,), (1392908111,), (1392908114,), (1392908117,), (1392908120,), (1392908190,), (1392908191,), (1392908192,), (1392908195,), (1392908200,), (1392908217,), (1392908219,), (1392908221,), (1392908223,), (1392908226,), (1392908228,), (1392908260,), (1392908262,), (1392908263,), (1392908264,), (1392908267,), (1392908335,), (1392908339,), (1392908343,), (1392908353,), (1392908365,), (1392908367,), (1392908327,), (1392908330,), (1392908381,), (1392908389,), (1392908392,), (1392908396,), (1392908401,), (1392908474,), (1392908475,), (1392908478,), (1392908480,), (1392908482,), (1392908485,), (1392908519,), (1392908520,), (1392908521,), (1392908524,), (1392908528,), (1392908542,), (1392908544,), (1392908546,), (1392908548,), (1392908552,), (1392908555,), (1392908594,), (1392908597,), (1392908600,), (1392908626,), (1392908628,), (1392908630,), (1392908634,), (1392908640,), (1392908663,), (1392908796,), (1392908798,), (1392908800,), (1392908802,), (1392908826,), (1392908829,), (1392908831,), (1392908834,), (1392908838,), (1392908840,), (1392908883,), (1392908887,), (1392908888,), (1392908908,), (1392908911,), (1392908915,), (1392908921,), (1392908924,), (1392908952,), (1392908956,), (1392908959,), (1392908970,), (1392908981,), (1392908996,), (1392908999,), (1392909037,), (1392909039,), (1392909041,), (1392909045,), (1392909050,), (1392909064,), (1392909067,), (1392909069,), (1392909071,), (1392909075,), (1392909114,), (1392909112,), (1392909113,), (1392909140,), (1392909142,), (1392909144,), (1392909147,), (1392909150,), (1392909154,), (1392909250,), (1392909251,), (1392909252,), (1392909255,), (1392909258,), (1392909262,), (1392909280,), (1392909282,), (1392909284,), (1392909334,), (1392909340,), (1392909343,), (1392909346,), (1392909351,), (1392909355,), (1392909371,), (1392909372,), (1392909373,), (1392909376,), (1392909381,), (1392909405,), (1392909408,), (1392909410,), (1392909412,), (1392909415,), (1392909417,), (1392909465,), (1392909466,), (1392909467,), (1392909469,), (1392909500,), (1392909502,), (1392909504,), (1392909507,), (1392909531,), (1392909534,), (1392909537,), (1392909574,), (1392909577,), (1392909579,), (1392909583,), (1392909587,), (1392909589,), (1392909606,), (1392909607,), (1392909608,), (1392909609,), (1392909612,), (1392909868,), (1392909871,), (1392909873,), (1392909876,), (1392909880,), (1392910294,), (1392910306,), (1392910342,), (1392910379,), (1392910442,), (1392910436,), (1392910440,), (1392910441,), (1392910467,), (1392910468,), (1392910469,), (1392910471,), (1392910475,), (1392910666,), (1392910698,), (1392910734,), (1392910769,), (1392910804,), (1392911173,), (1392911213,), (1392911246,), (1392911280,), (1392911671,), (1392911703,), (1392911734,), (1392911768,), (1392911853,), (1392911855,), (1392911856,), (1392911859,), (1392911863,), (1392911884,), (1392912141,), (1392912150,), (1392912189,), (1392912204,), (1392912352,), (1392912355,), (1392912357,), (1392912360,), (1392912383,), (1392912384,), (1392912385,), (1392912387,), (1392912390,), (1392912393,), (1392912434,), (1392912436,), (1392912438,), (1392912440,), (1392912444,), (1392912449,), (1392912466,), (1392912469,), (1392912471,), (1392912504,), (1392912506,), (1392912507,), (1392912510,), (1392912515,), (1392912519,), (1392912598,), (1392912600,), (1392912602,), (1392912604,), (1392912642,), (1392912644,), (1392912645,), (1392912671,), (1392912673,), (1392912674,), (1392912676,), (1392912680,), (1392912719,), (1392912702,), (1392912704,), (1392912706,), (1392912710,), (1392912715,), (1392912739,), (1392912741,), (1392912744,), (1392912757,), (1392912824,), (1392912827,), (1392912830,), (1392912833,), (1392912836,), (1392912839,), (1392912858,), (1392912859,), (1392912861,), (1392912864,), (1392912869,), (1392912898,), (1392912900,), (1392912902,), (1392912938,), (1392912942,), (1392912943,), (1392912944,), (1392912948,), (1392912972,), (1392912973,), (1392913066,), (1392913070,), (1392913074,), (1392913079,), (1392913083,), (1392913086,), (1392913109,), (1392913110,), (1392913111,), (1392913113,), (1392913144,), (1392913147,), (1392913148,), (1392913151,), (1392913153,), (1392913189,), (1392913193,), (1392913194,), (1392913195,), (1392913199,), (1392913203,), (1392913225,), (1392913228,), (1392913230,), (1392913334,), (1392913335,), (1392913336,), (1392913339,), (1392913343,), (1392913348,), (1392913363,), (1392913376,), (1392913379,), (1392913382,), (1392913387,), (1392913412,), (1392913415,), (1392913418,), (1392913460,), (1392913450,), (1392913452,), (1392913454,), (1392913456,), (1392913488,), (1392913492,), (1392913495,), (1392913499,), (1392913503,), (1392913506,), (1392913526,), (1392913528,), (1392913530,), (1392913550,), (1392913552,), (1392913554,), (1392913557,), (1392913561,), (1392913564,), (1392913598,), (1392913600,), (1392913601,), (1392913603,), (1392913630,), (1392913632,), (1392913634,), (1392913637,), (1392913682,), (1392913684,), (1392913687,), (1392913692,), (1392913696,), (1392913753,), (1392913756,), (1392913759,), (1392913786,), (1392913788,), (1392913789,), (1392913790,), (1392913793,), (1392913795,), (1392913822,), (1392913824,), (1392913826,), (1392913828,), (1392913832,), (1392913836,), (1392913859,), (1392913862,), (1392913865,), (1392913869,), (1392913905,), (1392913907,), (1392913909,), (1392913918,), (1392913995,), (1392913997,), (1392913999,), (1392914002,), (1392914006,), (1392914010,), (1392914035,), (1392914038,), (1392914041,), (1392914072,), (1392914075,), (1392914076,), (1392914077,), (1392914079,), (1392914129,), (1392914112,), (1392914119,), (1392914124,), (1392914126,), (1392914174,), (1392914181,), (1392914183,), (1392914186,), (1392914225,), (1392914228,), (1392914230,), (1392914256,), (1392914257,), (1392914258,), (1392914291,), (1392914294,), (1392914296,), (1392914300,), (1392914304,), (1392914320,), (1392914323,), (1392914326,), (1392914366,), (1392914426,), (1392914473,), (1392914475,), (1392914507,), (1392914510,), (1392914513,), (1392914516,), (1392914543,), (1392914547,), (1392914551,), (1392914556,), (1392914561,), (1392914600,), (1392914602,), (1392914604,), (1392914607,), (1392914611,), (1392914614,), (1392914651,), (1392914653,), (1392914655,), (1392914657,), (1392914688,), (1392914693,), (1392914697,), (1392914701,), (1392914711,), (1392914712,), (1392914714,), (1392914715,), (1392914718,), (1392914719,), (1392914722,), (1392914723,), (1392914751,), (1392914743,), (1392914745,), (1392914746,), (1392914747,), (1392914774,), (1392914776,), (1392914778,), (1392914833,), (1392914836,), (1392914872,), (1392914875,), (1392914877,), (1392914880,), (1392914884,), (1392914902,), (1392914918,), (1392914924,), (1392914934,), (1392914939,), (1392914943,), (1392914963,), (1392914974,), (1392915009,), (1392915102,), (1392915106,), (1392915134,), (1392915314,), (1392915315,), (1392915338,), (1392915342,), (1392915362,), (1392915365,), (1392915369,), (1392915401,), (1392915404,), (1392915406,), (1392915409,), (1392915413,), (1392915474,), (1392915475,), (1392915492,), (1392915517,), (1392915569,), (1392915579,), (1392915959,), (1392915962,), (1392915964,), (1392915965,), (1392915971,), (1392915974,), (1392916036,), (1392916124,), (1392916130,), (1392916136,), (1392916140,), (1392916175,), (1392916219,), (1392916235,), (1392916280,), (1392916690,), (1392916626,), (1392916662,), (1392916681,), (1392916685,), (1392916764,), (1392916898,), (1392916901,), (1392916903,), (1392916906,), (1392916940,), (1392916942,), (1392917406,), (1392917408,), (1392917454,), (1392917498,), (1392917534,), (1392917657,), (1392917710,), (1392917713,), (1392917726,), (1392917731,), (1392917807,), (1392917809,), (1392917841,), (1392917871,), (1392917905,), (1392918039,), (1392918041,), (1392918043,), (1392918047,), (1392918072,), (1392918074,), (1392918076,), (1392918078,), (1392918082,), (1392918139,), (1392918146,), (1392918158,), (1392918348,), (1392918387,), (1392918426,), (1392918431,), (1392918234,), (1392918236,), (1392918278,), (1392918313,), (1392918439,), (1392918442,), (1392918445,), (1392918449,), (1392918453,), (1392918455,), (1392918503,), (1392918506,), (1392918508,), (1392918542,), (1392918544,), (1392918546,), (1392918549,), (1392918552,), (1392918556,), (1392918576,), (1392918579,), (1392918582,), (1392918586,), (1392918592,), (1392918761,), (1392918763,), (1392918764,), (1392918765,), (1392918794,), (1392918796,), (1392918799,), (1392918855,), (1392918858,), (1392918860,), (1392918891,), (1392918894,), (1392918896,), (1392918898,), (1392918902,), (1392918966,), (1392918967,), (1392918986,), (1392919019,), (1392919124,), (1392919126,), (1392919128,), (1392919132,), (1392919136,), (1392919138,), (1392919293,), (1392919313,), (1392919322,), (1392919326,), (1392919331,), (1392919359,), (1392919360,), (1392919362,), (1392919408,), (1392919410,), (1392919411,), (1392919414,), (1392919418,), (1392919460,), (1392919463,), (1392919466,), (1392919469,), (1392919472,), (1392919475,), (1392919534,), (1392919528,), (1392919531,), (1392919627,), (1392919629,), (1392919630,), (1392919632,), (1392919635,), (1392919639,), (1392919713,), (1392919741,), (1392919757,), (1392919764,), (1392919776,), (1392919805,), (1392919807,), (1392919808,), (1392920114,), (1392920148,), (1392920151,), (1392920157,), (1392920162,), (1392920164,), (1392920186,), (1392920190,), (1392920193,), (1392920195,), (1392920228,), (1392920229,), (1392920230,), (1392920253,), (1392920264,), (1392920268,), (1392920295,), (1392920307,), (1392920319,), (1392920328,), (1392920333,), (1392920414,), (1392920428,), (1392920433,), (1392920442,), (1392920494,), (1392920496,), (1392920499,), (1392920552,), (1392920554,), (1392920561,), (1392920571,), (1392920685,), (1392920687,), (1392920690,), (1392920849,), (1392920877,), (1392920885,), (1392920886,), (1392920888,), (1392921067,), (1392921071,), (1392921076,), (1392921079,), (1392921082,), (1392921095,), (1392921100,), (1392921110,), (1392921113,), (1392921146,), (1392921148,), (1392921150,), (1392921153,), (1392921157,), (1392921144,), (1392921169,), (1392921171,), (1392921174,), (1392921176,), (1392921180,), (1392921190,), (1392921244,), (1392921254,), (1392921259,), (1392921261,), (1392921264,), (1392921266,), (1392921662,), (1392921696,), (1392921730,), (1392921763,), (1392922168,), (1392922200,), (1392922232,), (1392922236,), (1392922240,), (1392922367,), (1392922437,), (1392922500,), (1392922562,), (1392922612,), (1392923078,), (1392923989,), (1392924022,), (1392924186,), (1392924261,), (1392924286,), (1392924291,), (1392924519,), (1392924910,), (1392924956,), (1392924983,), (1392924987,), (1392924992,), (1392925250,), (1392925323,), (1392925375,), (1392926234,), (1392926239,), (1392926243,), (1392927254,), (1392927319,), (1392927385,), (1392927428,), (1392927461,), (1392927473,), (1392927803,), (1392927670,), (1392927716,), (1392927764,), (1392928001,), (1392928003,), (1392928006,), (1392928010,), (1392928015,), (1392928018,), (1392928091,), (1392928102,), (1392928110,), (1392928111,), (1392928115,), (1392928118,), (1392928142,), (1392928144,), (1392928153,), (1392928163,), (1392928168,), (1392928383,), (1392928405,), (1392928438,), (1392928441,), (1392928444,), (1392928454,), (1392928465,), (1392928662,), (1392928943,), (1392928945,), (1392928946,), (1392928947,), (1392928986,), (1392928988,), (1392928990,), (1392928993,), (1392928997,), (1392929021,), (1392929034,), (1392929038,), (1392929080,), (1392929082,), (1392929086,), (1392929114,), (1392929115,), (1392929116,), (1392929123,), (1392929133,), (1392929189,), (1392929202,), (1392929214,), (1392929223,), (1392929230,), (1392929255,), (1392929257,), (1392929258,), (1392929262,), (1392929265,), (1392929297,), (1392929299,), (1392929301,), (1392929355,), (1392929338,), (1392929340,), (1392929348,), (1392929349,), (1392929352,), (1392929387,), (1392929394,), (1392929396,), (1392929398,), (1392929402,), (1392929518,), (1392929521,), (1392929524,), (1392929527,), (1392929533,), (1392929559,), (1392929562,), (1392929565,), (1392929597,), (1392929604,), (1392929605,), (1392929606,), (1392929610,), (1392929637,), (1392929641,), (1392929645,), (1392929650,), (1392929654,), (1392929682,), (1392929685,), (1392929695,), (1392929699,), (1392929854,), (1392929870,), (1392929877,), (1392929881,), (1392929886,), (1392929891,), (1392929954,), (1392929962,), (1392929970,), (1392930033,), (1392930035,), (1392930037,), (1392930040,), (1392930063,), (1392930065,), (1392930086,), (1392930118,), (1392930413,), (1392930415,), (1392930523,), (1392930531,), (1392930540,), (1392930544,), (1392930549,), (1392930619,), (1392930622,), (1392930625,), (1392930628,), (1392930632,), (1392930651,), (1392930661,), (1392930674,), (1392930678,), (1392930684,), (1392930764,), (1392930760,), (1392930761,), (1392930762,), (1392930828,), (1392930831,), (1392930834,), (1392930837,), (1392930841,), (1392931047,), (1392931054,), (1392931072,), (1392931075,), (1392931078,), (1392931107,), (1392931109,), (1392931111,), (1392931113,), (1392931182,), (1392931185,), (1392931188,), (1392931190,), (1392931194,), (1392931198,), (1392931295,), (1392931299,), (1392931302,), (1392931305,), (1392931308,), (1392931336,), (1392931371,), (1392931404,), (1392931590,), (1392931602,), (1392931605,), (1392931609,), (1392931689,), (1392931698,), (1392932358,), (1392932397,), (1392932414,), (1392940604,), (1392971186,), (1392971434,), (1392971481,), (1392971483,), (1392971484,), (1392971487,), (1392971495,), (1392971543,), (1392971545,), (1392971547,), (1392971550,), (1392971553,), (1392971575,), (1392971574,), (1392971613,), (1392971618,), (1392971619,), (1392971621,), (1392971623,), (1392971676,), (1392971679,), (1392971680,), (1392971681,), (1392971684,), (1392971856,), (1392971858,), (1392971871,), (1392971873,), (1392971877,), (1392972088,), (1392972123,), (1392972157,), (1392972174,), (1392972478,), (1392972479,), (1392972516,), (1392972589,), (1392972619,), (1392972666,), (1392972699,), (1392972746,), (1392972946,), (1392972947,), (1392972949,), (1392972950,), (1392972968,), (1392972969,), (1392972989,), (1392972990,), (1392972991,), (1392972992,), (1392972994,), (1392973002,), (1392973029,), (1392973031,), (1392973033,), (1392973055,), (1392973058,), (1392973081,), (1392973108,), (1392973109,), (1392973111,), (1392973168,), (1392973176,), (1392973180,), (1392973185,), (1392973471,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06112025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28260038]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392973471] map_info['map_portfolio_photo'] : {28260038: [1392973471, 1392973185, 1392973180, 1392973176, 1392973168, 1392973111, 1392973109, 1392973108, 1392973081, 1392973058, 1392973055, 1392973033, 1392973031, 1392973029, 1392973002, 1392972994, 1392972992, 1392972991, 1392972990, 1392972989, 1392972969, 1392972968, 1392972950, 1392972949, 1392972947, 1392972946, 1392972746, 1392972699, 1392972666, 1392972619, 1392972589, 1392972516, 1392972479, 1392972478, 1392972174, 1392972157, 1392972123, 1392972088, 1392971877, 1392971873, 1392971871, 1392971858, 1392971856, 1392971684, 1392971681, 1392971680, 1392971679, 1392971676, 1392971623, 1392971621, 1392971619, 1392971618, 1392971613, 1392971574]} final : True mtd_id 4302 list_pids : [1392973471] Looping around the photos to save general results len do output : 1 /28260038Didn'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, '4009680') ('4302', '28260038', '1392973471', None, None, None, None, None, '4009680') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '28260038', 'None', None, None, None, None, '4009680'), ('4302', '28260038', '1392973471', None, None, None, None, None, '4009680')] time used for this insertion : 0.017840147018432617 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1567368507385254 time spend to save output : 0.01799607276916504 total time spend for step 5 : 2.1747329235076904 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 (4009680) 1.96user 2.68system 0:10.37elapsed 44%CPU (0avgtext+0avgdata 154992maxresident)k 72inputs+7728outputs (3major+62225minor)pagefaults 0swaps