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 : 1379130 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 (3340139) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3340139) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274918 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3340139'] with mtr_portfolio_ids : ['25274918'] and first list_photo_ids : [] new path : /proc/1379130/ Name: python3 Umask: 0002 State: R (running) Tgid: 1379130 Ngid: 0 Pid: 1379130 PPid: 1379129 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1379130 NSpid: 1379130 NSpgid: 1375579 NSsid: 1375579 VmPeak: 1106892 kB VmSize: 1106892 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99296 kB VmRSS: 99296 kB RssAnon: 59816 kB RssFile: 39480 kB RssShmem: 0 kB VmData: 865644 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 56 nonvoluntary_ctxt_switches: 106 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1379130', 'Ngid': '0', 'Pid': '1379130', 'PPid': '1379129', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1379130', 'NSpid': '1379130', 'NSpgid': '1375579', 'NSsid': '1375579', 'VmPeak': '1106892 kB', 'VmSize': '1106892 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99296 kB', 'VmRSS': '99296 kB', 'RssAnon': '59816 kB', 'RssFile': '39480 kB', 'RssShmem': '0 kB', 'VmData': '865644 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '56', 'nonvoluntary_ctxt_switches': '106'} ('datou_batch_current', '1379130', '1106892', '0', '1106892', '865644', '99296', b'', 'marlene', '3340139') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25274918) 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 (3340139 ) ) 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 (25274918) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373527356, 'portfolio_id': 25274918}, {'photo_id': 1373527353, 'portfolio_id': 25274918}, {'photo_id': 1373527351, 'portfolio_id': 25274918}, {'photo_id': 1373527350, 'portfolio_id': 25274918}, {'photo_id': 1373527348, 'portfolio_id': 25274918}, {'photo_id': 1373527340, 'portfolio_id': 25274918}, {'photo_id': 1373527323, 'portfolio_id': 25274918}, {'photo_id': 1373527320, 'portfolio_id': 25274918}, {'photo_id': 1373527317, 'portfolio_id': 25274918}, {'photo_id': 1373527315, 'portfolio_id': 25274918}, {'photo_id': 1373527313, 'portfolio_id': 25274918}, {'photo_id': 1373527307, 'portfolio_id': 25274918}, {'photo_id': 1373527257, 'portfolio_id': 25274918}, {'photo_id': 1373527253, 'portfolio_id': 25274918}, {'photo_id': 1373527251, 'portfolio_id': 25274918}, {'photo_id': 1373527250, 'portfolio_id': 25274918}, {'photo_id': 1373527249, 'portfolio_id': 25274918}, {'photo_id': 1373527247, 'portfolio_id': 25274918}, {'photo_id': 1373527147, 'portfolio_id': 25274918}, {'photo_id': 1373527145, 'portfolio_id': 25274918}, {'photo_id': 1373527144, 'portfolio_id': 25274918}, {'photo_id': 1373527143, 'portfolio_id': 25274918}, {'photo_id': 1373527142, 'portfolio_id': 25274918}, {'photo_id': 1373527141, 'portfolio_id': 25274918}, {'photo_id': 1373527077, 'portfolio_id': 25274918}, {'photo_id': 1373527072, 'portfolio_id': 25274918}, {'photo_id': 1373527062, 'portfolio_id': 25274918}, {'photo_id': 1373527036, 'portfolio_id': 25274918}, {'photo_id': 1373527015, 'portfolio_id': 25274918}, {'photo_id': 1373526992, 'portfolio_id': 25274918}, {'photo_id': 1373526943, 'portfolio_id': 25274918}, {'photo_id': 1373526909, 'portfolio_id': 25274918}, {'photo_id': 1373526906, 'portfolio_id': 25274918}, {'photo_id': 1373526902, 'portfolio_id': 25274918}, {'photo_id': 1373526899, 'portfolio_id': 25274918}, {'photo_id': 1373526894, 'portfolio_id': 25274918}, {'photo_id': 1373526890, 'portfolio_id': 25274918}, {'photo_id': 1373526832, 'portfolio_id': 25274918}, {'photo_id': 1373526794, 'portfolio_id': 25274918}, {'photo_id': 1373526518, 'portfolio_id': 25274918}, {'photo_id': 1373526487, 'portfolio_id': 25274918}, {'photo_id': 1373526446, 'portfolio_id': 25274918}, {'photo_id': 1373526424, 'portfolio_id': 25274918}, {'photo_id': 1373526403, 'portfolio_id': 25274918}, {'photo_id': 1373526357, 'portfolio_id': 25274918}, {'photo_id': 1373526291, 'portfolio_id': 25274918}, {'photo_id': 1373526287, 'portfolio_id': 25274918}, {'photo_id': 1373526285, 'portfolio_id': 25274918}, {'photo_id': 1373526283, 'portfolio_id': 25274918}, {'photo_id': 1373526281, 'portfolio_id': 25274918}, {'photo_id': 1373526272, 'portfolio_id': 25274918}, {'photo_id': 1373526239, 'portfolio_id': 25274918}, {'photo_id': 1373526236, 'portfolio_id': 25274918}, {'photo_id': 1373526234, 'portfolio_id': 25274918}, {'photo_id': 1373526233, 'portfolio_id': 25274918}, {'photo_id': 1373526232, 'portfolio_id': 25274918}, {'photo_id': 1373526231, 'portfolio_id': 25274918}, {'photo_id': 1373526028, 'portfolio_id': 25274918}, {'photo_id': 1373526017, 'portfolio_id': 25274918}, {'photo_id': 1373526015, 'portfolio_id': 25274918}, {'photo_id': 1373526014, 'portfolio_id': 25274918}, {'photo_id': 1373526013, 'portfolio_id': 25274918}, {'photo_id': 1373526010, 'portfolio_id': 25274918}, {'photo_id': 1373525922, 'portfolio_id': 25274918}, {'photo_id': 1373525917, 'portfolio_id': 25274918}, {'photo_id': 1373525895, 'portfolio_id': 25274918}, {'photo_id': 1373525893, 'portfolio_id': 25274918}, {'photo_id': 1373525891, 'portfolio_id': 25274918}, {'photo_id': 1373525888, 'portfolio_id': 25274918}, {'photo_id': 1373525821, 'portfolio_id': 25274918}, {'photo_id': 1373525819, 'portfolio_id': 25274918}, {'photo_id': 1373525816, 'portfolio_id': 25274918}, {'photo_id': 1373525815, 'portfolio_id': 25274918}, {'photo_id': 1373525813, 'portfolio_id': 25274918}, {'photo_id': 1373525811, 'portfolio_id': 25274918}] map_portfolio_id_photo_id: {25274918: [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307, 1373527257, 1373527253, 1373527251, 1373527250, 1373527249, 1373527247, 1373527147, 1373527145, 1373527144, 1373527143, 1373527142, 1373527141, 1373527077, 1373527072, 1373527062, 1373527036, 1373527015, 1373526992, 1373526943, 1373526909, 1373526906, 1373526902, 1373526899, 1373526894, 1373526890, 1373526832, 1373526794, 1373526518, 1373526487, 1373526446, 1373526424, 1373526403, 1373526357, 1373526291, 1373526287, 1373526285, 1373526283, 1373526281, 1373526272, 1373526239, 1373526236, 1373526234, 1373526233, 1373526232, 1373526231, 1373526028, 1373526017, 1373526015, 1373526014, 1373526013, 1373526010, 1373525922, 1373525917, 1373525895, 1373525893, 1373525891, 1373525888, 1373525821, 1373525819, 1373525816, 1373525815, 1373525813, 1373525811]} ##### 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.01635265350341797 #### 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 Jul 24 13:30:55 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 (25274918) 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 : 25274918 get user id for portfolio 25274918 get sub ptf for main ptf 25274918, type 3726 and hashtags ['plastique', 'papier', 'environnement', 'flou', 'autre_refus', 'metal', 'Carton_brun', 'kraft', 'Teint_Dans_La_Masse', 'mal_croppe', 'Carton_gris', 'cartonnette'] 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`=25274918 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','flou','autre_refus','metal','Carton_brun','kraft','Teint_Dans_La_Masse','mal_croppe','Carton_gris','cartonnette')) 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`=25274918 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','flou','autre_refus','metal','Carton_brun','kraft','Teint_Dans_La_Masse','mal_croppe','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25274918, 'sub_port_id': 25274951, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048422, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'autre_refus': {'main_port_id': 25274918, 'sub_port_id': 25274952, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048423, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'metal': {'main_port_id': 25274918, 'sub_port_id': 25274953, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048424, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'Carton_brun': {'main_port_id': 25274918, 'sub_port_id': 25274954, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048425, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'Carton_gris': {'main_port_id': 25274918, 'sub_port_id': 25274955, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048426, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'plastique': {'main_port_id': 25274918, 'sub_port_id': 25274956, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048427, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25274918, 'sub_port_id': 25274957, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048428, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'mal_croppe': {'main_port_id': 25274918, 'sub_port_id': 25274958, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048429, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'papier': {'main_port_id': 25274918, 'sub_port_id': 25274959, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048430, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'kraft': {'main_port_id': 25274918, 'sub_port_id': 25274960, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048431, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'environnement': {'main_port_id': 25274918, 'sub_port_id': 25274961, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048432, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}, 'flou': {'main_port_id': 25274918, 'sub_port_id': 25274962, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048433, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25274951 , 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=25274918 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 (25274951) result : ((1373526750,), (1373526751,), (1373526753,), (1373526884,), (1373526885,), (1373526886,), (1373526887,), (1373526888,), (1373526985,), (1373526986,), (1373526987,), (1373526988,), (1373526989,), (1373526990,), (1373527308,), (1373527309,), (1373527310,), (1373527311,), (1373527312,), (1373527341,), (1373527342,), (1373527343,), (1373527344,), (1373527345,), (1373527346,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274952 , 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=25274918 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 (25274952) result : ((1373527306,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274953 , 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=25274918 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 (25274953) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274954 , 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=25274918 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 (25274954) result : ((1373526759,), (1373527347,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274955 , 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=25274918 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 (25274955) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274956 , 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=25274918 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 (25274956) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274957 , 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=25274918 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 (25274957) result : ((1373526741,), (1373526882,), (1373526883,), (1373526984,), (1373527304,), (1373527339,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274958 , 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=25274918 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 (25274958) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274959 , 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=25274918 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 (25274959) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274960 , 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=25274918 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 (25274960) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274961 , 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=25274918 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 (25274961) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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 25274962 , 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=25274918 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 (25274962) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25274918) result : ((1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) 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`=25274918 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','flou','autre_refus','metal','Carton_brun','kraft','Teint_Dans_La_Masse','mal_croppe','Carton_gris','cartonnette')) 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`=25274918 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','flou','autre_refus','metal','Carton_brun','kraft','Teint_Dans_La_Masse','mal_croppe','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 25274918, 'sub_port_id': 25274979, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048450, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'autre_refus': {'main_port_id': 25274918, 'sub_port_id': 25274980, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048451, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'metal': {'main_port_id': 25274918, 'sub_port_id': 25274981, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048452, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'Carton_brun': {'main_port_id': 25274918, 'sub_port_id': 25274982, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048453, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'Carton_gris': {'main_port_id': 25274918, 'sub_port_id': 25274983, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048454, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'plastique': {'main_port_id': 25274918, 'sub_port_id': 25274984, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048455, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 25274918, 'sub_port_id': 25274985, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048456, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'mal_croppe': {'main_port_id': 25274918, 'sub_port_id': 25274986, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048457, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'papier': {'main_port_id': 25274918, 'sub_port_id': 25274987, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048458, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'kraft': {'main_port_id': 25274918, 'sub_port_id': 25274988, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048459, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'environnement': {'main_port_id': 25274918, 'sub_port_id': 25274989, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048460, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}, 'flou': {'main_port_id': 25274918, 'sub_port_id': 25274990, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17048461, 'last_updated_at': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 13, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 13, 17, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274957 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274986,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274987,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274959 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274988,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274960 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274989,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274961 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25274990,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25274962 lien utilise dans velours : https://www.fotonower.com/velours/25274979,25274980,25274981,25274982,25274983,25274984,25274985,25274986,25274987,25274988,25274989,25274990?tags=cartonnette,autre_refus,metal,Carton_brun,Carton_gris,plastique,Teint_Dans_La_Masse,mal_croppe,papier,kraft,environnement,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25274918]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] map_info['map_portfolio_photo'] : {25274918: [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307, 1373527257, 1373527253, 1373527251, 1373527250, 1373527249, 1373527247, 1373527147, 1373527145, 1373527144, 1373527143, 1373527142, 1373527141, 1373527077, 1373527072, 1373527062, 1373527036, 1373527015, 1373526992, 1373526943, 1373526909, 1373526906, 1373526902, 1373526899, 1373526894, 1373526890, 1373526832, 1373526794, 1373526518, 1373526487, 1373526446, 1373526424, 1373526403, 1373526357, 1373526291, 1373526287, 1373526285, 1373526283, 1373526281, 1373526272, 1373526239, 1373526236, 1373526234, 1373526233, 1373526232, 1373526231, 1373526028, 1373526017, 1373526015, 1373526014, 1373526013, 1373526010, 1373525922, 1373525917, 1373525895, 1373525893, 1373525891, 1373525888, 1373525821, 1373525819, 1373525816, 1373525815, 1373525813, 1373525811]} final : False mtd_id 4302 list_pids : [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] Looping around the photos to save general results len do output : 1 /25274918. 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, '3340139') ('4302', '25274918', '1373527356', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527353', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527351', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527350', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527348', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527340', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527323', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527320', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527317', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527315', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527313', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527307', None, None, None, None, None, '3340139') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25274918', "{'cartonnette': 25274951, 'autre_refus': 25274952, 'metal': 25274953, 'Carton_brun': 25274954, 'Carton_gris': 25274955, 'plastique': 25274956, 'Teint_Dans_La_Masse': 25274957, 'mal_croppe': 25274958, 'papier': 25274959, 'kraft': 25274960, 'environnement': 25274961, 'flou': 25274962}", None, None, None, None, '3340139'), ('4302', '25274918', '1373527356', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527353', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527351', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527350', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527348', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527340', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527323', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527320', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527317', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527315', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527313', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527307', None, None, None, None, None, '3340139')] time used for this insertion : 0.015962839126586914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5414350032806396 time spend to save output : 0.016286611557006836 total time spend for step 1 : 1.5577216148376465 step2:final Thu Jul 24 13:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (25274918) 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 25274918 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373525821,1373525819,1373525816,1373525815,1373525813,1373525811,1373525922,1373525917,1373525895,1373525893,1373525891,1373525888,1373526028,1373526017,1373526015,1373526014,1373526013,1373526010,1373526239,1373526236,1373526234,1373526233,1373526232,1373526231,1373526291,1373526287,1373526285,1373526283,1373526281,1373526272,1373526518,1373526487,1373526446,1373526424,1373526403,1373526357,1373526794,1373526832,1373526909,1373526906,1373526902,1373526899,1373526894,1373526890,1373526943,1373527077,1373527072,1373527062,1373527036,1373527015,1373526992,1373527147,1373527145,1373527144,1373527143,1373527142,1373527141,1373527257,1373527253,1373527251,1373527250,1373527249,1373527247,1373527323,1373527320,1373527317,1373527315,1373527313,1373527307,1373527356,1373527353,1373527351,1373527350,1373527348,1373527340); 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([25274918]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} new output for save of step final : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] map_info['map_portfolio_photo'] : {25274918: [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307, 1373527257, 1373527253, 1373527251, 1373527250, 1373527249, 1373527247, 1373527147, 1373527145, 1373527144, 1373527143, 1373527142, 1373527141, 1373527077, 1373527072, 1373527062, 1373527036, 1373527015, 1373526992, 1373526943, 1373526909, 1373526906, 1373526902, 1373526899, 1373526894, 1373526890, 1373526832, 1373526794, 1373526518, 1373526487, 1373526446, 1373526424, 1373526403, 1373526357, 1373526291, 1373526287, 1373526285, 1373526283, 1373526281, 1373526272, 1373526239, 1373526236, 1373526234, 1373526233, 1373526232, 1373526231, 1373526028, 1373526017, 1373526015, 1373526014, 1373526013, 1373526010, 1373525922, 1373525917, 1373525895, 1373525893, 1373525891, 1373525888, 1373525821, 1373525819, 1373525816, 1373525815, 1373525813, 1373525811]} final : False mtd_id 4302 list_pids : [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] Looping around the photos to save general results len do output : 12 /1373527356.Didn't retrieve data . /1373527353.Didn't retrieve data . /1373527351.Didn't retrieve data . /1373527350.Didn't retrieve data . /1373527348.Didn't retrieve data . /1373527340.Didn't retrieve data . /1373527323.Didn't retrieve data . /1373527320.Didn't retrieve data . /1373527317.Didn't retrieve data . /1373527315.Didn't retrieve data . /1373527313.Didn't retrieve data . /1373527307.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, '3340139') ('4302', '25274918', '1373527356', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527353', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527351', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527350', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527348', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527340', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527323', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527320', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527317', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527315', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527313', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527307', None, None, None, None, None, '3340139') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25274918', '1373527356', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527353', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527351', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527350', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527348', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527340', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527323', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527320', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527317', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527315', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527313', '0.03622923969417204', None, None, None, None, '3340139'), ('4302', '25274918', '1373527307', '0.03622923969417204', None, None, None, None, '3340139')] time used for this insertion : 0.014127016067504883 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06954026222229004 time spend to save output : 0.014775991439819336 total time spend for step 2 : 0.08431625366210938 step3:velours_tree Thu Jul 24 13:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25274918: [{'cartonnette': 25274951, 'autre_refus': 25274952, 'metal': 25274953, 'Carton_brun': 25274954, 'Carton_gris': 25274955, 'plastique': 25274956, 'Teint_Dans_La_Masse': 25274957, 'mal_croppe': 25274958, 'papier': 25274959, 'kraft': 25274960, 'environnement': 25274961, 'flou': 25274962}]} input_args_next_step : {25274918: ()} output_args : {25274918: [{'cartonnette': 25274951, 'autre_refus': 25274952, 'metal': 25274953, 'Carton_brun': 25274954, 'Carton_gris': 25274955, 'plastique': 25274956, 'Teint_Dans_La_Masse': 25274957, 'mal_croppe': 25274958, 'papier': 25274959, 'kraft': 25274960, 'environnement': 25274961, 'flou': 25274962}]} args : 25274918 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 : ({'cartonnette': 25274951, 'autre_refus': 25274952, 'metal': 25274953, 'Carton_brun': 25274954, 'Carton_gris': 25274955, 'plastique': 25274956, 'Teint_Dans_La_Masse': 25274957, 'mal_croppe': 25274958, 'papier': 25274959, 'kraft': 25274960, 'environnement': 25274961, 'flou': 25274962},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25274918) 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([25274918]) 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.3497731685638428 time spend to save output : 4.9591064453125e-05 total time spend for step 3 : 0.3498227596282959 step4:send_mail_cod Thu Jul 24 13:30:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} input_args_next_step : {1373527356: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527356 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527353 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527351 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527350 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527348 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527340 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527323 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527320 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527317 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527315 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527313 depend.output_id : 0 input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ()} output_args : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',)} args : 1373527307 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25274918: [{'cartonnette': 25274951, 'autre_refus': 25274952, 'metal': 25274953, 'Carton_brun': 25274954, 'Carton_gris': 25274955, 'plastique': 25274956, 'Teint_Dans_La_Masse': 25274957, 'mal_croppe': 25274958, 'papier': 25274959, 'kraft': 25274960, 'environnement': 25274961, 'flou': 25274962}]} input_args_next_step : {1373527356: ('0.03622923969417204',), 1373527353: ('0.03622923969417204',), 1373527351: ('0.03622923969417204',), 1373527350: ('0.03622923969417204',), 1373527348: ('0.03622923969417204',), 1373527340: ('0.03622923969417204',), 1373527323: ('0.03622923969417204',), 1373527320: ('0.03622923969417204',), 1373527317: ('0.03622923969417204',), 1373527315: ('0.03622923969417204',), 1373527313: ('0.03622923969417204',), 1373527307: ('0.03622923969417204',), 25274918: ()} output_args : {25274918: [{'cartonnette': 25274951, 'autre_refus': 25274952, 'metal': 25274953, 'Carton_brun': 25274954, 'Carton_gris': 25274955, 'plastique': 25274956, 'Teint_Dans_La_Masse': 25274957, 'mal_croppe': 25274958, 'papier': 25274959, 'kraft': 25274960, 'environnement': 25274961, 'flou': 25274962}]} args : 25274918 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 :13, first value : ('0.03622923969417204',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25274918) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1373527356,1373527353,1373527351,1373527350,1373527348,1373527340,1373527323,1373527320,1373527317,1373527315,1373527313,1373527307) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373527307 begin to download photo : 1373527317 begin to download photo : 1373527340 begin to download photo : 1373527351 download finish for photo 1373527317 begin to download photo : 1373527320 download finish for photo 1373527351 begin to download photo : 1373527353 download finish for photo 1373527340 begin to download photo : 1373527348 download finish for photo 1373527307 begin to download photo : 1373527313 download finish for photo 1373527320 begin to download photo : 1373527323 download finish for photo 1373527348 begin to download photo : 1373527350 download finish for photo 1373527313 begin to download photo : 1373527315 download finish for photo 1373527353 begin to download photo : 1373527356 download finish for photo 1373527323 download finish for photo 1373527350 download finish for photo 1373527315 download finish for photo 1373527356 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25274918_24-07-2025_13_30_58.pdf 25274951 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373526989: '1753356324_3438470_1373526272_32b19ba000901bce55c993c1843adab9_rle_crop_3892531253_0.png', 1373527346: '1753356567_3447023_1373526010_81189403652aca4ee17fbeea7b37d4cc_rle_crop_3892535548_0.png', 1373527345: '1753356567_3447023_1373526013_ebbea3487ae99d37efefc196209ba528_rle_crop_3892535536_0.png', 1373527344: '1753356567_3447023_1373526014_fe44c8b42fa98125ad13596cd9663dd7_rle_crop_3892535528_0.png', 1373527343: '1753356567_3447023_1373526015_2d713da03d47ab645d8bdc92e634f104_rle_crop_3892535515_0.png', 1373527342: '1753356567_3447023_1373526017_38a9eba9704f54489b7f3b60737cbb44_rle_crop_3892535510_0.png', 1373527341: '1753356567_3447023_1373526028_b4bd0a641c271a745cdcda5ff141f413_rle_crop_3892535496_0.png', 1373527312: '1753356506_3445691_1373526403_fa69cc7f35ccd6c9161a498e16928110_rle_crop_3892533769_0.png', 1373527311: '1753356506_3445691_1373526424_59756b74c9f9fa700dd4088aac2843ca_rle_crop_3892533757_0.png', 1373527310: '1753356506_3445691_1373526446_ab118d2ff498baa4b4570555b9ddeda6_rle_crop_3892533743_0.png', 1373527309: '1753356506_3445691_1373526487_bd81c7fa81022db953727d0cbe1ce7af_rle_crop_3892533730_0.png', 1373527308: '1753356506_3445691_1373526518_8ffa79b4951f9f0c001688ed75742bd9_rle_crop_3892533722_0.png', 1373526990: '1753356324_3438470_1373526272_32b19ba000901bce55c993c1843adab9_rle_crop_3892531254_0.png', 1373526750: '1753356085_3426516_1373525895_e53441dbd2a246e578fbf62ebe7a7bc5_rle_crop_3892529597_0.png', 1373526988: '1753356324_3438470_1373526281_c2c45ad54d83897c109abb2778f059fd_rle_crop_3892531246_0.png', 1373526987: '1753356324_3438470_1373526283_222f317a3f161ba5c8e5b56e2d0d7151_rle_crop_3892531237_0.png', 1373526986: '1753356324_3438470_1373526285_4eb00b0a83cdab7140bb27499bd98fc7_rle_crop_3892531225_0.png', 1373526985: '1753356324_3438470_1373526287_987362f5b964d5204cf134ad314fe302_rle_crop_3892531212_0.png', 1373526888: '1753356205_3432494_1373526231_1a84f956aad2ec6208c7a67cda8b4c55_rle_crop_3892530627_0.png', 1373526887: '1753356205_3432494_1373526232_c907f98f191c9d7523b6c1c6c9b44878_rle_crop_3892530619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/84e652a778fc86fab1cb5f035373315b_51200887.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/cc9315eacefcb526aaa62f13f4ddf209_79766121.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/8abcffe0d1c669e4d96226409e24208b_63173260.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/54b71dde6ddddb3f247fcf2c864477a2_57650643.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/2b1e4d08425f0f508ebac440a4bc0f77_62390869.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/21908afb0a1e7628da7a5b5734a2038f_59480205.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/931eb629c189d781ad018038f8b54cc9_87582078.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/488ce29883d180e1a7b7329dd588d3de_79785231.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/83616bb0a403b8a387622f22acecb5ee_59255729.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f565bfd86272570e86e13f6e98f458d8_94982024.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/d26a75f27157e43b13768744d49161ca_63236476.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f2ecf8b519f0c32863a33ce3e08fda7f_84913439.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/eb97dc742d3723c16561372896074223_95219340.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3970b9b034b43296c0f8f8baeb9638a8_49077825.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/ce49144418634238f2e4c4d191aaec6a_44562288.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/67a13a68989912ad91376ad2fc71f4a1_74919730.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/dd513d6b789fac88216e9f7cb99fda68_32557904.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/298e09d9f2ed9e873ba0bf049dace1cd_7722724.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3100733aac60b14b58b1126a08e63757_98782392.png change filename to text .imagette252749511753356658/ imagette252749511753356658/1753356324_3438470_1373526283_222f317a3f161ba5c8e5b56e2d0d7151_rle_crop_3892531237_0.png.png imagette252749511753356658/1753356506_3445691_1373526487_bd81c7fa81022db953727d0cbe1ce7af_rle_crop_3892533730_0.png.png imagette252749511753356658/1753356324_3438470_1373526285_4eb00b0a83cdab7140bb27499bd98fc7_rle_crop_3892531225_0.png.png imagette252749511753356658/1753356205_3432494_1373526232_c907f98f191c9d7523b6c1c6c9b44878_rle_crop_3892530619_0.png.png imagette252749511753356658/1753356506_3445691_1373526403_fa69cc7f35ccd6c9161a498e16928110_rle_crop_3892533769_0.png.png imagette252749511753356658/1753356567_3447023_1373526014_fe44c8b42fa98125ad13596cd9663dd7_rle_crop_3892535528_0.png.png imagette252749511753356658/1753356567_3447023_1373526010_81189403652aca4ee17fbeea7b37d4cc_rle_crop_3892535548_0.png.png imagette252749511753356658/1753356506_3445691_1373526446_ab118d2ff498baa4b4570555b9ddeda6_rle_crop_3892533743_0.png.png imagette252749511753356658/1753356567_3447023_1373526028_b4bd0a641c271a745cdcda5ff141f413_rle_crop_3892535496_0.png.png imagette252749511753356658/1753356567_3447023_1373526015_2d713da03d47ab645d8bdc92e634f104_rle_crop_3892535515_0.png.png imagette252749511753356658/1753356506_3445691_1373526518_8ffa79b4951f9f0c001688ed75742bd9_rle_crop_3892533722_0.png.png imagette252749511753356658/1753356205_3432494_1373526231_1a84f956aad2ec6208c7a67cda8b4c55_rle_crop_3892530627_0.png.png imagette252749511753356658/1753356324_3438470_1373526272_32b19ba000901bce55c993c1843adab9_rle_crop_3892531254_0.png.png imagette252749511753356658/1753356567_3447023_1373526013_ebbea3487ae99d37efefc196209ba528_rle_crop_3892535536_0.png.png imagette252749511753356658/1753356506_3445691_1373526424_59756b74c9f9fa700dd4088aac2843ca_rle_crop_3892533757_0.png.png imagette252749511753356658/1753356324_3438470_1373526287_987362f5b964d5204cf134ad314fe302_rle_crop_3892531212_0.png.png imagette252749511753356658/1753356324_3438470_1373526272_32b19ba000901bce55c993c1843adab9_rle_crop_3892531253_0.png.png imagette252749511753356658/1753356324_3438470_1373526281_c2c45ad54d83897c109abb2778f059fd_rle_crop_3892531246_0.png.png imagette252749511753356658/1753356567_3447023_1373526017_38a9eba9704f54489b7f3b60737cbb44_rle_crop_3892535510_0.png.png imagette252749511753356658/1753356085_3426516_1373525895_e53441dbd2a246e578fbf62ebe7a7bc5_rle_crop_3892529597_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/728502073bba10c56a59221832ace083_82389933.png imagette252749511753356658 25274952 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373527306: '1753356506_3445691_1373526357_54d69ac194fd8f12ae44e19707c9f50d_rle_crop_3892533783_0.png'} change filename to text .imagette252749521753356659/ imagette252749521753356659/1753356506_3445691_1373526357_54d69ac194fd8f12ae44e19707c9f50d_rle_crop_3892533783_0.png.png imagette252749531753356659/ imagette252749561753356659/ imagette252749581753356659/ imagette252749601753356659/ imagette252749621753356659/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/218d28e11255be989aeb020f6c3fc281_23338634.png imagette252749521753356659 25274953 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252749531753356659 25274956 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274956 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252749561753356659 25274958 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252749581753356659 25274960 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252749601753356659 25274962 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274962 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252749621753356659 25274954 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373526759: '1753356085_3426516_1373525893_57cad010624ecc0f0e363a21aac5946b_rle_crop_3892529609_0.png', 1373527347: '1753356567_3447023_1373526013_ebbea3487ae99d37efefc196209ba528_rle_crop_3892535538_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/89bf18b817513e140e8afab3311e8bf4_73644462.png change filename to text .imagette252749541753356659/ imagette252749541753356659/1753356085_3426516_1373525893_57cad010624ecc0f0e363a21aac5946b_rle_crop_3892529609_0.png.png imagette252749541753356659/1753356567_3447023_1373526013_ebbea3487ae99d37efefc196209ba528_rle_crop_3892535538_0.png.png imagette252749551753356659/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/c328bebeae86082bb616d28772de39e2_2843466.png imagette252749541753356659 25274955 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274955 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252749551753356659 25274957 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373526741: '1753356085_3426516_1373525922_fcd68d1448876af68212349018d3ea1d_rle_crop_3892529585_0.png', 1373526882: '1753356205_3432494_1373526232_c907f98f191c9d7523b6c1c6c9b44878_rle_crop_3892530618_0.png', 1373526883: '1753356205_3432494_1373526231_1a84f956aad2ec6208c7a67cda8b4c55_rle_crop_3892530630_0.png', 1373526984: '1753356324_3438470_1373526291_029d2b7028299cb344c31523f64182e6_rle_crop_3892531200_0.png', 1373527304: '1753356506_3445691_1373526518_8ffa79b4951f9f0c001688ed75742bd9_rle_crop_3892533723_0.png', 1373527339: '1753356567_3447023_1373526015_2d713da03d47ab645d8bdc92e634f104_rle_crop_3892535518_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/c05e56e52f800c7d500d3405785e6be9_48483356.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/750b6d76a2773caa3a0927ce4d215ef0_85069482.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/5b75b4163fa8fc6aaa1d04fdaca3314e_47886580.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/24589fab8633c0a970bcf52b4b45462a_26405287.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/80f3683f9c3d803ba342c059b16ef072_79077953.png change filename to text .imagette252749571753356659/ imagette252749571753356659/1753356324_3438470_1373526291_029d2b7028299cb344c31523f64182e6_rle_crop_3892531200_0.png.png imagette252749571753356659/1753356205_3432494_1373526232_c907f98f191c9d7523b6c1c6c9b44878_rle_crop_3892530618_0.png.png imagette252749571753356659/1753356205_3432494_1373526231_1a84f956aad2ec6208c7a67cda8b4c55_rle_crop_3892530630_0.png.png imagette252749571753356659/1753356085_3426516_1373525922_fcd68d1448876af68212349018d3ea1d_rle_crop_3892529585_0.png.png imagette252749571753356659/1753356567_3447023_1373526015_2d713da03d47ab645d8bdc92e634f104_rle_crop_3892535518_0.png.png imagette252749571753356659/1753356506_3445691_1373526518_8ffa79b4951f9f0c001688ed75742bd9_rle_crop_3892533723_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/c1434fd4f4bd5331c6206325a702b683_94798193.png imagette252749571753356659 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25274918 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25274979,25274980,25274981,25274982,25274983,25274984,25274985,25274986,25274987,25274988,25274989,25274990?tags=cartonnette,autre_refus,metal,Carton_brun,Carton_gris,plastique,Teint_Dans_La_Masse,mal_croppe,papier,kraft,environnement,flou your option no_mail is active, we will not send the real mail to your client args[1373527356] : ('0.03622923969417204',) no score found for photo 1373527356 We are sending mail with results at report@fotonower.com args[1373527353] : ('0.03622923969417204',) no score found for photo 1373527353 We are sending mail with results at report@fotonower.com args[1373527351] : ('0.03622923969417204',) no score found for photo 1373527351 We are sending mail with results at report@fotonower.com args[1373527350] : ('0.03622923969417204',) no score found for photo 1373527350 We are sending mail with results at report@fotonower.com args[1373527348] : ('0.03622923969417204',) no score found for photo 1373527348 We are sending mail with results at report@fotonower.com args[1373527340] : ('0.03622923969417204',) no score found for photo 1373527340 We are sending mail with results at report@fotonower.com args[1373527323] : ('0.03622923969417204',) no score found for photo 1373527323 We are sending mail with results at report@fotonower.com args[1373527320] : ('0.03622923969417204',) no score found for photo 1373527320 We are sending mail with results at report@fotonower.com args[1373527317] : ('0.03622923969417204',) no score found for photo 1373527317 We are sending mail with results at report@fotonower.com args[1373527315] : ('0.03622923969417204',) no score found for photo 1373527315 We are sending mail with results at report@fotonower.com args[1373527313] : ('0.03622923969417204',) no score found for photo 1373527313 We are sending mail with results at report@fotonower.com args[1373527307] : ('0.03622923969417204',) no score found for photo 1373527307 We are sending mail with results at report@fotonower.com refus_total : 0.03622923969417204 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274918 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_P25274918_24-07-2025_13_30_58.pdf results_Auto_P25274918_24-07-2025_13_30_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274918_24-07-2025_13_30_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25274918','results_Auto_P25274918_24-07-2025_13_30_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274918_24-07-2025_13_30_58.pdf','pdf','','0.17','0.03622923969417204') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25274918]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] map_info['map_portfolio_photo'] : {25274918: [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307, 1373527257, 1373527253, 1373527251, 1373527250, 1373527249, 1373527247, 1373527147, 1373527145, 1373527144, 1373527143, 1373527142, 1373527141, 1373527077, 1373527072, 1373527062, 1373527036, 1373527015, 1373526992, 1373526943, 1373526909, 1373526906, 1373526902, 1373526899, 1373526894, 1373526890, 1373526832, 1373526794, 1373526518, 1373526487, 1373526446, 1373526424, 1373526403, 1373526357, 1373526291, 1373526287, 1373526285, 1373526283, 1373526281, 1373526272, 1373526239, 1373526236, 1373526234, 1373526233, 1373526232, 1373526231, 1373526028, 1373526017, 1373526015, 1373526014, 1373526013, 1373526010, 1373525922, 1373525917, 1373525895, 1373525893, 1373525891, 1373525888, 1373525821, 1373525819, 1373525816, 1373525815, 1373525813, 1373525811]} final : False mtd_id 4302 list_pids : [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] 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, '3340139') ('4302', '25274918', '1373527356', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527353', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527351', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527350', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527348', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527340', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527323', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527320', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527317', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527315', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527313', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527307', None, None, None, None, None, '3340139') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '25274918', '1373527356', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527353', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527351', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527350', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527348', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527340', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527323', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527320', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527317', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527315', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527313', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527307', None, None, None, None, None, '3340139')] time used for this insertion : 0.016846656799316406 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.182246685028076 time spend to save output : 0.017117738723754883 total time spend for step 4 : 3.199364423751831 step5:split_time_score Thu Jul 24 13:31:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25274918'] 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 : [('25274918',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25274918) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373527317: {'path': 'temp/1753356657_1379130_1373527317_c14ef420c163499b6213bc17963b7962.jpg', 'extension': 'jpg'}, 1373527320: {'path': 'temp/1753356657_1379130_1373527320_5021180f3127a5f00bf6e4efa999ed1b.jpg', 'extension': 'jpg'}, 1373527323: {'path': 'temp/1753356657_1379130_1373527323_104c167ec78eaaa707e5511d3ee7bab5.jpg', 'extension': 'jpg'}, 1373527340: {'path': 'temp/1753356657_1379130_1373527340_8d3d8798055d4f7f184ff5a39a521f0c.jpg', 'extension': 'jpg'}, 1373527348: {'path': 'temp/1753356657_1379130_1373527348_ffebe76cbd4a3834d398f8cd76befe5a.jpg', 'extension': 'jpg'}, 1373527350: {'path': 'temp/1753356657_1379130_1373527350_1b52a5dcd8b95c236ca3852fbf9b412c.jpg', 'extension': 'jpg'}, 1373527307: {'path': 'temp/1753356657_1379130_1373527307_2eada3bcc61d9f87f6619fb91dfe881d.jpg', 'extension': 'jpg'}, 1373527313: {'path': 'temp/1753356657_1379130_1373527313_34cb0e6f05b39d9a4b6db89a0c1884a8.jpg', 'extension': 'jpg'}, 1373527315: {'path': 'temp/1753356657_1379130_1373527315_373c9ddf1e8c07e3acd48ee851f5ad55.jpg', 'extension': 'jpg'}, 1373527351: {'path': 'temp/1753356657_1379130_1373527351_751819031b7ae99dd0b329ba6d885ab9.jpg', 'extension': 'jpg'}, 1373527353: {'path': 'temp/1753356657_1379130_1373527353_852a731c8081a310affed73803347a83.jpg', 'extension': 'jpg'}, 1373527356: {'path': 'temp/1753356657_1379130_1373527356_94e948a31debae0b6238cbe8eefbeafa.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 = 25274918; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25274918 group by h (('13', 75),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25274918 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 (25274918) 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 (25274918) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24072025 25274918 Nombre de photos uploadées : 75 / 23040 (0%) 24072025 25274918 Nombre de photos taguées (types de déchets): 0 / 75 (0%) 24072025 25274918 Nombre de photos taguées (volume) : 0 / 75 (0%) [{'photo_id': 1373525821, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/cfed143f2fcd8026bf17e225ba03b819.jpg', 'username': None, 'uploaded_at': 1753355763, 'text': 'image_24072025_13_15_04_9143.jpg'}, {'photo_id': 1373525819, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/5c34af58e3eb60cecf2da783e6ead0db.jpg', 'username': None, 'uploaded_at': 1753355763, 'text': 'image_24072025_13_15_14_10137.jpg'}, {'photo_id': 1373525816, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/705785b64d562463813f1b33393cf699.jpg', 'username': None, 'uploaded_at': 1753355763, 'text': 'image_24072025_13_15_24_10139.jpg'}, {'photo_id': 1373525815, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/ecd2cf6b0c09e89a9a7191ed974cb22e.jpg', 'username': None, 'uploaded_at': 1753355763, 'text': 'image_24072025_13_15_34_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032706260681152344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25274918, '2025-07-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2002734,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02982926368713379 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= 2002734 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25245820, 'dashboard_result_id': 13022267, '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_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25246316, 'dashboard_result_id': 13022268, '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_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25246632, 'dashboard_result_id': 13022269, '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_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25246996, 'dashboard_result_id': 13022270, '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_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25247263, 'dashboard_result_id': 13022271, '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_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25247788, 'dashboard_result_id': 13022272, '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_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25248336, 'dashboard_result_id': 13022273, '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_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25248727, 'dashboard_result_id': 13022274, '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_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25249105, 'dashboard_result_id': 13022275, '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_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25249748, 'dashboard_result_id': 13022276, '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_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25250094, 'dashboard_result_id': 13022277, '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_P25250094_24-07-2025_09_59_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25250494, 'dashboard_result_id': 13022278, '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_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25250838, 'dashboard_result_id': 13022279, '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_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25251371, 'dashboard_result_id': 13022280, '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_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25251822, 'dashboard_result_id': 13022281, '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_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25252281, 'dashboard_result_id': 13022282, '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_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25252752, 'dashboard_result_id': 13022283, '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_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25253150, 'dashboard_result_id': 13022284, '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_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25253504, 'dashboard_result_id': 13022285, '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_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25253932, 'dashboard_result_id': 13022286, '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_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25254261, 'dashboard_result_id': 13022287, '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_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25254804, 'dashboard_result_id': 13022288, '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_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25255177, 'dashboard_result_id': 13022289, '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_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25255497, 'dashboard_result_id': 13022290, '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_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25255885, 'dashboard_result_id': 13022291, '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_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25256351, 'dashboard_result_id': 13022292, '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_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25256792, 'dashboard_result_id': 13022293, '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_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25257228, 'dashboard_result_id': 13022294, '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_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25257684, 'dashboard_result_id': 13022295, '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_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25258386, 'dashboard_result_id': 13022296, '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_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25259037, 'dashboard_result_id': 13022297, '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_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25259819, 'dashboard_result_id': 13022298, '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_P25259819_24-07-2025_08_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25260473, 'dashboard_result_id': 13022299, '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_P25260473_24-07-2025_08_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25260485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25260486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25260487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25260488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25260489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25260490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25260491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25260492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25260493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25260494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25260495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25260496, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25261109, 'dashboard_result_id': 13022300, '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_P25261109_24-07-2025_08_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261167, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25261705, 'dashboard_result_id': 13022301, '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_P25261705_24-07-2025_08_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261725, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25262414, 'dashboard_result_id': 13022302, '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_P25262414_24-07-2025_09_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25262496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25262497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25262498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25262500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25262501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25262503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25262505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25262506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25262508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25262510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25262511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25262513, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25263292, 'dashboard_result_id': 13022303, '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_P25263292_24-07-2025_09_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25263321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25263322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25263323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25263324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25263325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25263326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25263327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25263328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25263329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25263330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25263331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25263332, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25264317, 'dashboard_result_id': 13022304, '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_P25264317_24-07-2025_09_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25264393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25264394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25264395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25264396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25264397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25264398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25264399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25264400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25264401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25264402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25264403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25264404, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25265385, 'dashboard_result_id': 13022305, '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_P25265385_24-07-2025_09_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25265396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25265397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25265398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25265399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25265400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25265401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25265402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25265403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25265404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25265405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25265406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25265407, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25266121, 'dashboard_result_id': 13022306, '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_P25266121_24-07-2025_10_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25266154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266158, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25266734, 'dashboard_result_id': 13022307, '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_P25266734_24-07-2025_10_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25266749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266760, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25267535, 'dashboard_result_id': 13022308, '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_P25267535_24-07-2025_10_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25267545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25267546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25267547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25267548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25267549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25267550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25267551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25267552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25267553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25267554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25267555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25267556, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25268205, 'dashboard_result_id': 13022309, '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_P25268205_24-07-2025_10_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25268214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25268221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268225, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25268773, 'dashboard_result_id': 13022310, '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_P25268773_24-07-2025_11_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25268786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25268791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268797, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25269326, 'dashboard_result_id': 13022311, '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_P25269326_24-07-2025_11_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25269342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25269343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25269344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25269345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25269346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25269347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25269348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25269349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25269350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25269351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25269352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25269353, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25270040, 'dashboard_result_id': 13022312, '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_P25270040_24-07-2025_11_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270076, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25270595, 'dashboard_result_id': 13022313, '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_P25270595_24-07-2025_11_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270637, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25271196, 'dashboard_result_id': 13022314, '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_P25271196_24-07-2025_12_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25271240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271251, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25271786, 'dashboard_result_id': 13022316, '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_P25271786_24-07-2025_12_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25271802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271810, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25272556, 'dashboard_result_id': 13022319, '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_P25272556_24-07-2025_12_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25272563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25272564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25272565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25272566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25272567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25272568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25272569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25272570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25272571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25272572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25272573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25272574, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25273042, 'dashboard_result_id': 13022322, '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_P25273042_24-07-2025_12_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273081, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25273618, 'dashboard_result_id': 13022325, '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_P25273618_24-07-2025_13_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273652, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25274243, 'dashboard_result_id': 13022328, '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_P25274243_24-07-2025_13_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274268, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2012165, 'mtr_portfolio_id': 25274918, 'dashboard_result_id': 13022331, '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_P25274918_24-07-2025_13_28_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274962, '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 = 25245820 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': 3334263, 'mtr_portfolio_id': 25245820, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 40), 'result': '0.038215598605625845', 'result_long': None, 'result_double': None}] Qualite : 0.038215598605625845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25245820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25245820 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_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}" where mtr_portfolio_id = 25245820 and dashboard_run_id = 2012165 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`=25245820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022267, 0.038215598605625845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, '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 = 25246316 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': 3334264, 'mtr_portfolio_id': 25246316, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 30), 'result': '0.03126112302470875', 'result_long': None, 'result_double': None}] Qualite : 0.03126112302470875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246316 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_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}" where mtr_portfolio_id = 25246316 and dashboard_run_id = 2012165 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`=25246316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022268, 0.03126112302470875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, '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 = 25246632 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': 3334265, 'mtr_portfolio_id': 25246632, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 59), 'result': '0.04209888580772617', 'result_long': None, 'result_double': None}] Qualite : 0.04209888580772617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246632 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_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}" where mtr_portfolio_id = 25246632 and dashboard_run_id = 2012165 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`=25246632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022269, 0.04209888580772617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, '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 = 25246996 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': 3334266, 'mtr_portfolio_id': 25246996, 'created_at': datetime.datetime(2025, 7, 24, 6, 32, 29), 'result': '0.037362390466138935', 'result_long': None, 'result_double': None}] Qualite : 0.037362390466138935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246996 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_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}" where mtr_portfolio_id = 25246996 and dashboard_run_id = 2012165 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`=25246996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022270, 0.037362390466138935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, '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 = 25247263 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 = 25247263 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 = 25247263 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 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 = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334267, 'mtr_portfolio_id': 25247263, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 28), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247263 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_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}" where mtr_portfolio_id = 25247263 and dashboard_run_id = 2012165 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`=25247263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022271, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, '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 = 25247788 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 = 25247788 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 = 25247788 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 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 = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334268, 'mtr_portfolio_id': 25247788, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247788 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_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}" where mtr_portfolio_id = 25247788 and dashboard_run_id = 2012165 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`=25247788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022272, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, '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 = 25248336 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': 3334269, 'mtr_portfolio_id': 25248336, 'created_at': datetime.datetime(2025, 7, 24, 6, 34, 29), 'result': '0.04550434624396371', 'result_long': None, 'result_double': None}] Qualite : 0.04550434624396371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248336 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_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}" where mtr_portfolio_id = 25248336 and dashboard_run_id = 2012165 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`=25248336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022273, 0.04550434624396371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, '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 = 25248727 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': 3334270, 'mtr_portfolio_id': 25248727, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 29), 'result': '0.041544677557399705', 'result_long': None, 'result_double': None}] Qualite : 0.041544677557399705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248727 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_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}" where mtr_portfolio_id = 25248727 and dashboard_run_id = 2012165 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`=25248727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022274, 0.041544677557399705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, '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 = 25249105 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': 3334271, 'mtr_portfolio_id': 25249105, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 40), 'result': '0.027287981725041512', 'result_long': None, 'result_double': None}] Qualite : 0.027287981725041512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249105 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_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}" where mtr_portfolio_id = 25249105 and dashboard_run_id = 2012165 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`=25249105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022275, 0.027287981725041512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, '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 = 25249748 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': 3334272, 'mtr_portfolio_id': 25249748, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 59), 'result': '0.04867910375967595', 'result_long': None, 'result_double': None}] Qualite : 0.04867910375967595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249748 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_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}" where mtr_portfolio_id = 25249748 and dashboard_run_id = 2012165 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`=25249748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022276, 0.04867910375967595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, '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 = 25250094 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': 3334273, 'mtr_portfolio_id': 25250094, 'created_at': datetime.datetime(2025, 7, 24, 9, 59, 57), 'result': '0.05408474235416055', 'result_long': None, 'result_double': None}] Qualite : 0.05408474235416055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_09_59_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250094 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_P25250094_24-07-2025_09_59_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}" where mtr_portfolio_id = 25250094 and dashboard_run_id = 2012165 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`=25250094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022277, 0.05408474235416055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_09_59_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, '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 = 25250494 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': 3334274, 'mtr_portfolio_id': 25250494, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 27), 'result': '0.03219262700891156', 'result_long': None, 'result_double': None}] Qualite : 0.03219262700891156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250494 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_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}" where mtr_portfolio_id = 25250494 and dashboard_run_id = 2012165 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`=25250494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022278, 0.03219262700891156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, '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 = 25250838 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': 3334275, 'mtr_portfolio_id': 25250838, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 58), 'result': '0.019977432830331845', 'result_long': None, 'result_double': None}] Qualite : 0.019977432830331845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250838 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_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}" where mtr_portfolio_id = 25250838 and dashboard_run_id = 2012165 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`=25250838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022279, 0.019977432830331845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, '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 = 25251371 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': 3334276, 'mtr_portfolio_id': 25251371, 'created_at': datetime.datetime(2025, 7, 24, 6, 38, 29), 'result': '0.03179996240797819', 'result_long': None, 'result_double': None}] Qualite : 0.03179996240797819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251371 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_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}" where mtr_portfolio_id = 25251371 and dashboard_run_id = 2012165 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`=25251371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022280, 0.03179996240797819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, '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 = 25251822 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': 3334277, 'mtr_portfolio_id': 25251822, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 28), 'result': '0.038330996235407075', 'result_long': None, 'result_double': None}] Qualite : 0.038330996235407075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251822 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_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}" where mtr_portfolio_id = 25251822 and dashboard_run_id = 2012165 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`=25251822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022281, 0.038330996235407075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, '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 = 25252281 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': 3334278, 'mtr_portfolio_id': 25252281, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 59), 'result': '0.04638451755557565', 'result_long': None, 'result_double': None}] Qualite : 0.04638451755557565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252281 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_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}" where mtr_portfolio_id = 25252281 and dashboard_run_id = 2012165 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`=25252281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022282, 0.04638451755557565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, '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 = 25252752 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': 3334279, 'mtr_portfolio_id': 25252752, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 32), 'result': '0.032941466003342634', 'result_long': None, 'result_double': None}] Qualite : 0.032941466003342634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252752 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_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}" where mtr_portfolio_id = 25252752 and dashboard_run_id = 2012165 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`=25252752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022283, 0.032941466003342634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, '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 = 25253150 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': 3334280, 'mtr_portfolio_id': 25253150, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 40), 'result': '0.03518817691242381', 'result_long': None, 'result_double': None}] Qualite : 0.03518817691242381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253150 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_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}" where mtr_portfolio_id = 25253150 and dashboard_run_id = 2012165 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`=25253150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022284, 0.03518817691242381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, '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 = 25253504 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': 3334281, 'mtr_portfolio_id': 25253504, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 27), 'result': '0.04192457870721397', 'result_long': None, 'result_double': None}] Qualite : 0.04192457870721397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253504 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_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}" where mtr_portfolio_id = 25253504 and dashboard_run_id = 2012165 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`=25253504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022285, 0.04192457870721397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, '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 = 25253932 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': 3334282, 'mtr_portfolio_id': 25253932, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 58), 'result': '0.06409231738904918', 'result_long': None, 'result_double': None}] Qualite : 0.06409231738904918 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253932 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_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}" where mtr_portfolio_id = 25253932 and dashboard_run_id = 2012165 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`=25253932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022286, 0.06409231738904918, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, '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 = 25254261 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': 3334283, 'mtr_portfolio_id': 25254261, 'created_at': datetime.datetime(2025, 7, 24, 6, 42, 30), 'result': '0.03719769099501056', 'result_long': None, 'result_double': None}] Qualite : 0.03719769099501056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254261 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_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}" where mtr_portfolio_id = 25254261 and dashboard_run_id = 2012165 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`=25254261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022287, 0.03719769099501056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, '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 = 25254804 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': 3334284, 'mtr_portfolio_id': 25254804, 'created_at': datetime.datetime(2025, 7, 24, 5, 40, 39), 'result': '0.042868024995077914', 'result_long': None, 'result_double': None}] Qualite : 0.042868024995077914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254804 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_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}" where mtr_portfolio_id = 25254804 and dashboard_run_id = 2012165 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`=25254804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022288, 0.042868024995077914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, '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 = 25255177 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': 3334163, 'mtr_portfolio_id': 25255177, 'created_at': datetime.datetime(2025, 7, 24, 5, 46, 58), 'result': '0.03262217189807922', 'result_long': None, 'result_double': None}] Qualite : 0.03262217189807922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255177 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_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}" where mtr_portfolio_id = 25255177 and dashboard_run_id = 2012165 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`=25255177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022289, 0.03262217189807922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, '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 = 25255497 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': 3334356, 'mtr_portfolio_id': 25255497, 'created_at': datetime.datetime(2025, 7, 24, 6, 0, 58), 'result': '0.04344951070728682', 'result_long': None, 'result_double': None}] Qualite : 0.04344951070728682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255497 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_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}" where mtr_portfolio_id = 25255497 and dashboard_run_id = 2012165 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`=25255497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022290, 0.04344951070728682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, '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 = 25255885 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': 3334478, 'mtr_portfolio_id': 25255885, 'created_at': datetime.datetime(2025, 7, 24, 6, 16, 30), 'result': '0.031837923502929036', 'result_long': None, 'result_double': None}] Qualite : 0.031837923502929036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255885 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_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}" where mtr_portfolio_id = 25255885 and dashboard_run_id = 2012165 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`=25255885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022291, 0.031837923502929036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, '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 = 25256351 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': 3334574, 'mtr_portfolio_id': 25256351, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 59), 'result': '0.026085246051546402', 'result_long': None, 'result_double': None}] Qualite : 0.026085246051546402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256351 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_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}" where mtr_portfolio_id = 25256351 and dashboard_run_id = 2012165 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`=25256351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022292, 0.026085246051546402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, '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 = 25256792 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': 3334691, 'mtr_portfolio_id': 25256792, 'created_at': datetime.datetime(2025, 7, 24, 6, 46, 29), 'result': '0.0367596715937518', 'result_long': None, 'result_double': None}] Qualite : 0.0367596715937518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256792 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_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}" where mtr_portfolio_id = 25256792 and dashboard_run_id = 2012165 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`=25256792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022293, 0.0367596715937518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, '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 = 25257228 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': 3334799, 'mtr_portfolio_id': 25257228, 'created_at': datetime.datetime(2025, 7, 24, 7, 0, 59), 'result': '0.03855012418397147', 'result_long': None, 'result_double': None}] Qualite : 0.03855012418397147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25257228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_07_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25257228 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_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}" where mtr_portfolio_id = 25257228 and dashboard_run_id = 2012165 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`=25257228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022294, 0.03855012418397147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, '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 = 25257684 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': 3334933, 'mtr_portfolio_id': 25257684, 'created_at': datetime.datetime(2025, 7, 24, 7, 18, 57), 'result': '0.025329693137802284', 'result_long': None, 'result_double': None}] Qualite : 0.025329693137802284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25257684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25257684 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_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, 'pht': 3726}}" where mtr_portfolio_id = 25257684 and dashboard_run_id = 2012165 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`=25257684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022295, 0.025329693137802284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, '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 = 25258386 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': 3335113, 'mtr_portfolio_id': 25258386, 'created_at': datetime.datetime(2025, 7, 24, 7, 31), 'result': '0.04008529662083538', 'result_long': None, 'result_double': None}] Qualite : 0.04008529662083538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25258386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25258386 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_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, 'pht': 3726}}" where mtr_portfolio_id = 25258386 and dashboard_run_id = 2012165 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`=25258386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022296, 0.04008529662083538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, '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 = 25259037 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': 3335261, 'mtr_portfolio_id': 25259037, 'created_at': datetime.datetime(2025, 7, 24, 7, 46, 58), 'result': '0.07597098378790093', 'result_long': None, 'result_double': None}] Qualite : 0.07597098378790093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25259037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25259037 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_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, 'pht': 3726}}" where mtr_portfolio_id = 25259037 and dashboard_run_id = 2012165 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`=25259037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022297, 0.07597098378790093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, '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 = 25259819 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': 3335439, 'mtr_portfolio_id': 25259819, 'created_at': datetime.datetime(2025, 7, 24, 8, 1), 'result': '0.0368400569706755', 'result_long': None, 'result_double': None}] Qualite : 0.0368400569706755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25259819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_08_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25259819 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_P25259819_24-07-2025_08_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, 'pht': 3726}}" where mtr_portfolio_id = 25259819 and dashboard_run_id = 2012165 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`=25259819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022298, 0.0368400569706755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_08_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, '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 = 25260473 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': 3335558, 'mtr_portfolio_id': 25260473, 'created_at': datetime.datetime(2025, 7, 24, 8, 16, 59), 'result': '0.043906781480640145', 'result_long': None, 'result_double': None}] Qualite : 0.043906781480640145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25260473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25260473_24-07-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25260473 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_P25260473_24-07-2025_08_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25260485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25260486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25260487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25260488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25260489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25260490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25260491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25260492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25260493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25260494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25260495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25260496, 'pht': 3726}}" where mtr_portfolio_id = 25260473 and dashboard_run_id = 2012165 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`=25260473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022299, 0.043906781480640145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25260473_24-07-2025_08_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25260485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25260486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25260487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25260488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25260489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25260490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25260491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25260492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25260493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25260494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25260495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25260496, '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 = 25261109 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': 3335680, 'mtr_portfolio_id': 25261109, 'created_at': datetime.datetime(2025, 7, 24, 8, 30, 58), 'result': '0.04221493769914953', 'result_long': None, 'result_double': None}] Qualite : 0.04221493769914953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25261109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261109_24-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25261109 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_P25261109_24-07-2025_08_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261167, 'pht': 3726}}" where mtr_portfolio_id = 25261109 and dashboard_run_id = 2012165 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`=25261109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022300, 0.04221493769914953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261109_24-07-2025_08_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261156, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261162, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261163, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261167, '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 = 25261705 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': 3335802, 'mtr_portfolio_id': 25261705, 'created_at': datetime.datetime(2025, 7, 24, 8, 46, 59), 'result': '0.05752987727251312', 'result_long': None, 'result_double': None}] Qualite : 0.05752987727251312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25261705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261705_24-07-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25261705 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_P25261705_24-07-2025_08_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261725, 'pht': 3726}}" where mtr_portfolio_id = 25261705 and dashboard_run_id = 2012165 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`=25261705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022301, 0.05752987727251312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25261705_24-07-2025_08_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25261714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25261715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25261716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25261717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25261718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25261719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25261720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25261721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25261722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25261723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25261724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25261725, '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 = 25262414 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': 3335982, 'mtr_portfolio_id': 25262414, 'created_at': datetime.datetime(2025, 7, 24, 9, 0, 59), 'result': '0.06579695197743432', 'result_long': None, 'result_double': None}] Qualite : 0.06579695197743432 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25262414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25262414_24-07-2025_09_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25262414 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_P25262414_24-07-2025_09_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25262496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25262497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25262498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25262500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25262501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25262503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25262505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25262506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25262508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25262510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25262511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25262513, 'pht': 3726}}" where mtr_portfolio_id = 25262414 and dashboard_run_id = 2012165 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`=25262414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022302, 0.06579695197743432, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25262414_24-07-2025_09_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25262496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25262497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25262498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25262500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25262501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25262503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25262505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25262506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25262508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25262510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25262511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25262513, '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 = 25263292 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 = 25263292 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 = 25263292 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25263292 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 = 25263292 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3336239, 'mtr_portfolio_id': 25263292, 'created_at': datetime.datetime(2025, 7, 24, 9, 16, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25263292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25263292_24-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25263292 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_P25263292_24-07-2025_09_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25263321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25263322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25263323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25263324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25263325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25263326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25263327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25263328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25263329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25263330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25263331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25263332, 'pht': 3726}}" where mtr_portfolio_id = 25263292 and dashboard_run_id = 2012165 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`=25263292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022303, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25263292_24-07-2025_09_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25263321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25263322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25263323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25263324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25263325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25263326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25263327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25263328, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25263329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25263330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25263331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25263332, '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 = 25264317 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 = 25264317 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 = 25264317 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25264317 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 = 25264317 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3336478, 'mtr_portfolio_id': 25264317, 'created_at': datetime.datetime(2025, 7, 24, 9, 31), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25264317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25264317_24-07-2025_09_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25264317 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_P25264317_24-07-2025_09_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25264393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25264394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25264395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25264396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25264397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25264398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25264399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25264400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25264401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25264402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25264403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25264404, 'pht': 3726}}" where mtr_portfolio_id = 25264317 and dashboard_run_id = 2012165 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`=25264317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022304, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25264317_24-07-2025_09_31_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25264393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25264394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25264395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25264396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25264397, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25264398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25264399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25264400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25264401, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25264402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25264403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25264404, '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 = 25265385 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': 3336769, 'mtr_portfolio_id': 25265385, 'created_at': datetime.datetime(2025, 7, 24, 9, 46, 57), 'result': '0.05157535516692298', 'result_long': None, 'result_double': None}] Qualite : 0.05157535516692298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25265385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25265385_24-07-2025_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25265385 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_P25265385_24-07-2025_09_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25265396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25265397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25265398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25265399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25265400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25265401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25265402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25265403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25265404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25265405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25265406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25265407, 'pht': 3726}}" where mtr_portfolio_id = 25265385 and dashboard_run_id = 2012165 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`=25265385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022305, 0.05157535516692298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25265385_24-07-2025_09_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25265396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25265397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25265398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25265399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25265400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25265401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25265402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25265403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25265404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25265405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25265406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25265407, '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 = 25266121 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': 3336993, 'mtr_portfolio_id': 25266121, 'created_at': datetime.datetime(2025, 7, 24, 10, 0, 58), 'result': '0.030406445039213015', 'result_long': None, 'result_double': None}] Qualite : 0.030406445039213015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25266121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266121_24-07-2025_10_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25266121 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_P25266121_24-07-2025_10_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25266154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266158, 'pht': 3726}}" where mtr_portfolio_id = 25266121 and dashboard_run_id = 2012165 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`=25266121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022306, 0.030406445039213015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266121_24-07-2025_10_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25266154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266158, '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 = 25266734 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': 3337269, 'mtr_portfolio_id': 25266734, 'created_at': datetime.datetime(2025, 7, 24, 10, 17), 'result': '0.022815326013848496', 'result_long': None, 'result_double': None}] Qualite : 0.022815326013848496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25266734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266734_24-07-2025_10_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25266734 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_P25266734_24-07-2025_10_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25266749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266760, 'pht': 3726}}" where mtr_portfolio_id = 25266734 and dashboard_run_id = 2012165 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`=25266734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022307, 0.022815326013848496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25266734_24-07-2025_10_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25266749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25266750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25266751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25266752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25266753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25266754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25266755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25266756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25266757, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25266758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25266759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25266760, '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 = 25267535 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': 3337528, 'mtr_portfolio_id': 25267535, 'created_at': datetime.datetime(2025, 7, 24, 10, 30, 57), 'result': '0.03418831149971362', 'result_long': None, 'result_double': None}] Qualite : 0.03418831149971362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25267535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25267535_24-07-2025_10_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25267535 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_P25267535_24-07-2025_10_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25267545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25267546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25267547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25267548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25267549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25267550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25267551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25267552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25267553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25267554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25267555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25267556, 'pht': 3726}}" where mtr_portfolio_id = 25267535 and dashboard_run_id = 2012165 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`=25267535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022308, 0.03418831149971362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25267535_24-07-2025_10_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25267545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25267546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25267547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25267548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25267549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25267550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25267551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25267552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25267553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25267554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25267555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25267556, '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 = 25268205 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': 3337770, 'mtr_portfolio_id': 25268205, 'created_at': datetime.datetime(2025, 7, 24, 10, 46, 57), 'result': '0.020980391611189163', 'result_long': None, 'result_double': None}] Qualite : 0.020980391611189163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25268205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268205_24-07-2025_10_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25268205 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_P25268205_24-07-2025_10_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25268214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25268221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268225, 'pht': 3726}}" where mtr_portfolio_id = 25268205 and dashboard_run_id = 2012165 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`=25268205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022309, 0.020980391611189163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268205_24-07-2025_10_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25268214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268217, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268220, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25268221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268225, '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 = 25268773 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': 3337968, 'mtr_portfolio_id': 25268773, 'created_at': datetime.datetime(2025, 7, 24, 11, 0, 58), 'result': '0.05527500965384495', 'result_long': None, 'result_double': None}] Qualite : 0.05527500965384495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25268773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268773_24-07-2025_11_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25268773 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_P25268773_24-07-2025_11_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25268786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25268791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268797, 'pht': 3726}}" where mtr_portfolio_id = 25268773 and dashboard_run_id = 2012165 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`=25268773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022310, 0.05527500965384495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25268773_24-07-2025_11_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25268786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25268787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25268788, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25268789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25268790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25268791, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25268792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25268793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25268794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25268795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25268796, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25268797, '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 = 25269326 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': 3338200, 'mtr_portfolio_id': 25269326, 'created_at': datetime.datetime(2025, 7, 24, 11, 16, 29), 'result': '0.031073487589699092', 'result_long': None, 'result_double': None}] Qualite : 0.031073487589699092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25269326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25269326_24-07-2025_11_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25269326 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_P25269326_24-07-2025_11_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25269342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25269343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25269344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25269345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25269346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25269347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25269348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25269349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25269350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25269351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25269352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25269353, 'pht': 3726}}" where mtr_portfolio_id = 25269326 and dashboard_run_id = 2012165 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`=25269326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022311, 0.031073487589699092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25269326_24-07-2025_11_16_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25269342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25269343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25269344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25269345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25269346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25269347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25269348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25269349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25269350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25269351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25269352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25269353, '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 = 25270040 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': 3338440, 'mtr_portfolio_id': 25270040, 'created_at': datetime.datetime(2025, 7, 24, 11, 31, 1), 'result': '0.031889630250529426', 'result_long': None, 'result_double': None}] Qualite : 0.031889630250529426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25270040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270040_24-07-2025_11_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25270040 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_P25270040_24-07-2025_11_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270076, 'pht': 3726}}" where mtr_portfolio_id = 25270040 and dashboard_run_id = 2012165 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`=25270040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022312, 0.031889630250529426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270040_24-07-2025_11_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270071, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270073, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270076, '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 = 25270595 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': 3338645, 'mtr_portfolio_id': 25270595, 'created_at': datetime.datetime(2025, 7, 24, 11, 46, 56), 'result': '0.03278935951054427', 'result_long': None, 'result_double': None}] Qualite : 0.03278935951054427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25270595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270595_24-07-2025_11_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25270595 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_P25270595_24-07-2025_11_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270637, 'pht': 3726}}" where mtr_portfolio_id = 25270595 and dashboard_run_id = 2012165 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`=25270595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022313, 0.03278935951054427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25270595_24-07-2025_11_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25270626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25270627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25270628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25270629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25270630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25270631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25270632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25270633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25270634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25270635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25270636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25270637, '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 = 25271196 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': 3338865, 'mtr_portfolio_id': 25271196, 'created_at': datetime.datetime(2025, 7, 24, 12, 1), 'result': '0.03188676144921294', 'result_long': None, 'result_double': None}] Qualite : 0.03188676144921294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25271196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271196_24-07-2025_12_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25271196 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_P25271196_24-07-2025_12_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25271240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271251, 'pht': 3726}}" where mtr_portfolio_id = 25271196 and dashboard_run_id = 2012165 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`=25271196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022314, 0.03188676144921294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271196_24-07-2025_12_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25271240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271244, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271246, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271251, '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 = 25271786 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': 3339093, 'mtr_portfolio_id': 25271786, 'created_at': datetime.datetime(2025, 7, 24, 12, 16, 58), 'result': '0.03226714455592586', 'result_long': None, 'result_double': None}] Qualite : 0.03226714455592586 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25271786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271786_24-07-2025_12_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25271786 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_P25271786_24-07-2025_12_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25271802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271810, 'pht': 3726}}" where mtr_portfolio_id = 25271786 and dashboard_run_id = 2012165 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`=25271786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022316, 0.03226714455592586, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25271786_24-07-2025_12_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25271799, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25271800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25271801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25271802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25271803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25271804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25271805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25271806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25271807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25271808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25271809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25271810, '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 = 25272556 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': 3339314, 'mtr_portfolio_id': 25272556, 'created_at': datetime.datetime(2025, 7, 24, 12, 32, 56), 'result': '0.041215239701292504', 'result_long': None, 'result_double': None}] Qualite : 0.041215239701292504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25272556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25272556_24-07-2025_12_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25272556 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_P25272556_24-07-2025_12_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25272563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25272564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25272565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25272566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25272567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25272568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25272569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25272570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25272571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25272572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25272573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25272574, 'pht': 3726}}" where mtr_portfolio_id = 25272556 and dashboard_run_id = 2012165 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`=25272556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022319, 0.041215239701292504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25272556_24-07-2025_12_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25272563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25272564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25272565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25272566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25272567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25272568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25272569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25272570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25272571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25272572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25272573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25272574, '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 = 25273042 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': 3339524, 'mtr_portfolio_id': 25273042, 'created_at': datetime.datetime(2025, 7, 24, 12, 46, 57), 'result': '0.05061450348822879', 'result_long': None, 'result_double': None}] Qualite : 0.05061450348822879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25273042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273042_24-07-2025_12_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25273042 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_P25273042_24-07-2025_12_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273081, 'pht': 3726}}" where mtr_portfolio_id = 25273042 and dashboard_run_id = 2012165 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`=25273042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022322, 0.05061450348822879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273042_24-07-2025_12_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273081, '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 = 25273618 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': 3339759, 'mtr_portfolio_id': 25273618, 'created_at': datetime.datetime(2025, 7, 24, 13, 1, 1), 'result': '0.05189232181800294', 'result_long': None, 'result_double': None}] Qualite : 0.05189232181800294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25273618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273618_24-07-2025_13_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25273618 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_P25273618_24-07-2025_13_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273652, 'pht': 3726}}" where mtr_portfolio_id = 25273618 and dashboard_run_id = 2012168 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`=25273618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022325, 0.05189232181800294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25273618_24-07-2025_13_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25273641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25273642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25273643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25273644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25273645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25273646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25273647, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25273648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25273649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25273650, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25273651, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25273652, '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 = 25274243 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': 3339976, 'mtr_portfolio_id': 25274243, 'created_at': datetime.datetime(2025, 7, 24, 13, 16, 59), 'result': '0.030936039095852373', 'result_long': None, 'result_double': None}] Qualite : 0.030936039095852373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25274243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274243_24-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25274243 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_P25274243_24-07-2025_13_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274268, 'pht': 3726}}" where mtr_portfolio_id = 25274243 and dashboard_run_id = 2012168 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`=25274243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022328, 0.030936039095852373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274243_24-07-2025_13_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274268, '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 = 25274918 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': 3340139, 'mtr_portfolio_id': 25274918, 'created_at': datetime.datetime(2025, 7, 24, 13, 30, 57), 'result': '0.03622923969417204', 'result_long': None, 'result_double': None}] Qualite : 0.03622923969417204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25274918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274918_24-07-2025_13_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25274918 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_P25274918_24-07-2025_13_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274962, 'pht': 3726}}" where mtr_portfolio_id = 25274918 and dashboard_run_id = 2012168 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`=25274918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13022331, 0.03622923969417204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25274918_24-07-2025_13_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25274951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25274952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25274953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25274954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25274955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25274956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25274957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25274958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25274959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25274960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25274961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25274962, '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 (25245820,25246316,25246632,25246996,25247263,25247788,25248336,25248727,25249105,25249748,25250094,25250494,25250838,25251371,25251822,25252281,25252752,25253150,25253504,25253932,25254261,25254804,25255177,25255497,25255885,25256351,25256792,25257228,25257684,25258386,25259037,25259819,25260473,25261109,25261705,25262414,25263292,25264317,25265385,25266121,25266734,25267535,25268205,25268773,25269326,25270040,25270595,25271196,25271786,25272556,25273042,25273618,25274243,25274918) result : ((1373433356,), (1373433609,), (1373433797,), (1373433798,), (1373433820,), (1373433832,), (1373433834,), (1373433840,), (1373434211,), (1373434234,), (1373434276,), (1373434320,), (1373434355,), (1373434386,), (1373434551,), (1373434562,), (1373434599,), (1373434624,), (1373434649,), (1373434685,), (1373434819,), (1373434822,), (1373434827,), (1373434828,), (1373434831,), (1373434835,), (1373435006,), (1373435350,), (1373435352,), (1373435354,), (1373435355,), (1373435357,), (1373435359,), (1373435531,), (1373435532,), (1373435553,), (1373435561,), (1373435563,), (1373435565,), (1373435583,), (1373435585,), (1373435590,), (1373435596,), (1373435607,), (1373435610,), (1373435637,), (1373435643,), (1373435649,), (1373435650,), (1373435652,), (1373435655,), (1373435658,), (1373435676,), (1373435677,), (1373435678,), (1373435679,), (1373435681,), (1373435683,), (1373435696,), (1373435701,), (1373435702,), (1373435703,), (1373435705,), (1373435708,), (1373435747,), (1373435751,), (1373435753,), (1373435754,), (1373435756,), (1373435760,), (1373435847,), (1373435875,), (1373435905,), (1373435926,), (1373435929,), (1373435931,), (1373436010,), (1373436011,), (1373436012,), (1373436014,), (1373436016,), (1373436019,), (1373436107,), (1373436113,), (1373436116,), (1373436117,), (1373436120,), (1373436123,), (1373436134,), (1373436137,), (1373436140,), (1373436142,), (1373436144,), (1373436146,), (1373436163,), (1373436168,), (1373436173,), (1373436174,), (1373436176,), (1373436179,), (1373436206,), (1373436222,), (1373436233,), (1373436234,), (1373436235,), (1373436237,), (1373436240,), (1373436243,), (1373436263,), (1373436265,), (1373436267,), (1373436268,), (1373436270,), (1373436272,), (1373436286,), (1373436289,), (1373436290,), (1373436293,), (1373436296,), (1373436297,), (1373436304,), (1373436305,), (1373436314,), (1373436317,), (1373436319,), (1373436321,), (1373436335,), (1373436350,), (1373436352,), (1373436359,), (1373436363,), (1373436366,), (1373436367,), (1373436377,), (1373436380,), (1373436382,), (1373436383,), (1373436385,), (1373436386,), (1373436404,), (1373436424,), (1373436425,), (1373436426,), (1373436427,), (1373436429,), (1373436431,), (1373436445,), (1373436627,), (1373436652,), (1373436674,), (1373436694,), (1373436695,), (1373436697,), (1373436774,), (1373436779,), (1373436780,), (1373436781,), (1373436783,), (1373436784,), (1373436797,), (1373436798,), (1373436799,), (1373436800,), (1373436802,), (1373436803,), (1373436823,), (1373436824,), (1373436825,), (1373436826,), (1373436827,), (1373436829,), (1373436843,), (1373436844,), (1373436845,), (1373436846,), (1373436848,), (1373436849,), (1373436856,), (1373436863,), (1373436869,), (1373436871,), (1373436874,), (1373436878,), (1373436886,), (1373436889,), (1373436892,), (1373436893,), (1373436895,), (1373436899,), (1373436909,), (1373436911,), (1373436915,), (1373436924,), (1373436933,), (1373436935,), (1373436945,), (1373436955,), (1373436958,), (1373436960,), (1373436962,), (1373436963,), (1373436964,), (1373436975,), (1373436977,), (1373436978,), (1373436979,), (1373436981,), (1373436983,), (1373437003,), (1373437006,), (1373437007,), (1373437008,), (1373437011,), (1373437013,), (1373437023,), (1373437602,), (1373437625,), (1373437059,), (1373437076,), (1373437078,), (1373437080,), (1373437082,), (1373437085,), (1373437089,), (1373437100,), (1373437103,), (1373437105,), (1373437107,), (1373437109,), (1373437112,), (1373437133,), (1373437139,), (1373437141,), (1373437143,), (1373437145,), (1373437147,), (1373437156,), (1373437161,), (1373437168,), (1373437170,), (1373437173,), (1373437176,), (1373437202,), (1373437204,), (1373437206,), (1373437208,), (1373437211,), (1373437213,), (1373437219,), (1373437233,), (1373437234,), (1373437235,), (1373437236,), (1373437237,), (1373437239,), (1373437257,), (1373437267,), (1373437270,), (1373437271,), (1373437273,), (1373437275,), (1373437283,), (1373437285,), (1373437297,), (1373437308,), (1373437311,), (1373437314,), (1373437323,), (1373437326,), (1373437329,), (1373437331,), (1373437334,), (1373437338,), (1373437342,), (1373437343,), (1373437345,), (1373437347,), (1373437348,), (1373437352,), (1373437369,), (1373437371,), (1373437373,), (1373437375,), (1373437377,), (1373437380,), (1373437551,), (1373437576,), (1373438191,), (1373439020,), (1373439077,), (1373439119,), (1373439140,), (1373439164,), (1373439197,), (1373439420,), (1373439440,), (1373439443,), (1373439444,), (1373439451,), (1373439477,), (1373439715,), (1373439726,), (1373439744,), (1373439747,), (1373439750,), (1373439762,), (1373439813,), (1373439816,), (1373439818,), (1373439820,), (1373439823,), (1373439824,), (1373439832,), (1373439834,), (1373439836,), (1373439837,), (1373439839,), (1373439840,), (1373439845,), (1373439847,), (1373439849,), (1373439850,), (1373439851,), (1373439853,), (1373439867,), (1373439869,), (1373439872,), (1373439874,), (1373439876,), (1373439878,), (1373439883,), (1373439886,), (1373439888,), (1373439890,), (1373439893,), (1373439895,), (1373439904,), (1373439920,), (1373439923,), (1373439926,), (1373439928,), (1373439930,), (1373439933,), (1373439941,), (1373439962,), (1373439967,), (1373439974,), (1373439977,), (1373439980,), (1373439983,), (1373439995,), (1373439997,), (1373440000,), (1373440002,), (1373440005,), (1373440008,), (1373440019,), (1373440026,), (1373440032,), (1373440034,), (1373440037,), (1373440040,), (1373440077,), (1373440078,), (1373440079,), (1373440080,), (1373440082,), (1373440085,), (1373440228,), (1373440247,), (1373440272,), (1373440277,), (1373440283,), (1373440286,), (1373440314,), (1373440326,), (1373440351,), (1373440373,), (1373440399,), (1373440416,), (1373440428,), (1373440431,), (1373440436,), (1373440437,), (1373440439,), (1373440440,), (1373440450,), (1373440452,), (1373440453,), (1373440455,), (1373440458,), (1373440461,), (1373440474,), (1373440476,), (1373440479,), (1373440482,), (1373440485,), (1373440488,), (1373440504,), (1373440518,), (1373440520,), (1373440522,), (1373440524,), (1373440526,), (1373440529,), (1373440540,), (1373440541,), (1373440544,), (1373440547,), (1373440550,), (1373440552,), (1373440568,), (1373440569,), (1373440570,), (1373440571,), (1373440573,), (1373440576,), (1373440587,), (1373440589,), (1373440592,), (1373440594,), (1373440597,), (1373440599,), (1373440618,), (1373440623,), (1373440624,), (1373440626,), (1373440627,), (1373440630,), (1373440639,), (1373440640,), (1373440642,), (1373440644,), (1373440645,), (1373440649,), (1373440660,), (1373440661,), (1373440662,), (1373440663,), (1373440664,), (1373440667,), (1373440677,), (1373440679,), (1373440681,), (1373440682,), (1373440684,), (1373440686,), (1373440708,), (1373440709,), (1373440711,), (1373440713,), (1373440716,), (1373440719,), (1373440747,), (1373440761,), (1373440763,), (1373440766,), (1373440771,), (1373440775,), (1373440777,), (1373440787,), (1373440789,), (1373440791,), (1373440794,), (1373440798,), (1373440802,), (1373440815,), (1373440817,), (1373440819,), (1373440820,), (1373440822,), (1373440823,), (1373440842,), (1373440845,), (1373440847,), (1373440849,), (1373440852,), (1373440854,), (1373440874,), (1373440876,), (1373440878,), (1373440881,), (1373440884,), (1373440887,), (1373440894,), (1373440896,), (1373440898,), (1373440900,), (1373440902,), (1373440906,), (1373440919,), (1373440943,), (1373440975,), (1373440977,), (1373440979,), (1373440981,), (1373440983,), (1373440986,), (1373441011,), (1373441029,), (1373441031,), (1373441035,), (1373441039,), (1373441042,), (1373441045,), (1373441051,), (1373441053,), (1373441055,), (1373441058,), (1373441061,), (1373441063,), (1373441069,), (1373441071,), (1373441072,), (1373441074,), (1373441076,), (1373441078,), (1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,), (1373441334,), (1373441336,), (1373441337,), (1373441338,), (1373441340,), (1373441341,), (1373441349,), (1373441352,), (1373441354,), (1373441356,), (1373441359,), (1373441363,), (1373441384,), (1373441386,), (1373441388,), (1373441390,), (1373441394,), (1373441398,), (1373441414,), (1373441416,), (1373441417,), (1373441418,), (1373441420,), (1373441423,), (1373441915,), (1373441971,), (1373442014,), (1373442045,), (1373442069,), (1373442093,), (1373442457,), (1373442489,), (1373442536,), (1373442563,), (1373442581,), (1373442582,), (1373442727,), (1373443239,), (1373443263,), (1373443288,), (1373443315,), (1373443339,), (1373443366,), (1373443539,), (1373443551,), (1373443582,), (1373443615,), (1373443643,), (1373443671,), (1373444092,), (1373444115,), (1373444159,), (1373444188,), (1373444213,), (1373444242,), (1373444491,), (1373444516,), (1373444528,), (1373444529,), (1373444536,), (1373444560,), (1373444614,), (1373444880,), (1373444908,), (1373444937,), (1373444962,), (1373444985,), (1373445010,), (1373445258,), (1373445283,), (1373445291,), (1373445293,), (1373445295,), (1373445299,), (1373445603,), (1373445654,), (1373445706,), (1373445730,), (1373445755,), (1373445783,), (1373446058,), (1373446060,), (1373446063,), (1373446069,), (1373446096,), (1373446121,), (1373446276,), (1373446302,), (1373446305,), (1373446307,), (1373446311,), (1373446315,), (1373446316,), (1373446325,), (1373446337,), (1373446340,), (1373446341,), (1373446343,), (1373446345,), (1373446356,), (1373446357,), (1373446359,), (1373446361,), (1373446364,), (1373446368,), (1373446378,), (1373446384,), (1373446391,), (1373446397,), (1373446399,), (1373446401,), (1373446415,), (1373446416,), (1373446418,), (1373446420,), (1373446422,), (1373446425,), (1373446445,), (1373446448,), (1373446449,), (1373446451,), (1373446453,), (1373446455,), (1373446464,), (1373446466,), (1373446468,), (1373446470,), (1373446473,), (1373446476,), (1373446483,), (1373446485,), (1373446487,), (1373446488,), (1373446491,), (1373446494,), (1373446502,), (1373446516,), (1373446517,), (1373446519,), (1373446521,), (1373446523,), (1373446527,), (1373446535,), (1373446555,), (1373446557,), (1373446560,), (1373446562,), (1373446563,), (1373446566,), (1373446577,), (1373446580,), (1373446582,), (1373446585,), (1373446587,), (1373446590,), (1373446597,), (1373446600,), (1373446602,), (1373446604,), (1373446607,), (1373446610,), (1373446618,), (1373446621,), (1373446624,), (1373446627,), (1373446630,), (1373446633,), (1373446641,), (1373446644,), (1373446646,), (1373446648,), (1373446651,), (1373446653,), (1373446729,), (1373446733,), (1373446734,), (1373446736,), (1373446737,), (1373446739,), (1373446870,), (1373446908,), (1373446914,), (1373446916,), (1373446918,), (1373446919,), (1373446923,), (1373446953,), (1373446967,), (1373446969,), (1373446971,), (1373446972,), (1373446974,), (1373446977,), (1373446995,), (1373446997,), (1373446998,), (1373447000,), (1373447002,), (1373447009,), (1373447045,), (1373447054,), (1373447065,), (1373447073,), (1373447082,), (1373447107,), (1373447119,), (1373447121,), (1373447123,), (1373447124,), (1373447126,), (1373447127,), (1373447141,), (1373447142,), (1373447143,), (1373447144,), (1373447146,), (1373447149,), (1373447156,), (1373447157,), (1373447159,), (1373447160,), (1373447163,), (1373447166,), (1373447174,), (1373447177,), (1373447180,), (1373447182,), (1373447186,), (1373447190,), (1373447207,), (1373447218,), (1373447226,), (1373447229,), (1373447233,), (1373447237,), (1373447298,), (1373447318,), (1373447323,), (1373447325,), (1373447326,), (1373447329,), (1373447332,), (1373447370,), (1373447372,), (1373447379,), (1373447406,), (1373447408,), (1373447410,), (1373447418,), (1373447429,), (1373447436,), (1373447438,), (1373447442,), (1373447445,), (1373447454,), (1373447457,), (1373447459,), (1373447476,), (1373447497,), (1373447502,), (1373485719,), (1373447520,), (1373447523,), (1373447525,), (1373447527,), (1373447530,), (1373447533,), (1373447551,), (1373447558,), (1373447561,), (1373447563,), (1373447565,), (1373447568,), (1373447575,), (1373447578,), (1373447580,), (1373447581,), (1373447584,), (1373447587,), (1373447597,), (1373447609,), (1373447613,), (1373447616,), (1373447618,), (1373447623,), (1373447702,), (1373447710,), (1373447716,), (1373447720,), (1373447722,), (1373447725,), (1373447750,), (1373447752,), (1373447753,), (1373447754,), (1373447756,), (1373447759,), (1373447783,), (1373447820,), (1373447821,), (1373447822,), (1373447861,), (1373447864,), (1373447866,), (1373447875,), (1373447884,), (1373447889,), (1373447891,), (1373447893,), (1373447896,), (1373447906,), (1373447907,), (1373447909,), (1373447911,), (1373447914,), (1373447916,), (1373447930,), (1373447931,), (1373447932,), (1373447933,), (1373447935,), (1373447937,), (1373447951,), (1373447952,), (1373447953,), (1373447954,), (1373447955,), (1373447957,), (1373448000,), (1373448025,), (1373448050,), (1373448076,), (1373448102,), (1373448126,), (1373449103,), (1373449180,), (1373449251,), (1373449312,), (1373449345,), (1373449387,), (1373449748,), (1373449978,), (1373449988,), (1373449990,), (1373449999,), (1373450024,), (1373450037,), (1373450050,), (1373450073,), (1373450078,), (1373450079,), (1373450081,), (1373450083,), (1373450085,), (1373450096,), (1373450117,), (1373450122,), (1373450125,), (1373450127,), (1373450130,), (1373450133,), (1373450150,), (1373450157,), (1373450159,), (1373450161,), (1373450163,), (1373450166,), (1373450176,), (1373450184,), (1373450187,), (1373450188,), (1373450189,), (1373450191,), (1373450201,), (1373450204,), (1373450206,), (1373450208,), (1373450210,), (1373450212,), (1373450222,), (1373450232,), (1373450235,), (1373450238,), (1373450240,), (1373450243,), (1373450259,), (1373450313,), (1373450331,), (1373450353,), (1373450405,), (1373450408,), (1373450411,), (1373450465,), (1373450486,), (1373450489,), (1373450490,), (1373450493,), (1373450496,), (1373450501,), (1373450503,), (1373450505,), (1373450507,), (1373450509,), (1373450510,), (1373450528,), (1373450530,), (1373450532,), (1373450533,), (1373450535,), (1373450539,), (1373450558,), (1373450561,), (1373450564,), (1373450565,), (1373450567,), (1373450569,), (1373450586,), (1373450589,), (1373450590,), (1373450592,), (1373450593,), (1373450594,), (1373450604,), (1373450605,), (1373450607,), (1373450609,), (1373450611,), (1373450612,), (1373450624,), (1373450626,), (1373450628,), (1373450629,), (1373450632,), (1373450634,), (1373450646,), (1373450648,), (1373450650,), (1373450651,), (1373450654,), (1373450657,), (1373450677,), (1373450678,), (1373450685,), (1373450686,), (1373450688,), (1373450690,), (1373450781,), (1373450790,), (1373450791,), (1373450792,), (1373450793,), (1373450795,), (1373450796,), (1373450811,), (1373450818,), (1373450821,), (1373450822,), (1373450824,), (1373450827,), (1373450838,), (1373450842,), (1373450846,), (1373450848,), (1373450849,), (1373450853,), (1373450904,), (1373450910,), (1373450913,), (1373450914,), (1373450917,), (1373450920,), (1373450928,), (1373450931,), (1373450932,), (1373451003,), (1373451006,), (1373451009,), (1373451099,), (1373451103,), (1373451104,), (1373451105,), (1373451121,), (1373451136,), (1373451174,), (1373451181,), (1373451185,), (1373451213,), (1373451222,), (1373451226,), (1373451252,), (1373451275,), (1373451276,), (1373451277,), (1373451278,), (1373451280,), (1373451282,), (1373451304,), (1373451335,), (1373451369,), (1373451370,), (1373451371,), (1373451373,), (1373451376,), (1373451379,), (1373451397,), (1373451398,), (1373451407,), (1373451409,), (1373451411,), (1373451414,), (1373451446,), (1373451448,), (1373451449,), (1373451460,), (1373451467,), (1373451469,), (1373451507,), (1373451513,), (1373451527,), (1373451531,), (1373451534,), (1373451537,), (1373451601,), (1373451604,), (1373451607,), (1373451609,), (1373451612,), (1373451616,), (1373451625,), (1373451627,), (1373451629,), (1373451630,), (1373451633,), (1373451635,), (1373451644,), (1373451651,), (1373451654,), (1373451656,), (1373451658,), (1373451659,), (1373451673,), (1373451692,), (1373451698,), (1373451700,), (1373451701,), (1373451704,), (1373451706,), (1373451715,), (1373451716,), (1373451718,), (1373451721,), (1373451724,), (1373451727,), (1373451737,), (1373451744,), (1373451750,), (1373451752,), (1373451769,), (1373451772,), (1373451819,), (1373451821,), (1373451822,), (1373451823,), (1373451826,), (1373451830,), (1373451845,), (1373451852,), (1373451854,), (1373451857,), (1373451859,), (1373451862,), (1373451870,), (1373451872,), (1373451874,), (1373451876,), (1373451879,), (1373451881,), (1373451898,), (1373451900,), (1373451901,), (1373451902,), (1373451904,), (1373451906,), (1373451910,), (1373451918,), (1373451921,), (1373451922,), (1373451925,), (1373451930,), (1373451942,), (1373451946,), (1373451949,), (1373451952,), (1373451954,), (1373451955,), (1373451961,), (1373451977,), (1373451983,), (1373451984,), (1373451985,), (1373451987,), (1373451991,), (1373452016,), (1373452019,), (1373452025,), (1373452027,), (1373452029,), (1373452032,), (1373452046,), (1373452054,), (1373452059,), (1373452061,), (1373452065,), (1373452069,), (1373452077,), (1373452078,), (1373452113,), (1373452123,), (1373452125,), (1373452127,), (1373452161,), (1373452163,), (1373452165,), (1373452167,), (1373452169,), (1373452171,), (1373452265,), (1373452266,), (1373452269,), (1373452271,), (1373452273,), (1373452277,), (1373452289,), (1373452292,), (1373452295,), (1373452297,), (1373452300,), (1373452306,), (1373453132,), (1373453137,), (1373453155,), (1373453181,), (1373453198,), (1373453213,), (1373453281,), (1373453310,), (1373453312,), (1373453314,), (1373453316,), (1373453318,), (1373453321,), (1373453338,), (1373453355,), (1373453359,), (1373453360,), (1373453361,), (1373453363,), (1373453366,), (1373453380,), (1373453383,), (1373453386,), (1373453388,), (1373453390,), (1373453392,), (1373453404,), (1373453408,), (1373453411,), (1373453422,), (1373453429,), (1373453437,), (1373453457,), (1373453460,), (1373453463,), (1373453466,), (1373453469,), (1373453472,), (1373453481,), (1373453499,), (1373453503,), (1373453504,), (1373453507,), (1373453510,), (1373453524,), (1373453536,), (1373453543,), (1373453544,), (1373453546,), (1373453548,), (1373453569,), (1373453586,), (1373453590,), (1373453594,), (1373453597,), (1373453599,), (1373453602,), (1373453623,), (1373453637,), (1373453640,), (1373453642,), (1373453643,), (1373453645,), (1373453647,), (1373453663,), (1373453667,), (1373453672,), (1373453673,), (1373453674,), (1373453677,), (1373453693,), (1373453699,), (1373453706,), (1373453708,), (1373453712,), (1373453716,), (1373453732,), (1373453735,), (1373453737,), (1373453739,), (1373453741,), (1373453744,), (1373453761,), (1373453765,), (1373453768,), (1373453769,), (1373453771,), (1373453773,), (1373453787,), (1373453790,), (1373453792,), (1373453794,), (1373453796,), (1373453799,), (1373453813,), (1373453815,), (1373453816,), (1373453817,), (1373453819,), (1373453820,), (1373453842,), (1373453852,), (1373453855,), (1373453857,), (1373453860,), (1373453862,), (1373453874,), (1373453890,), (1373453898,), (1373453906,), (1373453908,), (1373453910,), (1373453912,), (1373453927,), (1373453931,), (1373453934,), (1373453936,), (1373453938,), (1373453941,), (1373453949,), (1373453959,), (1373453964,), (1373453966,), (1373453968,), (1373453971,), (1373453991,), (1373453998,), (1373454010,), (1373454012,), (1373454015,), (1373454018,), (1373454041,), (1373454049,), (1373454054,), (1373454058,), (1373454062,), (1373454065,), (1373454091,), (1373454116,), (1373454118,), (1373454120,), (1373454121,), (1373454123,), (1373454125,), (1373454146,), (1373454149,), (1373454151,), (1373454153,), (1373454154,), (1373454156,), (1373454200,), (1373454251,), (1373454253,), (1373454256,), (1373454258,), (1373454261,), (1373454264,), (1373454280,), (1373454302,), (1373454309,), (1373454312,), (1373454314,), (1373454318,), (1373454322,), (1373454334,), (1373454337,), (1373454339,), (1373454340,), (1373454343,), (1373454346,), (1373454359,), (1373454366,), (1373454370,), (1373454373,), (1373454376,), (1373454379,), (1373454397,), (1373454401,), (1373454404,), (1373454407,), (1373454409,), (1373454411,), (1373454424,), (1373454427,), (1373454430,), (1373454432,), (1373454435,), (1373454438,), (1373454449,), (1373454455,), (1373454458,), (1373454459,), (1373454463,), (1373454467,), (1373454478,), (1373454482,), (1373454485,), (1373454487,), (1373454491,), (1373454495,), (1373454509,), (1373454514,), (1373454518,), (1373454521,), (1373454526,), (1373454531,), (1373454542,), (1373454546,), (1373454549,), (1373454551,), (1373454555,), (1373454559,), (1373454574,), (1373454591,), (1373454596,), (1373454598,), (1373454600,), (1373454601,), (1373454603,), (1373454617,), (1373454620,), (1373454621,), (1373454622,), (1373454624,), (1373454626,), (1373454642,), (1373454646,), (1373454656,), (1373454662,), (1373454664,), (1373454666,), (1373454678,), (1373454682,), (1373454684,), (1373454685,), (1373454688,), (1373454690,), (1373454699,), (1373454710,), (1373454716,), (1373454718,), (1373454720,), (1373454722,), (1373454742,), (1373454743,), (1373454745,), (1373454746,), (1373454747,), (1373454749,), (1373454762,), (1373454766,), (1373454770,), (1373454772,), (1373454776,), (1373454779,), (1373454792,), (1373454801,), (1373454809,), (1373454811,), (1373454812,), (1373454814,), (1373454831,), (1373454833,), (1373454835,), (1373454836,), (1373454839,), (1373454841,), (1373454872,), (1373454902,), (1373454910,), (1373454918,), (1373454919,), (1373454921,), (1373454923,), (1373454939,), (1373454946,), (1373454949,), (1373454952,), (1373454955,), (1373454958,), (1373454972,), (1373454973,), (1373454974,), (1373454975,), (1373454976,), (1373454978,), (1373454993,), (1373454994,), (1373454995,), (1373454996,), (1373454998,), (1373454999,), (1373455013,), (1373455021,), (1373455027,), (1373455028,), (1373455030,), (1373455032,), (1373455044,), (1373455045,), (1373455052,), (1373455060,), (1373455062,), (1373455064,), (1373455082,), (1373455087,), (1373455090,), (1373455093,), (1373455096,), (1373455103,), (1373455368,), (1373455616,), (1373455632,), (1373455634,), (1373455658,), (1373455660,), (1373455662,), (1373455677,), (1373455695,), (1373455719,), (1373455743,), (1373455771,), (1373455795,), (1373456026,), (1373456029,), (1373456032,), (1373456035,), (1373456037,), (1373456055,), (1373456610,), (1373456672,), (1373456742,), (1373456815,), (1373456866,), (1373456868,), (1373457031,), (1373457042,), (1373457102,), (1373457104,), (1373457133,), (1373457136,), (1373457149,), (1373457150,), (1373457153,), (1373457156,), (1373457159,), (1373457161,), (1373457177,), (1373457188,), (1373457189,), (1373457191,), (1373457192,), (1373457193,), (1373457213,), (1373457218,), (1373457220,), (1373457223,), (1373457225,), (1373457228,), (1373457247,), (1373457252,), (1373457254,), (1373457257,), (1373457260,), (1373457262,), (1373457273,), (1373457293,), (1373457299,), (1373457307,), (1373457314,), (1373457316,), (1373457319,), (1373457341,), (1373457347,), (1373457350,), (1373457352,), (1373457353,), (1373457355,), (1373457374,), (1373457377,), (1373457379,), (1373457381,), (1373457382,), (1373457383,), (1373457397,), (1373457403,), (1373457404,), (1373457406,), (1373457408,), (1373457410,), (1373457420,), (1373457427,), (1373457433,), (1373457440,), (1373457442,), (1373457444,), (1373457462,), (1373457483,), (1373457486,), (1373457488,), (1373457489,), (1373457491,), (1373457493,), (1373457507,), (1373457526,), (1373457528,), (1373457530,), (1373457531,), (1373457533,), (1373457535,), (1373457562,), (1373457577,), (1373457579,), (1373457580,), (1373457582,), (1373457584,), (1373457585,), (1373457602,), (1373457604,), (1373457605,), (1373457607,), (1373457609,), (1373457611,), (1373457619,), (1373457627,), (1373457634,), (1373457638,), (1373457641,), (1373457644,), (1373457656,), (1373457658,), (1373457659,), (1373457660,), (1373457662,), (1373457664,), (1373457686,), (1373457690,), (1373457692,), (1373457694,), (1373457696,), (1373457698,), (1373457708,), (1373457733,), (1373457735,), (1373457738,), (1373457740,), (1373457743,), (1373457744,), (1373457756,), (1373457765,), (1373457773,), (1373457776,), (1373457778,), (1373457780,), (1373457788,), (1373457792,), (1373457795,), (1373457798,), (1373457801,), (1373457804,), (1373457821,), (1373457823,), (1373457824,), (1373457826,), (1373457828,), (1373457829,), (1373457849,), (1373457852,), (1373457854,), (1373457855,), (1373457857,), (1373457859,), (1373457866,), (1373457873,), (1373457877,), (1373457881,), (1373457884,), (1373457887,), (1373457893,), (1373457897,), (1373457901,), (1373457903,), (1373457904,), (1373457906,), (1373457916,), (1373457917,), (1373457919,), (1373457920,), (1373457922,), (1373457924,), (1373457944,), (1373457964,), (1373457972,), (1373457975,), (1373457977,), (1373457979,), (1373457981,), (1373457992,), (1373457995,), (1373457996,), (1373457999,), (1373458001,), (1373458003,), (1373458014,), (1373458017,), (1373458019,), (1373458022,), (1373458024,), (1373458026,), (1373458036,), (1373458048,), (1373458057,), (1373458058,), (1373458060,), (1373458063,), (1373458075,), (1373458077,), (1373458079,), (1373458080,), (1373458082,), (1373458084,), (1373458099,), (1373458104,), (1373458106,), (1373458107,), (1373458109,), (1373458111,), (1373458116,), (1373458117,), (1373458119,), (1373458121,), (1373458122,), (1373458124,), (1373458128,), (1373458136,), (1373458143,), (1373458144,), (1373458146,), (1373458148,), (1373458160,), (1373458164,), (1373458166,), (1373458167,), (1373458170,), (1373458173,), (1373458190,), (1373458199,), (1373458202,), (1373458204,), (1373458206,), (1373458208,), (1373458211,), (1373458213,), (1373458215,), (1373458216,), (1373458219,), (1373458222,), (1373458228,), (1373458230,), (1373458232,), (1373458233,), (1373458236,), (1373458239,), (1373458244,), (1373458249,), (1373458255,), (1373458256,), (1373458259,), (1373458262,), (1373458280,), (1373458297,), (1373458305,), (1373458308,), (1373458310,), (1373458311,), (1373458314,), (1373458330,), (1373458338,), (1373458341,), (1373458343,), (1373458344,), (1373458347,), (1373458360,), (1373458362,), (1373458364,), (1373458365,), (1373458367,), (1373458368,), (1373458395,), (1373458399,), (1373458400,), (1373458401,), (1373458403,), (1373458405,), (1373458419,), (1373458420,), (1373458422,), (1373458424,), (1373458427,), (1373458430,), (1373458446,), (1373458448,), (1373458450,), (1373458451,), (1373458454,), (1373458456,), (1373458477,), (1373458700,), (1373458743,), (1373458787,), (1373458819,), (1373458854,), (1373458889,), (1373459578,), (1373459639,), (1373459653,), (1373459659,), (1373459664,), (1373459665,), (1373459667,), (1373459669,), (1373459678,), (1373459684,), (1373459686,), (1373459688,), (1373459691,), (1373459694,), (1373459711,), (1373459716,), (1373459721,), (1373459722,), (1373459723,), (1373459724,), (1373459739,), (1373459740,), (1373459741,), (1373459742,), (1373459744,), (1373459746,), (1373459768,), (1373459776,), (1373459779,), (1373459782,), (1373459783,), (1373459785,), (1373459805,), (1373459809,), (1373459811,), (1373459813,), (1373459815,), (1373459817,), (1373459829,), (1373459835,), (1373459842,), (1373459843,), (1373459845,), (1373459847,), (1373459860,), (1373459863,), (1373459867,), (1373459869,), (1373459871,), (1373459873,), (1373459882,), (1373459890,), (1373459902,), (1373459905,), (1373459909,), (1373459912,), (1373459917,), (1373459925,), (1373459930,), (1373459932,), (1373459934,), (1373459937,), (1373459953,), (1373459955,), (1373459957,), (1373459960,), (1373459965,), (1373459969,), (1373459979,), (1373459981,), (1373459983,), (1373459985,), (1373459988,), (1373459989,), (1373460012,), (1373460014,), (1373460016,), (1373460017,), (1373460019,), (1373460021,), (1373460036,), (1373460037,), (1373460039,), (1373460042,), (1373460043,), (1373460045,), (1373460054,), (1373460057,), (1373460068,), (1373460074,), (1373460076,), (1373460078,), (1373460092,), (1373460094,), (1373460095,), (1373460097,), (1373460099,), (1373460100,), (1373460120,), (1373460127,), (1373460131,), (1373460133,), (1373460135,), (1373460136,), (1373460149,), (1373460157,), (1373460161,), (1373460163,), (1373460167,), (1373460170,), (1373460178,), (1373460185,), (1373460190,), (1373460192,), (1373460196,), (1373460201,), (1373460210,), (1373460213,), (1373460215,), (1373460216,), (1373460219,), (1373460222,), (1373460237,), (1373460240,), (1373460242,), (1373460244,), (1373460245,), (1373460247,), (1373460264,), (1373460267,), (1373460268,), (1373460269,), (1373460271,), (1373460273,), (1373460286,), (1373460293,), (1373460298,), (1373460301,), (1373460303,), (1373460306,), (1373460323,), (1373460325,), (1373460326,), (1373460328,), (1373460330,), (1373460333,), (1373460356,), (1373460363,), (1373460366,), (1373460368,), (1373460371,), (1373460374,), (1373460385,), (1373460394,), (1373460399,), (1373460401,), (1373460403,), (1373460405,), (1373460426,), (1373460429,), (1373460430,), (1373460432,), (1373460435,), (1373460439,), (1373460455,), (1373460458,), (1373460460,), (1373460461,), (1373460464,), (1373460467,), (1373460485,), (1373460531,), (1373460533,), (1373460534,), (1373460535,), (1373460537,), (1373460539,), (1373460567,), (1373460576,), (1373460577,), (1373460579,), (1373460580,), (1373460582,), (1373460602,), (1373460605,), (1373460608,), (1373460612,), (1373460615,), (1373460618,), (1373460634,), (1373460638,), (1373460642,), (1373460644,), (1373460646,), (1373460648,), (1373460679,), (1373460683,), (1373460686,), (1373460689,), (1373460691,), (1373460693,), (1373460711,), (1373460720,), (1373460725,), (1373460727,), (1373460731,), (1373460736,), (1373460752,), (1373460758,), (1373460764,), (1373460766,), (1373460769,), (1373460770,), (1373460788,), (1373460790,), (1373460793,), (1373460796,), (1373460800,), (1373460804,), (1373460818,), (1373460827,), (1373460832,), (1373460834,), (1373460835,), (1373460838,), (1373460858,), (1373460861,), (1373460863,), (1373460865,), (1373460866,), (1373460869,), (1373460879,), (1373460881,), (1373460882,), (1373460884,), (1373460885,), (1373460888,), (1373460894,), (1373460902,), (1373460905,), (1373460907,), (1373460908,), (1373460911,), (1373460930,), (1373460934,), (1373460937,), (1373460938,), (1373460941,), (1373460944,), (1373460956,), (1373460964,), (1373460973,), (1373460974,), (1373460977,), (1373460979,), (1373460990,), (1373460991,), (1373460993,), (1373460996,), (1373460999,), (1373461000,), (1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,), (1373461247,), (1373461249,), (1373461256,), (1373461261,), (1373461262,), (1373461265,), (1373461280,), (1373461283,), (1373461284,), (1373461286,), (1373461287,), (1373461289,), (1373461308,), (1373461311,), (1373461314,), (1373461315,), (1373461318,), (1373461321,), (1373461333,), (1373461335,), (1373461338,), (1373461339,), (1373461342,), (1373461346,), (1373461804,), (1373461822,), (1373461828,), (1373461830,), (1373461834,), (1373461838,), (1373462055,), (1373462392,), (1373462419,), (1373462443,), (1373462467,), (1373462483,), (1373462484,), (1373462741,), (1373462787,), (1373462842,), (1373462890,), (1373462936,), (1373462984,), (1373463364,), (1373463393,), (1373463416,), (1373463449,), (1373463477,), (1373463505,), (1373463699,), (1373463702,), (1373463704,), (1373463711,), (1373463718,), (1373463723,), (1373463900,), (1373463914,), (1373463916,), (1373463918,), (1373463940,), (1373463964,), (1373464012,), (1373464014,), (1373464016,), (1373464018,), (1373464020,), (1373464023,), (1373464038,), (1373464045,), (1373464057,), (1373464062,), (1373464065,), (1373464067,), (1373464147,), (1373464148,), (1373464150,), (1373464152,), (1373464153,), (1373464156,), (1373464313,), (1373464315,), (1373464316,), (1373464317,), (1373464319,), (1373464323,), (1373464332,), (1373464337,), (1373464341,), (1373464343,), (1373464346,), (1373464347,), (1373464457,), (1373464484,), (1373464496,), (1373464499,), (1373464501,), (1373464505,), (1373464603,), (1373464611,), (1373464620,), (1373464623,), (1373464625,), (1373464628,), (1373464670,), (1373464687,), (1373464695,), (1373464704,), (1373464707,), (1373464710,), (1373464739,), (1373464747,), (1373464753,), (1373464757,), (1373464758,), (1373464762,), (1373465015,), (1373465044,), (1373465067,), (1373465095,), (1373465120,), (1373465151,), (1373465179,), (1373465182,), (1373465185,), (1373465186,), (1373465188,), (1373465195,), (1373465440,), (1373465469,), (1373465476,), (1373465523,), (1373465587,), (1373465633,), (1373465752,), (1373465853,), (1373465878,), (1373465899,), (1373465901,), (1373465905,), (1373465909,), (1373465934,), (1373466003,), (1373466011,), (1373466022,), (1373466026,), (1373466040,), (1373466052,), (1373466103,), (1373466106,), (1373466111,), (1373466114,), (1373466117,), (1373466123,), (1373466378,), (1373466404,), (1373466416,), (1373466418,), (1373466425,), (1373466430,), (1373466513,), (1373466517,), (1373466527,), (1373466530,), (1373466541,), (1373466546,), (1373466604,), (1373466605,), (1373466608,), (1373466610,), (1373466612,), (1373466615,), (1373466718,), (1373466740,), (1373466767,), (1373466798,), (1373466821,), (1373466830,), (1373466883,), (1373466884,), (1373466891,), (1373466892,), (1373466894,), (1373466898,), (1373466933,), (1373466935,), (1373466936,), (1373466937,), (1373466938,), (1373466940,), (1373466956,), (1373466959,), (1373466966,), (1373466970,), (1373466971,), (1373466973,), (1373466996,), (1373466997,), (1373467001,), (1373467005,), (1373467016,), (1373467020,), (1373467039,), (1373467048,), (1373467049,), (1373467050,), (1373467051,), (1373467055,), (1373467108,), (1373467115,), (1373467123,), (1373467129,), (1373467141,), (1373467142,), (1373467163,), (1373467165,), (1373467167,), (1373467192,), (1373467217,), (1373467241,), (1373467396,), (1373467427,), (1373467453,), (1373467479,), (1373467520,), (1373467569,), (1373467770,), (1373467783,), (1373467796,), (1373467798,), (1373467806,), (1373467819,), (1373467845,), (1373467847,), (1373467849,), (1373467858,), (1373467864,), (1373467866,), (1373467883,), (1373467886,), (1373467890,), (1373467914,), (1373467920,), (1373467923,), (1373467945,), (1373467992,), (1373467998,), (1373468002,), (1373468003,), (1373468004,), (1373468007,), (1373468074,), (1373468102,), (1373468131,), (1373468142,), (1373468144,), (1373468146,), (1373468161,), (1373468182,), (1373468221,), (1373468240,), (1373468248,), (1373468304,), (1373468410,), (1373468415,), (1373468416,), (1373468418,), (1373468420,), (1373468422,), (1373468688,), (1373468691,), (1373468709,), (1373468711,), (1373468718,), (1373468737,), (1373468794,), (1373468797,), (1373468806,), (1373468810,), (1373468827,), (1373468852,), (1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,), (1373471883,), (1373471914,), (1373471940,), (1373471986,), (1373472012,), (1373472040,), (1373472406,), (1373472409,), (1373472412,), (1373472431,), (1373472508,), (1373472587,), (1373472905,), (1373472929,), (1373472966,), (1373473000,), (1373473026,), (1373473052,), (1373473281,), (1373473285,), (1373473292,), (1373473293,), (1373473295,), (1373473298,), (1373473440,), (1373473476,), (1373473487,), (1373473500,), (1373473525,), (1373473537,), (1373473549,), (1373473553,), (1373473557,), (1373473560,), (1373473563,), (1373473569,), (1373473607,), (1373473610,), (1373473618,), (1373473619,), (1373473621,), (1373473624,), (1373473752,), (1373473757,), (1373473784,), (1373473795,), (1373473797,), (1373473800,), (1373473915,), (1373473921,), (1373473928,), (1373473942,), (1373473966,), (1373473971,), (1373474050,), (1373474072,), (1373474073,), (1373474074,), (1373474076,), (1373474077,), (1373474099,), (1373474101,), (1373474113,), (1373474119,), (1373474127,), (1373474130,), (1373474181,), (1373474187,), (1373474197,), (1373474202,), (1373474213,), (1373474226,), (1373474296,), (1373474331,), (1373474338,), (1373474370,), (1373474371,), (1373474374,), (1373474560,), (1373474561,), (1373474562,), (1373474563,), (1373474565,), (1373474570,), (1373474592,), (1373474593,), (1373474594,), (1373474595,), (1373474597,), (1373474601,), (1373474625,), (1373474634,), (1373474659,), (1373474683,), (1373474709,), (1373474738,), (1373474976,), (1373474984,), (1373474989,), (1373474991,), (1373474993,), (1373474997,), (1373475070,), (1373475077,), (1373475078,), (1373475079,), (1373475082,), (1373475086,), (1373475235,), (1373475260,), (1373475277,), (1373475278,), (1373475280,), (1373475286,), (1373475446,), (1373475449,), (1373475458,), (1373475483,), (1373475509,), (1373475523,), (1373475601,), (1373475638,), (1373475671,), (1373475673,), (1373475675,), (1373475678,), (1373475739,), (1373475741,), (1373475746,), (1373475749,), (1373475752,), (1373475771,), (1373475846,), (1373475850,), (1373475852,), (1373475854,), (1373475857,), (1373475861,), (1373475888,), (1373475894,), (1373475903,), (1373475906,), (1373475908,), (1373475911,), (1373475953,), (1373476016,), (1373476025,), (1373476028,), (1373476031,), (1373476034,), (1373476046,), (1373476047,), (1373476049,), (1373476051,), (1373476052,), (1373476056,), (1373476076,), (1373476078,), (1373476079,), (1373476080,), (1373476083,), (1373476099,), (1373476182,), (1373476189,), (1373476193,), (1373476194,), (1373476196,), (1373476200,), (1373476220,), (1373476223,), (1373476228,), (1373476232,), (1373476233,), (1373476236,), (1373476255,), (1373476257,), (1373476258,), (1373476259,), (1373476260,), (1373476262,), (1373476288,), (1373476290,), (1373476292,), (1373476294,), (1373476297,), (1373476299,), (1373476410,), (1373476417,), (1373476425,), (1373476428,), (1373476437,), (1373476458,), (1373476473,), (1373476475,), (1373476477,), (1373476478,), (1373476481,), (1373476485,), (1373476539,), (1373476549,), (1373476555,), (1373476556,), (1373476558,), (1373476561,), (1373476618,), (1373476642,), (1373476671,), (1373476700,), (1373476750,), (1373476794,), (1373477027,), (1373477030,), (1373477032,), (1373477047,), (1373477077,), (1373477103,), (1373477254,), (1373477273,), (1373477283,), (1373477284,), (1373477286,), (1373477289,), (1373477305,), (1373477308,), (1373477311,), (1373477316,), (1373477325,), (1373477331,), (1373477445,), (1373477448,), (1373477451,), (1373477452,), (1373477478,), (1373477505,), (1373477589,), (1373477595,), (1373477600,), (1373477604,), (1373477606,), (1373477624,), (1373477773,), (1373477778,), (1373477779,), (1373477780,), (1373477801,), (1373477832,), (1373477978,), (1373477981,), (1373477983,), (1373477985,), (1373477987,), (1373477989,), (1373477995,), (1373477997,), (1373477998,), (1373478002,), (1373478011,), (1373478019,), (1373478059,), (1373478072,), (1373478077,), (1373478089,), (1373478092,), (1373478094,), (1373478103,), (1373478105,), (1373478107,), (1373478108,), (1373478111,), (1373478114,), (1373478252,), (1373478287,), (1373478321,), (1373478344,), (1373478369,), (1373478394,), (1373478563,), (1373478565,), (1373478587,), (1373478611,), (1373478648,), (1373478663,), (1373478713,), (1373478716,), (1373478719,), (1373478721,), (1373478728,), (1373478732,), (1373478761,), (1373478764,), (1373478767,), (1373478802,), (1373478858,), (1373478908,), (1373479295,), (1373479308,), (1373479332,), (1373479369,), (1373479377,), (1373479379,), (1373479449,), (1373479500,), (1373479550,), (1373479619,), (1373479644,), (1373479702,), (1373479864,), (1373479875,), (1373479899,), (1373479909,), (1373479911,), (1373479912,), (1373479929,), (1373479932,), (1373479935,), (1373479937,), (1373479940,), (1373479944,), (1373479954,), (1373479956,), (1373479959,), (1373479961,), (1373479968,), (1373479995,), (1373480160,), (1373480170,), (1373480183,), (1373480186,), (1373480188,), (1373480193,), (1373480223,), (1373480225,), (1373480269,), (1373480280,), (1373480287,), (1373480293,), (1373480406,), (1373480655,), (1373480686,), (1373480710,), (1373480734,), (1373480758,), (1373480784,), (1373480924,), (1373480928,), (1373480930,), (1373480932,), (1373480933,), (1373480936,), (1373481948,), (1373481976,), (1373482005,), (1373482040,), (1373482095,), (1373482166,), (1373482627,), (1373482660,), (1373482706,), (1373482772,), (1373482827,), (1373482877,), (1373483287,), (1373483311,), (1373483338,), (1373483362,), (1373483386,), (1373483414,), (1373483675,), (1373483702,), (1373483729,), (1373483790,), (1373483848,), (1373483914,), (1373484752,), (1373484844,), (1373484950,), (1373485057,), (1373485110,), (1373485153,), (1373485481,), (1373485499,), (1373485513,), (1373485520,), (1373485523,), (1373485528,), (1373485887,), (1373485936,), (1373485985,), (1373486014,), (1373486040,), (1373486066,), (1373486237,), (1373486253,), (1373486255,), (1373486261,), (1373486264,), (1373486287,), (1373486644,), (1373486671,), (1373486695,), (1373486735,), (1373486760,), (1373486767,), (1373487047,), (1373487074,), (1373487130,), (1373487151,), (1373487155,), (1373487164,), (1373487445,), (1373487481,), (1373487517,), (1373487541,), (1373487566,), (1373487596,), (1373487745,), (1373487769,), (1373487795,), (1373487847,), (1373487879,), (1373487890,), (1373488280,), (1373488326,), (1373488371,), (1373488411,), (1373488439,), (1373488471,), (1373488693,), (1373488722,), (1373488775,), (1373488821,), (1373488869,), (1373488896,), (1373489148,), (1373489181,), (1373489203,), (1373489204,), (1373489206,), (1373489211,), (1373489540,), (1373489563,), (1373489587,), (1373489609,), (1373489646,), (1373489693,), (1373489905,), (1373489936,), (1373489981,), (1373490010,), (1373490016,), (1373490033,), (1373490095,), (1373490120,), (1373490143,), (1373490168,), (1373490178,), (1373490181,), (1373490367,), (1373490372,), (1373490377,), (1373490378,), (1373490386,), (1373490390,), (1373490563,), (1373490579,), (1373490614,), (1373490658,), (1373490694,), (1373490709,), (1373490814,), (1373490833,), (1373490841,), (1373490842,), (1373490857,), (1373490860,), (1373491010,), (1373491012,), (1373491025,), (1373491027,), (1373491030,), (1373491033,), (1373491306,), (1373491334,), (1373491375,), (1373491420,), (1373491458,), (1373491527,), (1373491855,), (1373491905,), (1373491952,), (1373491990,), (1373492025,), (1373492030,), (1373492130,), (1373492140,), (1373492151,), (1373492171,), (1373492196,), (1373492219,), (1373492272,), (1373492284,), (1373492297,), (1373492311,), (1373492328,), (1373492350,), (1373492561,), (1373492588,), (1373492612,), (1373492638,), (1373492663,), (1373492706,), (1373492873,), (1373492906,), (1373492938,), (1373492970,), (1373492999,), (1373493049,), (1373493422,), (1373493469,), (1373493515,), (1373493540,), (1373493565,), (1373493595,), (1373493930,), (1373493955,), (1373493994,), (1373494018,), (1373494042,), (1373494067,), (1373494539,), (1373494566,), (1373494623,), (1373494665,), (1373494694,), (1373494705,), (1373494831,), (1373494857,), (1373494881,), (1373494906,), (1373494929,), (1373494953,), (1373495076,), (1373495092,), (1373495113,), (1373495136,), (1373495160,), (1373495184,), (1373495448,), (1373495502,), (1373495541,), (1373495574,), (1373495607,), (1373495638,), (1373495779,), (1373495780,), (1373495796,), (1373495818,), (1373495826,), (1373495829,), (1373495846,), (1373495847,), (1373495849,), (1373495851,), (1373495853,), (1373495856,), (1373496000,), (1373496025,), (1373496056,), (1373496079,), (1373496101,), (1373496104,), (1373496304,), (1373496351,), (1373496379,), (1373496395,), (1373496409,), (1373496432,), (1373496604,), (1373496686,), (1373496752,), (1373496804,), (1373496845,), (1373496853,), (1373496971,), (1373496973,), (1373496974,), (1373496976,), (1373496977,), (1373496979,), (1373496998,), (1373496999,), (1373497001,), (1373497002,), (1373497004,), (1373497006,), (1373497021,), (1373497023,), (1373497026,), (1373497029,), (1373497034,), (1373497037,), (1373497077,), (1373497080,), (1373497082,), (1373497085,), (1373497087,), (1373497089,), (1373497360,), (1373497385,), (1373497409,), (1373497432,), (1373497455,), (1373497479,), (1373497595,), (1373497598,), (1373497600,), (1373497601,), (1373497603,), (1373497606,), (1373497626,), (1373497629,), (1373497631,), (1373497634,), (1373497635,), (1373497637,), (1373497656,), (1373497660,), (1373497667,), (1373497676,), (1373497682,), (1373497688,), (1373497705,), (1373497708,), (1373497711,), (1373497713,), (1373497715,), (1373497718,), (1373497748,), (1373497754,), (1373497757,), (1373497759,), (1373497761,), (1373497764,), (1373497845,), (1373497847,), (1373497848,), (1373497850,), (1373497851,), (1373497854,), (1373497871,), (1373497873,), (1373497874,), (1373497876,), (1373497877,), (1373497879,), (1373497907,), (1373497910,), (1373497913,), (1373497915,), (1373497917,), (1373497920,), (1373497942,), (1373497944,), (1373497946,), (1373497947,), (1373497948,), (1373497955,), (1373498106,), (1373498109,), (1373498110,), (1373498112,), (1373498114,), (1373498117,), (1373498177,), (1373498185,), (1373498188,), (1373498190,), (1373498192,), (1373498194,), (1373498209,), (1373498213,), (1373498216,), (1373498218,), (1373498221,), (1373498224,), (1373498246,), (1373498255,), (1373498257,), (1373498260,), (1373498262,), (1373498264,), (1373498350,), (1373498352,), (1373498354,), (1373498356,), (1373498388,), (1373498410,), (1373498433,), (1373498436,), (1373498439,), (1373498440,), (1373498442,), (1373498445,), (1373498684,), (1373498730,), (1373498787,), (1373498836,), (1373498887,), (1373498934,), (1373499519,), (1373499593,), (1373499662,), (1373499710,), (1373499762,), (1373499813,), (1373500394,), (1373500467,), (1373500563,), (1373500622,), (1373500672,), (1373500728,), (1373501057,), (1373501073,), (1373501084,), (1373501085,), (1373501088,), (1373501116,), (1373501271,), (1373501302,), (1373501333,), (1373501349,), (1373501352,), (1373501372,), (1373501434,), (1373501460,), (1373501463,), (1373501465,), (1373501467,), (1373501468,), (1373501471,), (1373501484,), (1373501599,), (1373501603,), (1373501608,), (1373501610,), (1373501612,), (1373501616,), (1373501634,), (1373501639,), (1373501641,), (1373501642,), (1373501643,), (1373501645,), (1373501667,), (1373501669,), (1373501671,), (1373501672,), (1373501673,), (1373501677,), (1373501689,), (1373501692,), (1373501697,), (1373501715,), (1373501718,), (1373501723,), (1373501746,), (1373501747,), (1373501749,), (1373501789,), (1373501820,), (1373501846,), (1373501993,), (1373501996,), (1373501999,), (1373502000,), (1373502025,), (1373502089,), (1373502348,), (1373502349,), (1373502350,), (1373502351,), (1373502378,), (1373502386,), (1373502412,), (1373502462,), (1373502463,), (1373502465,), (1373502467,), (1373502470,), (1373502489,), (1373502492,), (1373502495,), (1373502497,), (1373502500,), (1373502504,), (1373502516,), (1373502519,), (1373502522,), (1373502523,), (1373502525,), (1373502528,), (1373502548,), (1373502551,), (1373502554,), (1373502556,), (1373502558,), (1373502561,), (1373502578,), (1373502580,), (1373502582,), (1373502584,), (1373502587,), (1373502602,), (1373502628,), (1373502629,), (1373502631,), (1373502636,), (1373502637,), (1373502646,), (1373502687,), (1373502723,), (1373502725,), (1373502729,), (1373502732,), (1373502744,), (1373502805,), (1373502806,), (1373502807,), (1373502808,), (1373502845,), (1373502889,), (1373502963,), (1373502992,), (1373503007,), (1373503013,), (1373503019,), (1373503023,), (1373503117,), (1373503146,), (1373503174,), (1373503198,), (1373503224,), (1373503251,), (1373503287,), (1373503289,), (1373503291,), (1373503292,), (1373503293,), (1373503296,), (1373503346,), (1373503353,), (1373503354,), (1373503356,), (1373503358,), (1373503361,), (1373503554,), (1373503561,), (1373503563,), (1373503566,), (1373503573,), (1373503579,), (1373503607,), (1373503610,), (1373503618,), (1373503620,), (1373503623,), (1373503626,), (1373503674,), (1373503677,), (1373503685,), (1373503698,), (1373503706,), (1373503723,), (1373503800,), (1373503814,), (1373503821,), (1373503824,), (1373503827,), (1373503830,), (1373503855,), (1373503863,), (1373503865,), (1373503866,), (1373503887,), (1373503914,), (1373504078,), (1373504084,), (1373504090,), (1373504100,), (1373504118,), (1373504124,), (1373504174,), (1373504176,), (1373504178,), (1373504179,), (1373504180,), (1373504193,), (1373504330,), (1373504343,), (1373504415,), (1373504425,), (1373504426,), (1373504429,), (1373504480,), (1373504483,), (1373504485,), (1373504486,), (1373504488,), (1373504491,), (1373504530,), (1373504533,), (1373504536,), (1373504538,), (1373504541,), (1373504544,), (1373504576,), (1373504588,), (1373504613,), (1373504650,), (1373504677,), (1373504703,), (1373504846,), (1373504848,), (1373504849,), (1373504851,), (1373504853,), (1373504855,), (1373504875,), (1373504877,), (1373504878,), (1373504880,), (1373504881,), (1373504883,), (1373504909,), (1373504911,), (1373504914,), (1373504916,), (1373504918,), (1373504923,), (1373504979,), (1373504984,), (1373504987,), (1373504998,), (1373505006,), (1373505009,), (1373505108,), (1373505111,), (1373505114,), (1373505116,), (1373505135,), (1373505152,), (1373505185,), (1373505213,), (1373505215,), (1373505217,), (1373505218,), (1373505221,), (1373505250,), (1373505254,), (1373505257,), (1373505260,), (1373505263,), (1373505266,), (1373505278,), (1373505282,), (1373505285,), (1373505287,), (1373505291,), (1373505326,), (1373505374,), (1373505378,), (1373505381,), (1373505385,), (1373505390,), (1373505406,), (1373505408,), (1373505410,), (1373505411,), (1373505413,), (1373505415,), (1373505439,), (1373505447,), (1373505451,), (1373505453,), (1373505454,), (1373505456,), (1373505474,), (1373505523,), (1373505608,), (1373505610,), (1373505611,), (1373505613,), (1373505614,), (1373505616,), (1373505640,), (1373505648,), (1373505652,), (1373505655,), (1373505657,), (1373505661,), (1373505677,), (1373505683,), (1373505688,), (1373505691,), (1373505693,), (1373505696,), (1373505715,), (1373505717,), (1373505718,), (1373505720,), (1373505721,), (1373505724,), (1373505743,), (1373505746,), (1373505747,), (1373505749,), (1373505750,), (1373505752,), (1373505767,), (1373505770,), (1373505772,), (1373505775,), (1373505776,), (1373505778,), (1373505789,), (1373505791,), (1373505793,), (1373505794,), (1373505795,), (1373505797,), (1373505815,), (1373505817,), (1373505818,), (1373505820,), (1373505822,), (1373505825,), (1373506040,), (1373506067,), (1373506093,), (1373506119,), (1373506147,), (1373506170,), (1373506443,), (1373506469,), (1373506494,), (1373506519,), (1373506549,), (1373506580,), (1373506840,), (1373506899,), (1373506957,), (1373507010,), (1373507057,), (1373507105,), (1373507468,), (1373507494,), (1373507518,), (1373507519,), (1373507521,), (1373507529,), (1373507797,), (1373507832,), (1373507882,), (1373507945,), (1373507989,), (1373508017,), (1373508314,), (1373508346,), (1373508374,), (1373508396,), (1373508419,), (1373508425,), (1373508561,), (1373508572,), (1373508573,), (1373508574,), (1373508592,), (1373508617,), (1373508667,), (1373508669,), (1373508671,), (1373508673,), (1373508676,), (1373508678,), (1373508692,), (1373508701,), (1373508709,), (1373508733,), (1373508734,), (1373508736,), (1373508747,), (1373508750,), (1373508752,), (1373508755,), (1373508757,), (1373508760,), (1373508772,), (1373508783,), (1373508786,), (1373508788,), (1373508791,), (1373508794,), (1373508832,), (1373508839,), (1373508845,), (1373508846,), (1373508847,), (1373508849,), (1373508867,), (1373508875,), (1373508876,), (1373508878,), (1373508879,), (1373508882,), (1373508910,), (1373508912,), (1373508914,), (1373508915,), (1373508917,), (1373508920,), (1373508949,), (1373508952,), (1373508981,), (1373508983,), (1373508984,), (1373508988,), (1373509005,), (1373509007,), (1373509010,), (1373509012,), (1373509014,), (1373509017,), (1373509055,), (1373509066,), (1373509068,), (1373509070,), (1373509072,), (1373509074,), (1373509094,), (1373509097,), (1373509098,), (1373509100,), (1373509102,), (1373509104,), (1373509124,), (1373509126,), (1373509128,), (1373509129,), (1373509130,), (1373509151,), (1373509260,), (1373509349,), (1373509538,), (1373509541,), (1373509545,), (1373509548,), (1373509552,), (1373509555,), (1373509572,), (1373509580,), (1373509582,), (1373509585,), (1373509586,), (1373509589,), (1373509604,), (1373509605,), (1373509607,), (1373509609,), (1373509610,), (1373509612,), (1373509654,), (1373509687,), (1373509710,), (1373509735,), (1373509737,), (1373509753,), (1373509833,), (1373509838,), (1373509839,), (1373509841,), (1373509842,), (1373509863,), (1373509961,), (1373509969,), (1373509971,), (1373510036,), (1373510038,), (1373510040,), (1373510049,), (1373510052,), (1373510054,), (1373510055,), (1373510056,), (1373510059,), (1373510077,), (1373510083,), (1373510094,), (1373510095,), (1373510097,), (1373510099,), (1373510107,), (1373510111,), (1373510115,), (1373510116,), (1373510118,), (1373510121,), (1373510144,), (1373510175,), (1373510198,), (1373510223,), (1373510247,), (1373510279,), (1373510404,), (1373510417,), (1373510421,), (1373510422,), (1373510425,), (1373510438,), (1373510531,), (1373510544,), (1373510549,), (1373510551,), (1373510554,), (1373510569,), (1373510906,), (1373511031,), (1373511056,), (1373511057,), (1373511058,), (1373511060,), (1373511061,), (1373511080,), (1373511081,), (1373511082,), (1373511084,), (1373511087,), (1373511091,), (1373511120,), (1373511122,), (1373511125,), (1373511126,), (1373511135,), (1373511141,), (1373511195,), (1373511196,), (1373511197,), (1373511198,), (1373511200,), (1373511201,), (1373511229,), (1373511230,), (1373511238,), (1373511261,), (1373511287,), (1373511315,), (1373511535,), (1373511554,), (1373511557,), (1373511560,), (1373511576,), (1373511588,), (1373511614,), (1373511615,), (1373511616,), (1373511621,), (1373511648,), (1373511652,), (1373511708,), (1373511710,), (1373511717,), (1373511752,), (1373511769,), (1373511774,), (1373511837,), (1373511852,), (1373511865,), (1373511878,), (1373511893,), (1373511910,), (1373512041,), (1373512063,), (1373512091,), (1373512110,), (1373512135,), (1373512156,), (1373512258,), (1373512278,), (1373512293,), (1373512311,), (1373512339,), (1373512358,), (1373512494,), (1373512578,), (1373512593,), (1373512610,), (1373512627,), (1373512644,), (1373512657,), (1373512701,), (1373512709,), (1373512723,), (1373512729,), (1373512735,), (1373512740,), (1373512893,), (1373512902,), (1373512904,), (1373512907,), (1373512909,), (1373512912,), (1373512986,), (1373512988,), (1373512990,), (1373513005,), (1373513046,), (1373513049,), (1373513166,), (1373513171,), (1373513173,), (1373513174,), (1373513175,), (1373513179,), (1373513224,), (1373513226,), (1373513227,), (1373513229,), (1373513230,), (1373513232,), (1373513261,), (1373513267,), (1373513269,), (1373513270,), (1373513273,), (1373513277,), (1373513299,), (1373513326,), (1373513353,), (1373513371,), (1373513390,), (1373513408,), (1373513426,), (1373513631,), (1373513658,), (1373513688,), (1373513709,), (1373513720,), (1373513731,), (1373513778,), (1373513781,), (1373513784,), (1373513786,), (1373513797,), (1373513799,), (1373513842,), (1373513845,), (1373513848,), (1373513850,), (1373513852,), (1373513856,), (1373513870,), (1373513873,), (1373513875,), (1373513878,), (1373513881,), (1373513884,), (1373513902,), (1373514165,), (1373514198,), (1373514240,), (1373514287,), (1373514330,), (1373514699,), (1373514749,), (1373514798,), (1373514847,), (1373514893,), (1373514942,), (1373515388,), (1373515438,), (1373515492,), (1373515551,), (1373515607,), (1373515661,), (1373516043,), (1373516082,), (1373516120,), (1373516155,), (1373516191,), (1373516247,), (1373516715,), (1373516759,), (1373516836,), (1373516903,), (1373516980,), (1373517032,), (1373517351,), (1373517381,), (1373517400,), (1373517435,), (1373517480,), (1373517534,), (1373517950,), (1373517987,), (1373517998,), (1373518013,), (1373518033,), (1373518065,), (1373518137,), (1373518142,), (1373518152,), (1373518159,), (1373518162,), (1373518165,), (1373518228,), (1373518255,), (1373518258,), (1373518260,), (1373518262,), (1373518264,), (1373518267,), (1373518324,), (1373518328,), (1373518334,), (1373518336,), (1373518344,), (1373518364,), (1373518415,), (1373518416,), (1373518417,), (1373518418,), (1373518420,), (1373518424,), (1373518441,), (1373518443,), (1373518445,), (1373518446,), (1373518447,), (1373518449,), (1373518471,), (1373518478,), (1373518479,), (1373518480,), (1373518482,), (1373518486,), (1373518509,), (1373518512,), (1373518513,), (1373518514,), (1373518516,), (1373518519,), (1373518694,), (1373518714,), (1373518732,), (1373518751,), (1373518770,), (1373518792,), (1373518894,), (1373518896,), (1373518898,), (1373518900,), (1373518903,), (1373518905,), (1373518927,), (1373518929,), (1373518930,), (1373518932,), (1373518934,), (1373518935,), (1373518952,), (1373518954,), (1373518955,), (1373518957,), (1373518967,), (1373518977,), (1373519011,), (1373519013,), (1373519014,), (1373519016,), (1373519017,), (1373519020,), (1373519044,), (1373519045,), (1373519047,), (1373519054,), (1373519071,), (1373519081,), (1373519140,), (1373519162,), (1373519166,), (1373519170,), (1373519172,), (1373519175,), (1373519178,), (1373519194,), (1373519219,), (1373519220,), (1373519224,), (1373519229,), (1373519243,), (1373519249,), (1373519250,), (1373519280,), (1373519283,), (1373519286,), (1373519287,), (1373519288,), (1373519290,), (1373519296,), (1373519308,), (1373519316,), (1373519317,), (1373519319,), (1373519320,), (1373519322,), (1373519336,), (1373519338,), (1373519340,), (1373519341,), (1373519344,), (1373519347,), (1373519387,), (1373519404,), (1373519405,), (1373519422,), (1373519435,), (1373519439,), (1373519472,), (1373519474,), (1373519475,), (1373519477,), (1373519479,), (1373519482,), (1373519507,), (1373519534,), (1373519536,), (1373519538,), (1373519540,), (1373519543,), (1373519545,), (1373519561,), (1373519568,), (1373519569,), (1373519571,), (1373519573,), (1373519575,), (1373519589,), (1373519592,), (1373519594,), (1373519595,), (1373519597,), (1373519599,), (1373519614,), (1373519619,), (1373519621,), (1373519624,), (1373519626,), (1373519629,), (1373519643,), (1373519646,), (1373519647,), (1373519649,), (1373519651,), (1373519653,), (1373519663,), (1373519665,), (1373519666,), (1373519668,), (1373519670,), (1373519676,), (1373519694,), (1373519701,), (1373519704,), (1373519711,), (1373519713,), (1373519715,), (1373519732,), (1373519736,), (1373519737,), (1373519739,), (1373519741,), (1373519744,), (1373519764,), (1373519766,), (1373519767,), (1373519769,), (1373519770,), (1373519772,), (1373519867,), (1373519942,), (1373519946,), (1373519950,), (1373519952,), (1373519955,), (1373519959,), (1373519980,), (1373519989,), (1373519991,), (1373519994,), (1373519997,), (1373520000,), (1373520019,), (1373520023,), (1373520036,), (1373520043,), (1373520046,), (1373520049,), (1373520122,), (1373520130,), (1373520131,), (1373520133,), (1373520137,), (1373520158,), (1373520397,), (1373520417,), (1373520433,), (1373520435,), (1373520437,), (1373520456,), (1373520527,), (1373520534,), (1373520542,), (1373520546,), (1373520551,), (1373520580,), (1373520688,), (1373520693,), (1373520696,), (1373520697,), (1373520698,), (1373520701,), (1373520759,), (1373520785,), (1373520787,), (1373520790,), (1373520807,), (1373520809,), (1373520841,), (1373520843,), (1373520846,), (1373520848,), (1373520851,), (1373520853,), (1373520970,), (1373521091,), (1373521094,), (1373521095,), (1373521119,), (1373521143,), (1373521154,), (1373521178,), (1373521180,), (1373521183,), (1373521185,), (1373521187,), (1373521191,), (1373521209,), (1373521210,), (1373521212,), (1373521214,), (1373521217,), (1373521221,), (1373521243,), (1373521244,), (1373521246,), (1373521247,), (1373521249,), (1373521251,), (1373521266,), (1373521271,), (1373521272,), (1373521273,), (1373521274,), (1373521276,), (1373521295,), (1373521298,), (1373521299,), (1373521301,), (1373521303,), (1373521305,), (1373521890,), (1373521915,), (1373521938,), (1373521964,), (1373521990,), (1373521999,), (1373522017,), (1373522451,), (1373522483,), (1373522543,), (1373522589,), (1373522620,), (1373522653,), (1373522997,), (1373523396,), (1373523420,), (1373523441,), (1373523470,), (1373523501,), (1373523588,), (1373523987,), (1373524407,), (1373524431,), (1373524455,), (1373524484,), (1373524511,), (1373524537,), (1373524694,), (1373524696,), (1373524698,), (1373524709,), (1373524735,), (1373524762,), (1373524894,), (1373524919,), (1373524934,), (1373524960,), (1373524962,), (1373524967,), (1373525015,), (1373525023,), (1373525025,), (1373525028,), (1373525032,), (1373525042,), (1373525142,), (1373525144,), (1373525150,), (1373525159,), (1373525162,), (1373525165,), (1373525382,), (1373525386,), (1373525387,), (1373525390,), (1373525392,), (1373525395,), (1373525467,), (1373525680,), (1373525687,), (1373525692,), (1373525695,), (1373525697,), (1373525701,), (1373525736,), (1373525737,), (1373525738,), (1373525739,), (1373525740,), (1373525743,), (1373525763,), (1373525772,), (1373525774,), (1373525777,), (1373525779,), (1373525780,), (1373525811,), (1373525813,), (1373525815,), (1373525816,), (1373525819,), (1373525821,), (1373525888,), (1373525891,), (1373525893,), (1373525895,), (1373525917,), (1373525922,), (1373526010,), (1373526013,), (1373526014,), (1373526015,), (1373526017,), (1373526028,), (1373526231,), (1373526232,), (1373526233,), (1373526234,), (1373526236,), (1373526239,), (1373526272,), (1373526281,), (1373526283,), (1373526285,), (1373526287,), (1373526291,), (1373526357,), (1373526403,), (1373526424,), (1373526446,), (1373526487,), (1373526518,), (1373526794,), (1373526832,), (1373526890,), (1373526894,), (1373526899,), (1373526902,), (1373526906,), (1373526909,), (1373526943,), (1373526992,), (1373527015,), (1373527036,), (1373527062,), (1373527072,), (1373527077,), (1373527141,), (1373527142,), (1373527143,), (1373527144,), (1373527145,), (1373527147,), (1373527247,), (1373527249,), (1373527250,), (1373527251,), (1373527253,), (1373527257,), (1373527307,), (1373527313,), (1373527315,), (1373527317,), (1373527320,), (1373527323,), (1373527340,), (1373527348,), (1373527350,), (1373527351,), (1373527353,), (1373527356,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24072025': {'nb_upload': 75, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25274918]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] map_info['map_portfolio_photo'] : {25274918: [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307, 1373527257, 1373527253, 1373527251, 1373527250, 1373527249, 1373527247, 1373527147, 1373527145, 1373527144, 1373527143, 1373527142, 1373527141, 1373527077, 1373527072, 1373527062, 1373527036, 1373527015, 1373526992, 1373526943, 1373526909, 1373526906, 1373526902, 1373526899, 1373526894, 1373526890, 1373526832, 1373526794, 1373526518, 1373526487, 1373526446, 1373526424, 1373526403, 1373526357, 1373526291, 1373526287, 1373526285, 1373526283, 1373526281, 1373526272, 1373526239, 1373526236, 1373526234, 1373526233, 1373526232, 1373526231, 1373526028, 1373526017, 1373526015, 1373526014, 1373526013, 1373526010, 1373525922, 1373525917, 1373525895, 1373525893, 1373525891, 1373525888, 1373525821, 1373525819, 1373525816, 1373525815, 1373525813, 1373525811]} final : True mtd_id 4302 list_pids : [1373527356, 1373527353, 1373527351, 1373527350, 1373527348, 1373527340, 1373527323, 1373527320, 1373527317, 1373527315, 1373527313, 1373527307] Looping around the photos to save general results len do output : 1 /25274918Didn'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, '3340139') ('4302', '25274918', '1373527356', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527353', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527351', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527350', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527348', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527340', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527323', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527320', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527317', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527315', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527313', None, None, None, None, None, '3340139') ('4302', None, None, None, None, None, None, None, '3340139') ('4302', '25274918', '1373527307', None, None, None, None, None, '3340139') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25274918', 'None', None, None, None, None, '3340139'), ('4302', '25274918', '1373527356', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527353', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527351', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527350', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527348', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527340', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527323', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527320', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527317', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527315', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527313', None, None, None, None, None, '3340139'), ('4302', '25274918', '1373527307', None, None, None, None, None, '3340139')] time used for this insertion : 0.016206979751586914 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.225041389465332 time spend to save output : 0.016514062881469727 total time spend for step 5 : 3.2415554523468018 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 (3340139) 2.42user 2.83system 0:10.10elapsed 52%CPU (0avgtext+0avgdata 160384maxresident)k 440inputs+10856outputs (6major+75274minor)pagefaults 0swaps